2017 © Pedro Peláez
 

library billingo-api-laravel

Billingo API Provider for Laravel 5+

image

voov/billingo-api-laravel

Billingo API Provider for Laravel 5+

  • Wednesday, August 23, 2017
  • by danfekete
  • Repository
  • 1 Watchers
  • 1 Stars
  • 518 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 4 Forks
  • 1 Open issues
  • 4 Versions
  • 1 % Grown

The README.md

Billingo API Provider for Laravel

This package is a Billingo API service provider and facade for Laravel 5.1+., (*1)

Installing

You have to use Composer to install the library, (*2)

composer require voov/billingo-api-laravel

Find the providers array in the config/app.php file and add the Billingo Service Provider:, (*3)

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

Now find the aliases array in the same config file and add the Billingo Facade class:, (*4)

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

Config

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, (*5)

In the command line type the following:, (*6)

php artisan vendor:publish

This command will generate a billingo.php file inside your config directory (usually config/). Enter your API creditentials here., (*7)

Usage

Get resource

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

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

Save resource

// 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);

Update resource

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

Delete resource

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

The Versions

23/08 2017

dev-master

9999999-dev

Billingo API Provider for Laravel 5+

  Sources   Download

MIT

The Requires

 

by Daniel Fekete

05/07 2017

0.1.3

0.1.3.0

Billingo API Provider for Laravel 5+

  Sources   Download

MIT

The Requires

 

by Daniel Fekete

23/02 2016

0.1.2

0.1.2.0

Billingo API Provider for Laravel 5+

  Sources   Download

MIT

The Requires

 

by Daniel Fekete

23/02 2016

0.1.1

0.1.1.0

Billingo API Provider for Laravel 5+

  Sources   Download

MIT

The Requires

 

by Daniel Fekete