| Package Data | |
|---|---|
| Maintainer Username: | lasserafn |
| Maintainer Contact: | lasserafn@gmail.com (Lasse Rafn) |
| Package Create Date: | 2017-08-09 |
| Package Last Update: | 2023-04-19 |
| Language: | PHP |
| License: | MIT |
| Last Refreshed: | 2025-11-03 15:00:57 |
| Package Statistics | |
|---|---|
| Total Downloads: | 5,221 |
| Monthly Downloads: | 0 |
| Daily Downloads: | 0 |
| Total Stars: | 11 |
| Total Watchers: | 4 |
| Total Forks: | 8 |
| Total Open Issues: | 9 |
This is a PHP wrapper for Dinero. Forked from lasserafn/laravel-dinero.
composer require lasserafn/php-dinero
Apply as a developer at Dinero
Get your client id and secret
Find the organisation id when logged into Dinero (bottom left)

Create an API key inside Dinero
Utilize the wrapper as below
$dinero = new \LasseRafn\Dinero\Dinero( $clientId, $clientSecret );
$dinero->auth( $apiKey, $orgId ); // this WILL send a request to the auth API.
$contacts = $dinero->contacts()->perPage(10)->page(2)->get();
// Do something with the contacts.
$invoices = $dinero->invoices()->all();
$products = $dinero->products()->deletedOnly()->all();
You can also use an old auth token, if you dont want to auth everytime you setup a new instance of Dinero.
$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();
// Create Instance
$dinero = new \LasseRafn\Dinero\Dinero( $clientId, $clientSecret );
// Auth to a Dinero account
$dinero->auth( $apiKey, $orgId );
// Create the contact
$contact = $dinero->contacts()->create([ 'IsPerson' => true, 'Name' => 'Test', 'CountryKey' => 'DK' ]);
// if the request succeeded, $contact will be a \LasseRafn\Dinero\Models\Contact object.