PHP Package: xeroapi/xero-php-oauth2

The Xero PHP OAuth2 library facilitates seamless integration with Xero's API, providing secure access to financial data.

Current Version: 8.0.0
Last Updated: 2025-02-03
PHP Requirement: >=5.6
Dependencies:
guzzle/guzzle
php-fig/http-client
php-fig/http-message
⚠️ To ensure full functionality, the above dependencies might be required.

Package Description

The Xero PHP OAuth2 library simplifies the process of authenticating and interacting with Xero's accounting software. It offers robust functionality for managing invoices, contacts, and more, enhancing your workflow efficiency.

📦 Show all available classes🔗 View on GitHub

Download Latest Version: 9.1.0

Clock Coming soon

Previous Versions

Code Integration Example

Make sure to include the correct namespace and class paths for proper usage.

<?php
// Example from PHPlibraries.com
require_once 'libs/xeroapi/xero-php-oauth2/9.1.0/loader.php';
require_once 'libs/guzzle/guzzle/7.9.3/loader.php';
require_once 'libs/php-fig/http-client/1.0.3/loader.php';
require_once 'libs/php-fig/http-message/2.0/loader.php';

use XeroAPI\Accounting\AccountingApi;
use GuzzleHttp\Client;
use Psr\Http\Message\StreamInterface;

$obj = new AccountingApi();
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.