1. Go to this page and download the library: Download invoiceninja/sdk-php 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/ */
invoiceninja / sdk-php example snippets
use InvoiceNinja\Sdk\InvoiceNinja;
$ninja = new InvoiceNinja("your_token");
$invoices = $ninja->invoices->all();
$clients = $ninja->clients->all();
$clients = $ninja->clients->all([
'balance' => 'lt:10', // get all clients with a balance less than 10
'per_page' => 10, // return 10 results per page
'page' => 2, // paginate to page 2
'