2017 © Pedro Peláez
 

symfony-bundle xero-bundle

Symfony bundle wrapping the XeroPHP library

image

fourlabs/xero-bundle

Symfony bundle wrapping the XeroPHP library

  • Tuesday, July 10, 2018
  • by fourlabsldn
  • Repository
  • 1 Watchers
  • 3 Stars
  • 3,262 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 7 Versions
  • 8 % Grown

The README.md

XeroBundle

StyleCI Total Downloads, (*1)

This is a Symfony bundle wrapping the XeroPHP library. From the library's github page:, (*2)

A client implementation of the Xero API, with a cleaner OAuth interface and ORM-like abstraction., (*3)

I hate reinventing the wheel, but this was written out of desperation. I wasn't comfortable putting the implementation that's recommended by Xero in to production, even after persisting with extending it., (*4)

This is loosely based on the functional flow of XeroAPI/XeroOAuth-PHP, but is split logically into more of an OO design., (*5)

Download the bundle using composer

composer require fourlabs/xero-bundle

Enable the bundle

<?php
// app/AppKernel.php

public function registerBundles()
{
    $bundles = array(
        // ...
        new FL\XeroBundle\FLXeroBundle(),
        // ...
    );
}

Configure the bundle

For a full configuration reference use:, (*6)

php bin/console config:dump-reference FLXeroBundle

Example of a private app configuration:, (*7)

fl_xero:
  type: private
  oauth:
    callback: "https://mydomain.com/xero-callback"
    consumer_key: "%xero_consumer_key%"
    consumer_secret: "%xero_consumer_secret%"
    rsa_private_key: "file://%kernel.root_dir%/Resources/Xero/private.pem"
  curl:
    CURLOPT_USERAGENT: XeroPHP Test App

Usage

Using the Xero service in your controller:, (*8)

$xero = $this->get('fl_xero.app');

$contacts = $xero->load('Accounting\\Contact')->execute();
foreach ($contacts as $contact) {
    var_dump($contact);
}

The Versions

10/07 2018

dev-revert-2-v1.8

dev-revert-2-v1.8

Symfony bundle wrapping the XeroPHP library

  Sources   Download

MIT

The Requires

 

xero xero-php

10/07 2018

dev-master

9999999-dev

Symfony bundle wrapping the XeroPHP library

  Sources   Download

MIT

The Requires

 

xero xero-php

10/07 2018
10/07 2018

v1.8.x-dev

1.8.9999999.9999999-dev

Symfony bundle wrapping the XeroPHP library

  Sources   Download

MIT

The Requires

 

xero xero-php

10/07 2018

dev-analysis-qoj4EK

dev-analysis-qoj4EK

Symfony bundle wrapping the XeroPHP library

  Sources   Download

MIT

The Requires

 

xero xero-php

26/02 2017
16/11 2016