PHPackages                             cakephp-biztech/cakephp-xero-oauth2 - 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. cakephp-biztech/cakephp-xero-oauth2

ActiveCakephp-plugin[API Development](/categories/api)

cakephp-biztech/cakephp-xero-oauth2
===================================

Xero Oauth2 API plugin for CakePHP 3.x

0.2.3(5y ago)21.5k1[1 issues](https://github.com/cakephp-biztech/cakephp-xero-oauth2/issues)MITPHP

Since Jun 3Pushed 3y agoCompare

[ Source](https://github.com/cakephp-biztech/cakephp-xero-oauth2)[ Packagist](https://packagist.org/packages/cakephp-biztech/cakephp-xero-oauth2)[ Docs](https://github.com/cakephp-biztech/cakephp-xero-oauth2)[ RSS](/packages/cakephp-biztech-cakephp-xero-oauth2/feed)WikiDiscussions master Synced 5d ago

READMEChangelog (1)Dependencies (3)Versions (10)Used By (0)

Xero OAuth2 API plugin for CakePHP 3.x
======================================

[](#xero-oauth2-api-plugin-for-cakephp-3x)

[![Latest Stable Version](https://camo.githubusercontent.com/a71dc33a09ffe4672bd20220fffdb59e8b2b93b8271fb7f915ceed7e23fc746f/68747470733a2f2f706f7365722e707567782e6f72672f63616b657068702d62697a746563682f63616b657068702d7865726f2d6f61757468322f76)](//packagist.org/packages/cakephp-biztech/cakephp-xero-oauth2)[![Total Downloads](https://camo.githubusercontent.com/8f066a0757498700b26f36639f87029fc3f814ec4a6958604eeee850641cfe0b/68747470733a2f2f706f7365722e707567782e6f72672f63616b657068702d62697a746563682f63616b657068702d7865726f2d6f61757468322f646f776e6c6f616473)](//packagist.org/packages/cakephp-biztech/cakephp-xero-oauth2)[![License](https://camo.githubusercontent.com/e8b84875c0b5b81d9f04987fb05aff7b4c3a733d711427df827ca8bebeafb366/68747470733a2f2f706f7365722e707567782e6f72672f63616b657068702d62697a746563682f63616b657068702d7865726f2d6f61757468322f6c6963656e7365)](//packagist.org/packages/cakephp-biztech/cakephp-xero-oauth2)[![Latest Unstable Version](https://camo.githubusercontent.com/c452962fdf70d9992ad99e5631cc30b2ef7a971b4ca738ae50b859e75ee28977/68747470733a2f2f706f7365722e707567782e6f72672f63616b657068702d62697a746563682f63616b657068702d7865726f2d6f61757468322f762f756e737461626c65)](//packagist.org/packages/cakephp-biztech/cakephp-xero-oauth2)

This plugin provides access to Xero OAuth2 API for [CakePHP](https://cakephp.org/). This plugin is wrapper around [Xero PHP official SDK](https://github.com/XeroAPI/xero-php-oauth2/).

Requirements
------------

[](#requirements)

- CakePHP 3.5 or greater
- PHP 5.6 or greater

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

[](#installation)

1. You can install this plugin into your CakePHP application using [composer](https://getcomposer.org)

    ```
    composer require cakephp-biztech/cakephp-xero-oauth2

    ```
2. After installation, [load the plugin](https://book.cakephp.org/3/en/plugins.html#loading-a-plugin)

    ```
    Plugin::load('XeroOauth2', ['routes' => true]);
    ```

    Or, you can load the plugin using the shell command:

    ```
    bin/cake plugin load -r XeroOauth2

    ```
3. Run plugin migration to create table

    ```
    bin/cake migrations migrate -p XeroOauth2

    ```

Setup
-----

[](#setup)

Now create new file to set your Xero App details.

1. Create new file `xero_config.php` in `config` directory:

    ```
