Skip to content
master
Switch branches/tags
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
src
 
 
 
 

# Granatum Laravel Package to access Granatum API

Requirements

curl extension

Install

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

Configuration

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 :-)

Usage

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

License

The MIT License (MIT).

About

Laravel Package to access Granatum API

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages