PHP code example of buckhamduffy / laravel-xero-practice-manager

1. Go to this page and download the library: Download buckhamduffy/laravel-xero-practice-manager 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/ */

    

buckhamduffy / laravel-xero-practice-manager example snippets


return [
    'cache' => false,
];

    $result = $client = LaravelXeroPracticeManager::make($token, $tenant_id)
                ->clients()
                ->list()
                ->send();
    if(!$result->successful()) {
        $result->throwError();
    }

    foreach($result->getDto() as $client) {
        dump($client);
    }
bash
php artisan vendor:publish --tag="laravel-xero-practice-manager-config"