PHP code example of mpernia / holded-php-sdk
1. Go to this page and download the library: Download mpernia/holded-php-sdk 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/ */
mpernia / holded-php-sdk example snippets
olded\SDK\HoldedClient;
// Create a client with your API key
$client = HoldedClient::builder()
->withApiKey('your-holded-api-key')
->build();
// List invoices
$invoices = $client->documents()
->type(\Holded\SDK\Documents\DocumentType::INVOICE)
->list();
// Get a specific contact
$contact = $client->contacts()->get('contact-id');
bash
composer