PHP code example of maartendeblock / zenfactuurapi
1. Go to this page and download the library: Download maartendeblock/zenfactuurapi 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/ */
maartendeblock / zenfactuurapi example snippets
// You can find the api token in the settings of ZenFactuur.
$api_token = 'YOUR API_TOKEN';
// Create an instance of the ZenFactuur Client.
$zenfactuur = new \MaartenDeBlock\ZenFactuurApi\ZenFactuurApiClient($api_token);
// Get all the customers.
$customers = $zenfactuur->Customer->getAllCustomers();
var_dump($customers);