Skip to content

Repository files navigation

XeroBundle

XeroBundle makes it easy to communicate with the Xero api using the Guzzle library

How to get started

  1. Add the following to your composer.json file

        "require": {
            ...
            "blackoptic/xerobundle": "*"
            ...
        }
  2. Run php composer.phar update "blackoptic/xerobundle"

  3. Register the bundle in your app/AppKernel.php:

        <?php
        ...
        public function registerBundles()
        {
            $bundles = array(
                ...
                new BlackOptic\Bundle\XeroBundle\BlackOpticXeroBundle(),
                ...
            );
        ...
  4. 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>
  5. Request and use the service:

        $xeroClient = $this->get('blackoptic.xero.client');
        $response = $xeroClient->get('Invoices')->send();

About

Xero Bundle

Resources

Stars

4 stars

Watchers

2 watching

Forks

Releases

Packages

Contributors

Languages