| Package Data | |
|---|---|
| Maintainer Username: | danfekete |
| Maintainer Contact: | daniel.fekete@voov.hu (Daniel Fekete) |
| Package Create Date: | 2016-02-23 |
| Package Last Update: | 2018-10-09 |
| Language: | PHP |
| License: | MIT |
| Last Refreshed: | 2025-10-29 03:02:13 |
| Package Statistics | |
|---|---|
| Total Downloads: | 1,392 |
| Monthly Downloads: | 0 |
| Daily Downloads: | 0 |
| Total Stars: | 2 |
| Total Watchers: | 1 |
| Total Forks: | 5 |
| Total Open Issues: | 3 |
This package is a Billingo API service provider and facade for Laravel 5.1+.
You have to use Composer to install the library
composer require voov/billingo-api-laravel
Find the providers array in the config/app.php file and add the Billingo Service Provider:
'providers' => [
// ...
Billingo\API\Laravel\BillingoServiceProvider::class
];
Now find the aliases array in the same config file and add the Billingo Facade class:
'aliases' => [
// ...
'Billingo' => Billingo\API\Laravel\BillingoFacade::class
];
Before you can use the Billingo service provider you have configure it with your API keys. You can access your API keys here: https://www.billingo.hu/api
In the command line type the following:
php artisan vendor:publish
This command will generate a billingo.php file inside your config directory (usually config/). Enter your API creditentials here.
// 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" => "rbrooks5@amazon.com",
"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');