blackoptic / xerobundle
Symfony2 Bundle that creates an Guzzle client for Xero
Installs: 469
Dependents: 0
Suggesters: 0
Security: 0
Stars: 4
Watchers: 2
Forks: 4
Open Issues: 4
Type:symfony-bundle
pkg:composer/blackoptic/xerobundle
Requires
- php: >=5.4.0
- ext-openssl: *
- guzzlehttp/oauth-subscriber: 0.3.*
- symfony/framework-bundle: 2.*
Requires (Dev)
- phpunit/phpunit: 4.8.*
This package is not auto-updated.
Last update: 2025-10-21 10:59:34 UTC
README
XeroBundle makes it easy to communicate with the Xero api using the Guzzle library
How to get started
-
Add the following to your
composer.jsonfile"require": { ... "blackoptic/xerobundle": "*" ... }
-
Run
php composer.phar update "blackoptic/xerobundle" -
Register the bundle in your
app/AppKernel.php:<?php ... public function registerBundles() { $bundles = array( ... new BlackOptic\Bundle\XeroBundle\BlackOpticXeroBundle(), ... ); ...
-
Add the config for your account details:
black_optic_xero: consumer_key: <Your Consumer Key> consumer_secret: <Your Consumer Secret> private_key: <Path to you private key>
-
Request and use the service:
$xeroClient = $this->get('blackoptic.xero.client'); $response = $xeroClient->get('Invoices')->send();