2017 © Pedro Peláez
 

library xero-laravel

Xero Service Provider for Laravel 5

image

trexology/xero-laravel

Xero Service Provider for Laravel 5

  • Friday, April 1, 2016
  • by trexology
  • Repository
  • 1 Watchers
  • 0 Stars
  • 50 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 10 Forks
  • 0 Open issues
  • 15 Versions
  • 9 % Grown

The README.md

Xero Service Provider for Laravel 5

A simple Laravel 5 service provider for including the PHP Xero API., (*1)

No longer maintained

Please note the PHP-Xero wrapper library used by this service provider is no longer under active development. All development effort is going into the XeroOAuth-PHP library., (*2)

We will review this after Laravel 5 has been released and likely leave this active (but unsupported) for anyone still using it for their Laravel 4 apps., (*3)

Installation

The Xero Service Provider can be installed via Composer by requiring the Trexology/xero-laravel package in your project's composer.json., (*4)

{
    "require": {
        "trexology/xero-laravel": "^3.0",
    },
}

Usage

To use the Xero Service Provider, you must register the provider when bootstrapping your Laravel application., (*5)

Use Laravel Configuration

Create a new config/xero.php configuration file with the following options:, (*6)

return [
    'key'           => '<your-xero-key>',
    'secret'        => '<your-xero-secret>',
    'publicPath'    => '../config/xero/publickey.cer',
    'privatePath'   => '../config/xero/privatekey.pem',
    'format'        => 'json'
];

Find the providers key in config/app.php and register the Xero Service Provider., (*7)

    'providers' => [
        // ...
        'Trexology\XeroLaravel\XeroLaravelServiceProvider',
    ]

Find the aliases key in config/app.php and add in our Xero alias., (*8)

    'aliases' => [
        // ...
        'XeroLaravel'     => 'Trexology\XeroLaravel\Facades\XeroLaravel',
    ]

Setting up the application

Create public and private keys, and save them in /config/xero/ as publickey.cer and privatekey.pem., (*9)

For more info on setting up your keys, check out the Xero documentation, (*10)

Example Usage

$contact = [
    [
        "Name"        => $user['company']['name'],
        "FirstName"   => $user['firstname'],
        "LastName"    => $user['surname'],
    ]
];

$xero_contact = XeroLaravel::Contacts($contact);

Reference

The Versions

01/04 2016

dev-master

9999999-dev

Xero Service Provider for Laravel 5

  Sources   Download

MIT

The Requires

 

by Trex Lim

laravel laravel 4 laravel 5 xero

01/04 2016

v3.0.4

3.0.4.0

Xero Service Provider for Laravel 5

  Sources   Download

MIT

The Requires

 

by Trex Lim

laravel laravel 4 laravel 5 xero

30/03 2015

dev-develop

dev-develop

Xero Service Provider for Laravel 4

  Sources   Download

MIT

The Requires

 

laravel laravel 4 xero

30/03 2015

v3.0.3

3.0.3.0

Xero Service Provider for Laravel 4

  Sources   Download

MIT

The Requires

 

laravel laravel 4 xero

30/03 2015

v3.0.2

3.0.2.0

Xero Service Provider for Laravel 4

  Sources   Download

MIT

The Requires

 

laravel laravel 4 xero

29/03 2015

v3.0.1

3.0.1.0

Xero Service Provider for Laravel 4

  Sources   Download

MIT

The Requires

 

laravel laravel 4 xero

17/11 2014

v2.0.4

2.0.4.0

Xero Service Provider for Laravel 4

  Sources   Download

MIT

The Requires

 

laravel laravel 4 xero

03/11 2014

v2.0.3

2.0.3.0

Xero Service Provider for Laravel 4

  Sources   Download

MIT

The Requires

 

laravel laravel 4 xero

24/04 2014

v2.0.2

2.0.2.0

Xero Service Provider for Laravel 4

  Sources   Download

MIT

The Requires

 

laravel laravel 4 xero

14/03 2014

v2.0.1

2.0.1.0

Xero Service Provider for Laravel 4

  Sources   Download

MIT

The Requires

 

laravel laravel 4 xero

10/03 2014

4.1.x-dev

4.1.9999999.9999999-dev

Xero Service Provider for Laravel 4

  Sources   Download

MIT

The Requires

 

laravel laravel 4 xero

10/03 2014

v1.0.3

1.0.3.0

Xero Service Provider for Laravel 4

  Sources   Download

MIT

The Requires

 

laravel laravel 4 xero

10/03 2014

v2.0.0

2.0.0.0

Xero Service Provider for Laravel 4

  Sources   Download

MIT

The Requires

 

laravel laravel 4 xero

30/07 2013

v1.0.2

1.0.2.0

Xero Service Provider for Laravel 4

  Sources   Download

MIT

The Requires

 

laravel laravel 4 xero

03/07 2013

v1.0.1

1.0.1.0

Xero Service Provider for Laravel 4

  Sources   Download

MIT

The Requires

 

laravel laravel 4 xero