2017 © Pedro Peláez
 

library laravel-dinero

Dinero REST wrapper for Laravel

image

lasserafn/laravel-dinero

Dinero REST wrapper for Laravel

  • Tuesday, September 12, 2017
  • by lasserafn
  • Repository
  • 1 Watchers
  • 2 Stars
  • 26 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 0 Open issues
  • 1 Versions
  • 4 % Grown

The README.md

Laravel Dinero REST wrapper

This is a PHP/Laravel wrapper for Dinero., (*1)


Framework-agnostic package in the making

This package is no longer actively maintained, as I'm switching to this one: LasseRafn/php-dinero, (*2)

Benefits of the new package include:

  • Better code
  • Cleaned code
  • Tested code
  • Fewer dependencies (removed illuminate/support)
  • Maintained

You could actually use this for non-Laravel projects aswell, since we do not utilize any Laravel-specific functionality (we use Illuminate collections, that is required in the composers file) However I do not support anything but Laravel, so it has not been tested. Use at your own risk., (*3)

Installation

  1. Require using composer
composer require lasserafn/dinero-economic

Getting started

```` php $dinero = new \LasseRafn\Dinero\Dinero( $clientId, $clientSecret ); $dinero->auth( $apiKey, $orgId ); // this WILL send a request to the auth API., (*4)

$contacts = $dinero->contacts()->perPage(10)->page(2)->get();, (*5)

// Do something with the contacts., (*6)


```` php $invoices = $dinero->invoices()->all();

```` php $products = $dinero->products()->deletedOnly()->all();, (*7)


You can also use an old auth token, if you dont want to auth everytime you setup a new instance of Dinero. ```` php $dinero = new \LasseRafn\Dinero\Dinero( $clientId, $clientSecret ); $dinero->setAuth($token, $orgId); // this will NOT send a request to the auth API. $products = $dinero->products()->deletedOnly()->all();

About us / me

I created this library to make integrations with Dinero easier, considering we do A LOT of integrations at my work. I did this project while working at Bizz Zolutions., (*8)

The Versions

12/09 2017

dev-master

9999999-dev

Dinero REST wrapper for Laravel

  Sources   Download

MIT

The Requires

 

laravel api wrapper integration dinero