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(9y ago)033MITPHPPHP &gt;=7.0

Since May 17Pushed 9y 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 today

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 31% 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

3608d 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

[tencentcloud/tencentcloud-sdk-php

TencentCloudApi php sdk

3661.2M46](/packages/tencentcloud-tencentcloud-sdk-php)[files.com/files-php-sdk

Files.com PHP SDK

2478.1k](/packages/filescom-files-php-sdk)[clicksend/clicksend-php

301.6M11](/packages/clicksend-clicksend-php)[eslazarev/wildberries-sdk

Wildberries OpenAPI clients (generated).

252.5k](/packages/eslazarev-wildberries-sdk)

PHPackages © 2026

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