curl extension
Via composer
$ composer require emanuti/granatum
Open config/app.php
Add
Emanuti\Granatum\GranatumServiceProvider::class,
inside providers key of array
Add
'Granatum' => Emanuti\Granatum\Facade::class
inside aliases key of array
Run
$ php artisan vendor:publish
will generate config/granatum.php
Open generated file granatum.php by vendor:publish comand and fill: env will determine the enviroment that you are token dev will be used to test and prod, you know :-)
Available routes: https://www.granatum.com.br/financeiro/api/
To get a collection related with route
\Granatum::get('any_route_available');
To get an item of collection by id
\Granatum::get('any_route_available', id);
where id will be an integer
To add one item
\Granatum::post('any_route_available', fields);
where fields will be an array
To edit one item
\Granatum::put('any_route_available', id, fiedls);
where fields will be an array and id will be an integer
To delete one item
\Granatum::delete('any_route_available', id);
The MIT License (MIT).