2017 © Pedro Peláez
 

library xero

Xero API wrapper

image

servality/xero

Xero API wrapper

  • Monday, July 17, 2017
  • by servality
  • Repository
  • 1 Watchers
  • 0 Stars
  • 24 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 4 Versions
  • 4 % Grown

The README.md

PHP Wrapper for Xero API

Latest Stable Version License, (*1)

Requirements

  • PHP 7+
  • guzzlehttp/guzzle
  • guzzlehttp/oauth-subscriber

Introduction

This application was written as a simple Xero API wrapper for use in a laravel application. At this stage, support is only available for private applications., (*2)

Installation

Recommended installation is through Composer., (*3)

console:, (*4)

composer require servality/xero:dev-master

or add to composer.json:, (*5)

  {
    "require": {
    "servality/xero": "dev-master"
    }
  }

Prerequisites

A Xero organisation is required to use the API. It's recommended a demo company is created for testing. Follow the steps at Xero Developer to create a private application., (*6)

Usage

Basic usage

   $config = [
       'oauth' => [
           'consumer_key' => 'appication_consumer_key',
           'consumer_secret' => 'appication_consumer_secret',
           'private_key_file' => 'path/to/private_key.pem',
           'private_key_passphrase' => 'passphrase'
       ],
       'response' => 'json', //json or xml
       'user_agent' => 'application_name'
   ]

   $xero = new XeroApplication($config);

   $xero->invoices()->get();

Filtering

   $xero->contacts()->where('name.contains("Mark")')->get();

Xml Helper

This package included and XML Helper class for converting an array to xml., (*7)

See wiki Page for details., (*8)

License

Open-sourced software licensed under the MIT license., (*9)

The Versions

17/07 2017

dev-master

9999999-dev

Xero API wrapper

  Sources   Download

MIT

The Requires

 

by Michael Newman

api xero

18/06 2017

v1.0.4

1.0.4.0

Xero API wrapper

  Sources   Download

MIT

The Requires

 

by Michael Newman

api xero

18/06 2017

v1.0.3

1.0.3.0

Xero API wrapper

  Sources   Download

MIT

The Requires

 

by Michael Newman

api xero

17/06 2017

v1.0

1.0.0.0

Xero API wrapper

  Sources   Download

MIT

The Requires

 

by Michael Newman

api xero