PHP code example of voov / billingo-api-laravel

1. Go to this page and download the library: Download voov/billingo-api-laravel 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/ */

    

voov / billingo-api-laravel example snippets


'providers' => [
  // ...
  Billingo\API\Laravel\BillingoServiceProvider::class
];

'aliases' => [
  // ...
  'Billingo' => Billingo\API\Laravel\BillingoFacade::class
];

// Return the list of clients
$clients = Billingo::get('clients');

// Return one client
$client = Billingo::get('clients/123456789');

// save a new client
$clientData = [
  "name" => "Gigazoom LLC.",
  "email" => "[email protected]",
  "billing_address" => [
      "street_name" => "Moulton",
      "street_type" => "Terrace",
      "house_nr" => "2797",
      "city" => "Preston",
      "postcode" => "PR1",
      "country" => "United Kingdom"
  ]
]
Billingo::post('clients', $clientData);

// save client
Billingo::put('clients/123456789', $newData);

// delete client
Billingo::delete('clients/123456789');

php artisan vendor:publish