1. Go to this page and download the library: Download lasserafn/php-dinero library. Choose the download type require.
2. Extract the ZIP file and open the index.php.
3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
lasserafn / php-dinero example snippets
composer
php
$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.
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();
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.