PHP Package: calcinai/xero-php
Xero-PHP library for seamless integration with Xero's accounting software, providing powerful API functionalities for businesses.
Current Version: 2.7.0
Last Updated: 2024-07-21
PHP Requirement: >=5.5.0
⚠️ To ensure full functionality, the above dependencies might be required.
Package Description
Xero-PHP library enables developers to interact with Xero's API, facilitating efficient data synchronization, invoice management, and financial reporting for businesses of all sizes. It streamlines accounting processes, automates financial tasks, and enhances workflow productivity.
Classes:
- XeroPHP\Models\Assets\Setting
- XeroPHP\Models\Assets\AssetType
- XeroPHP\Models\Assets\Overview
- XeroPHP\Models\Assets\AssetType\BookDepreciationSetting
- XeroPHP\Models\Files\Folder
- XeroPHP\Models\Files\Object
- XeroPHP\Models\Files\Association
- XeroPHP\Models\Files\File
- XeroPHP\Models\PayrollAU\PayrollCalendar
- XeroPHP\Models\PayrollAU\PayRun
- XeroPHP\Models\PayrollAU\LeaveApplication\LeavePeriod
- XeroPHP\Models\PayrollAU\Setting\EmployeeGroup
- XeroPHP\Models\PayrollAU\Setting\TimesheetCategory
- XeroPHP\Models\PayrollAU\Setting\TrackingCategory
- XeroPHP\Models\PayrollAU\Setting\Account
- XeroPHP\Models\PayrollAU\PayItem
- XeroPHP\Models\PayrollAU\PayItem\EarningsRate
- XeroPHP\Models\PayrollAU\PayItem\LeaveType
- XeroPHP\Models\PayrollAU\PayItem\DeductionType
- XeroPHP\Models\PayrollAU\PayItem\ReimbursementType
- XeroPHP\Models\PayrollAU\LeaveApplication
- XeroPHP\Models\PayrollAU\Employee
- XeroPHP\Models\PayrollAU\Employee\OpeningBalance
- XeroPHP\Models\PayrollAU\Employee\PayTemplate
- XeroPHP\Models\PayrollAU\Employee\HomeAddress
- XeroPHP\Models\PayrollAU\Employee\PayTemplate\DeductionLine
- XeroPHP\Models\PayrollAU\Employee\PayTemplate\EarningsLine
- XeroPHP\Models\PayrollAU\Employee\PayTemplate\SuperLine
- XeroPHP\Models\PayrollAU\Employee\PayTemplate\ReimbursementLine
- XeroPHP\Models\PayrollAU\Employee\PayTemplate\LeaveLine
- XeroPHP\Models\PayrollAU\Employee\TaxDeclaration
- XeroPHP\Models\PayrollAU\Employee\BankAccount
- XeroPHP\Models\PayrollAU\Employee\LeaveBalance
- XeroPHP\Models\PayrollAU\Employee\SuperMembership
- XeroPHP\Models\PayrollAU\Setting
- XeroPHP\Models\PayrollAU\Timesheet
- XeroPHP\Models\PayrollAU\SuperFundProduct
- XeroPHP\Models\PayrollAU\Payslip\DeductionLine
- XeroPHP\Models\PayrollAU\Payslip\SuperannuationLine
- XeroPHP\Models\PayrollAU\Payslip\TimesheetEarningsLine
- XeroPHP\Models\PayrollAU\Payslip\EarningsLine
- XeroPHP\Models\PayrollAU\Payslip\LeaveEarningsLine
- XeroPHP\Models\PayrollAU\Payslip\LeaveAccrualLine
- XeroPHP\Models\PayrollAU\Payslip\TaxLine
- XeroPHP\Models\PayrollAU\Payslip\ReimbursementLine
- XeroPHP\Models\PayrollAU\Payslip
- XeroPHP\Models\PayrollAU\Timesheet\TimesheetLine
- XeroPHP\Models\PayrollAU\SuperFund\SuperFund
- XeroPHP\Models\PayrollAU\SuperFund
- XeroPHP\Models\Price
- XeroPHP\Models\PayrollUS\PayRun
- XeroPHP\Models\PayrollUS\Setting\TrackingCategory
- XeroPHP\Models\PayrollUS\Setting\Account
- XeroPHP\Models\PayrollUS\PayItem
- XeroPHP\Models\PayrollUS\PaystubDeductionLine
- XeroPHP\Models\PayrollUS\PayItem\TimeOffType
- XeroPHP\Models\PayrollUS\PayItem\EarningsType
- XeroPHP\Models\PayrollUS\PayItem\DeductionType
- XeroPHP\Models\PayrollUS\PayItem\BenefitType
- XeroPHP\Models\PayrollUS\PayItem\ReimbursementType
- XeroPHP\Models\PayrollUS\Employee
- XeroPHP\Models\PayrollUS\Paystub
- XeroPHP\Models\PayrollUS\WorkLocation
- XeroPHP\Models\PayrollUS\Employee\PaymentMethod
- XeroPHP\Models\PayrollUS\Employee\TimeOffBalance
- XeroPHP\Models\PayrollUS\Employee\OpeningBalance
- XeroPHP\Models\PayrollUS\Employee\PayTemplate
- XeroPHP\Models\PayrollUS\Employee\HomeAddress
- XeroPHP\Models\PayrollUS\Employee\WorkLocation
- XeroPHP\Models\PayrollUS\Employee\MailingAddress
- XeroPHP\Models\PayrollUS\Employee\BankAccount
- XeroPHP\Models\PayrollUS\Employee\SalaryAndWage
- XeroPHP\Models\PayrollUS\Paystub\DeductionLine
- XeroPHP\Models\PayrollUS\Paystub\TimesheetEarningsLine
- XeroPHP\Models\PayrollUS\Paystub\EarningsLine
- XeroPHP\Models\PayrollUS\Paystub\BenefitLine
- XeroPHP\Models\PayrollUS\Paystub\TimeOffLine
- XeroPHP\Models\PayrollUS\Paystub\LeaveEarningsLine
- XeroPHP\Models\PayrollUS\Paystub\ReimbursementLine
- XeroPHP\Models\PayrollUS\Setting
- XeroPHP\Models\PayrollUS\Timesheet
- XeroPHP\Models\PayrollUS\Timesheet\TimesheetLine
- XeroPHP\Models\PayrollUS\SalaryandWage
- XeroPHP\Models\PayrollUS\PaySchedule
- XeroPHP\Models\Product
- XeroPHP\Models\PracticeManager\Invoice
- XeroPHP\Models\PracticeManager\Client\BillingClient
- XeroPHP\Models\PracticeManager\Client\Note
- XeroPHP\Models\PracticeManager\Client\RelatedClient
- XeroPHP\Models\PracticeManager\Client\Group
- XeroPHP\Models\PracticeManager\Client\Type
- XeroPHP\Models\PracticeManager\Client\Relationship
- XeroPHP\Models\PracticeManager\Client\Contact
- XeroPHP\Models\PracticeManager\Client\AutoBasOptInCriteria
- XeroPHP\Models\PracticeManager\Client\JobManager
- XeroPHP\Models\PracticeManager\Client\AccountManager
- XeroPHP\Models\PracticeManager\Model\IdAndNameModel
- XeroPHP\Models\PracticeManager\Invoice\Job
- XeroPHP\Models\PracticeManager\Invoice\Contact
- XeroPHP\Models\PracticeManager\Invoice\Client
- XeroPHP\Models\PracticeManager\Invoice\Cost
- XeroPHP\Models\PracticeManager\Invoice\Task
- XeroPHP\Models\PracticeManager\CustomField
- XeroPHP\Models\PracticeManager\Client
- XeroPHP\Models\PracticeManager\CustomFieldValue
- XeroPHP\Models\SubscriptionItem
- XeroPHP\Models\PayrollUK\PayRun
- XeroPHP\Models\PayrollUK\EarningsRate
- XeroPHP\Models\PayrollUK\Employee
- XeroPHP\Models\PayrollUK\Employee\Leave\Period
- XeroPHP\Models\PayrollUK\Employee\Employment
- XeroPHP\Models\PayrollUK\Employee\Leave
- XeroPHP\Models\PayrollUK\Employee\Address
- XeroPHP\Models\PayrollUK\Timesheet
- XeroPHP\Models\PayrollUK\PayRollCalendar
- XeroPHP\Models\PayrollUK\Timesheet\Line
- XeroPHP\Models\Plan
- XeroPHP\Models\Accounting\LineItem
- XeroPHP\Models\Accounting\Prepayment\LineItem
- XeroPHP\Models\Accounting\Prepayment\Allocation
- XeroPHP\Models\Accounting\PurchaseOrder\LineItem
- XeroPHP\Models\Accounting\CreditNote
- XeroPHP\Models\Accounting\Journal
- XeroPHP\Models\Accounting\Item
- XeroPHP\Models\Accounting\Invoice
- XeroPHP\Models\Accounting\ManualJournal
- XeroPHP\Models\Accounting\PurchaseOrder
- XeroPHP\Models\Accounting\Receipt\LineItem
- XeroPHP\Models\Accounting\Overpayment\LineItem
- XeroPHP\Models\Accounting\Overpayment\Allocation
- XeroPHP\Models\Accounting\RepeatingInvoice\LineItem
- XeroPHP\Models\Accounting\RepeatingInvoice\Schedule
- XeroPHP\Models\Accounting\TaxRate\TaxComponent
- XeroPHP\Models\Accounting\Report\BankStatement
- XeroPHP\Models\Accounting\Report\BankSummary
- XeroPHP\Models\Accounting\Report\Report
- XeroPHP\Models\Accounting\Report\BudgetSummary
- XeroPHP\Models\Accounting\Report\AgedReceivablesByContact
- XeroPHP\Models\Accounting\Report\TenNinetyNine
- XeroPHP\Models\Accounting\Report\BalanceSheet
- XeroPHP\Models\Accounting\Report\TrialBalance
- XeroPHP\Models\Accounting\Report\ExecutiveSummary
- XeroPHP\Models\Accounting\Report\ProfitLoss
- XeroPHP\Models\Accounting\Report\AgedPayablesByContact
- XeroPHP\Models\Accounting\ExpenseClaim
- XeroPHP\Models\Accounting\Phone
- XeroPHP\Models\Accounting\UserRole
- XeroPHP\Models\Accounting\TaxRate
- XeroPHP\Models\Accounting\RepeatingInvoice
- XeroPHP\Models\Accounting\Employee
- XeroPHP\Models\Accounting\BankTransaction\LineItem
- XeroPHP\Models\Accounting\BankTransaction\BankAccount
- XeroPHP\Models\Accounting\History
- XeroPHP\Models\Accounting\Quote
- XeroPHP\Models\Accounting\ManualJournal\JournalLine
- XeroPHP\Models\Accounting\BankTransaction
- XeroPHP\Models\Accounting\BankTransfer\ToBankAccount
- XeroPHP\Models\Accounting\BankTransfer\FromBankAccount
- XeroPHP\Models\Accounting\BrandingTheme
- XeroPHP\Models\Accounting\LinkedTransaction
- XeroPHP\Models\Accounting\Currency
- XeroPHP\Models\Accounting\Contact
- XeroPHP\Models\Accounting\Prepayment
- XeroPHP\Models\Accounting\ContactGroup
- XeroPHP\Models\Accounting\Invoice\LineItem
- XeroPHP\Models\Accounting\User
- XeroPHP\Models\Accounting\InvoiceReminder
- XeroPHP\Models\Accounting\ReportTaxType
- XeroPHP\Models\Accounting\ExpenseClaim\ExpenseClaim
- XeroPHP\Models\Accounting\PaymentService
- XeroPHP\Models\Accounting\Overpayment
- XeroPHP\Models\Accounting\Organisation\Bill
- XeroPHP\Models\Accounting\Organisation\PaymentTerm
- XeroPHP\Models\Accounting\Organisation\ExternalLink
- XeroPHP\Models\Accounting\Organisation\Sale
- XeroPHP\Models\Accounting\Address
- XeroPHP\Models\Accounting\TrackingCategory\TrackingOption
- XeroPHP\Models\Accounting\ExternalLink
- XeroPHP\Models\Accounting\Receipt
- XeroPHP\Models\Accounting\BatchPayment
- XeroPHP\Models\Accounting\TaxType
- XeroPHP\Models\Accounting\Contact\ContactPerson
- XeroPHP\Models\Accounting\Item\Purchase
- XeroPHP\Models\Accounting\Item\Sale
- XeroPHP\Models\Accounting\Journal\JournalLine
- XeroPHP\Models\Accounting\TrackingCategory
- XeroPHP\Models\Accounting\SalesTaxBasis
- XeroPHP\Models\Accounting\CreditNote\Allocation
- XeroPHP\Models\Accounting\SalesTaxPeriod
- XeroPHP\Models\Accounting\Account
- XeroPHP\Models\Accounting\Payment
- XeroPHP\Models\Accounting\Organisation
- XeroPHP\Models\Accounting\Attachment
- XeroPHP\Models\Accounting\BankTransfer
- XeroPHP\Models\Subscription
- XeroPHP\Webhook
- XeroPHP\Exception
- XeroPHP\Webhook\Event
- XeroPHP\Traits\HistoryTrait
- XeroPHP\Traits\SendEmailTrait
- XeroPHP\Traits\PracticeManager\CustomFieldValueTrait
- XeroPHP\Traits\TitleCaseKeysBeforeSave
- XeroPHP\Traits\AttachmentTrait
- XeroPHP\Traits\PDFTrait
- XeroPHP\Application
- XeroPHP\Remote\URL
- XeroPHP\Remote\Response
- XeroPHP\Remote\Model
- XeroPHP\Remote\Collection
- XeroPHP\Remote\Exception
- XeroPHP\Remote\Object
- XeroPHP\Remote\Query
- XeroPHP\Remote\Request
- XeroPHP\Remote\ObjectInterface
- XeroPHP\Remote\Exception\NotFoundException
- XeroPHP\Remote\Exception\ReportPermissionMissingException
- XeroPHP\Remote\Exception\BadRequestException
- XeroPHP\Remote\Exception\NotAvailableException
- XeroPHP\Remote\Exception\NotImplementedException
- XeroPHP\Remote\Exception\InternalErrorException
- XeroPHP\Remote\Exception\UnknownStatusException
- XeroPHP\Remote\Exception\OrganisationOfflineException
- XeroPHP\Remote\Exception\ForbiddenException
- XeroPHP\Remote\Exception\RateLimitExceededException
- XeroPHP\Remote\Exception\RequiredFieldException
- XeroPHP\Remote\Exception\UnauthorizedException
- XeroPHP\Helpers
Download Latest Version: 2.7.0

Code Integration Example
Make sure to include the correct namespace and class paths for proper usage.
<?php
// Example from PHPlibraries.com
require_once 'libs/calcinai/xero-php/2.7.0/loader.php';
require_once 'libs/guzzle/guzzle/7.9.3/loader.php';
require_once 'libs/symfony/yaml/7.3.0/loader.php';
use Calcinai\Xero\Xero;
use GuzzleHttp\Client;
use Symfony\Component\Yaml\Yaml;
$obj = new Xero();
echo '✅ Test OK: ' . get_class($obj);
?>
We aim to make using PHP packages easier without Composer. If something doesn't work, let us know — we'll fix it promptly.
Community Discussion
Ask questions, share tips, or report issues below.