PHP code example of fourlabs / xero-bundle
1. Go to this page and download the library: Download fourlabs/xero-bundle library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
fourlabs / xero-bundle example snippets
// app/AppKernel.php
public function registerBundles()
{
$bundles = array(
// ...
new FL\XeroBundle\FLXeroBundle(),
// ...
);
}
$xero = $this->get('fl_xero.app');
$contacts = $xero->load('Accounting\\Contact')->execute();
foreach ($contacts as $contact) {
var_dump($contact);
}
bash
php bin/console config:dump-reference FLXeroBundle