PHPackages                             petercoles/xero - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [API Development](/categories/api)
4. /
5. petercoles/xero

ActiveLibrary[API Development](/categories/api)

petercoles/xero
===============

Xero API wrapper

0.0.4(10y ago)033MITPHPPHP &gt;=7.0

Since May 17Pushed 10y ago1 watchersCompare

[ Source](https://github.com/petercoles/Xero)[ Packagist](https://packagist.org/packages/petercoles/xero)[ Docs](https://github.com/petercoles/xero)[ RSS](/packages/petercoles-xero/feed)WikiDiscussions master Synced 2w ago

READMEChangelogDependencies (5)Versions (6)Used By (0)

Xero API Wrapper
================

[](#xero-api-wrapper)

Introduction
------------

[](#introduction)

*This is a pre-alpha package* designed to provide a simple interface to the Xero API for private applications. It's not yet suitable for production use.

If you're looking for something usable now, try the [official Xero library](https://github.com/XeroAPI/XeroOAuth-PHP), [Michael Calcinai's cleaner but incomplete alternative](https://github.com/calcinai/xero-php) (it lacks reports) or my favorite, [Casper Bakker's lighweight client](https://github.com/picqer/xero-php-client) which, though very limited in functionality, has a nice UI.

But back to this package ...

Installation
------------

[](#installation)

At the command line run

```
composer require petercoles/xero

```

Usage
-----

[](#usage)

Testing
-------

[](#testing)

The package will have two test suites. A "unit" test suite will simulate http activity (i.e. won't hit the Betfair servers), and an "integration" test suite that will test connectivity and the acceptability of requests so will need valid credentials. These should be placed in a file called .env.php in the tests/Integration folder which can be created by editing and renaming the .env.example.php file that's already there.

To run the test suites:

```
phpunit --testsuite=unit
phpunit --testsuite=integration

```

It's recommended that you only run the tests via the test suites, as some tests are deliberately excluded to avoid unintended placement of orders or moving funds around.

Issues
------

[](#issues)

This package was developed to meet a specific need and then generalised for wider use. If you have a use case not currently met, or see something that appears to not be working correctly, please raise an issue at the [github repo](https://github.com/petercoles/xero/issues).

License
-------

[](#license)

This package is licensed under the [MIT license](http://opensource.org/licenses/MIT).

###  Health Score

24

—

LowBetter than 30% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity52

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~21 days

Total

5

Last Release

3653d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/2947594?v=4)[Peter Coles](/maintainers/petercoles)[@petercoles](https://github.com/petercoles)

---

Top Contributors

[![petercoles](https://avatars.githubusercontent.com/u/2947594?v=4)](https://github.com/petercoles "petercoles (38 commits)")

---

Tags

apiAccountingxero

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/petercoles-xero/health.svg)

```
[![Health](https://phpackages.com/badges/petercoles-xero/health.svg)](https://phpackages.com/packages/petercoles-xero)
```

###  Alternatives

[eslazarev/wildberries-sdk

Wildberries OpenAPI clients (generated).

353.6k](/packages/eslazarev-wildberries-sdk)[leantime/leantime

Open source project management system for non-project managers. Simple like Trello, powerful like Jira. Built with neurodiversity in mind.

11.3k4.0k](/packages/leantime-leantime)[tencentcloud/tencentcloud-sdk-php

TencentCloudApi php sdk

3661.3M49](/packages/tencentcloud-tencentcloud-sdk-php)[resend/resend-php

Resend PHP library.

608.3M51](/packages/resend-resend-php)[files.com/files-php-sdk

Files.com PHP SDK

2482.9k](/packages/filescom-files-php-sdk)[checkout/checkout-sdk-php

Checkout.com SDK for PHP

563.6M16](/packages/checkout-checkout-sdk-php)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
