PHP code example of fiscalo / php-sdk
1. Go to this page and download the library: Download fiscalo/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/ */
fiscalo / php-sdk example snippets
use Fiscalo\Sdk\FiscaloClient;
$client = new FiscaloClient(
apiKey: 'fisc_test_xxx',
baseUrl: 'https://api.fiscalo.pt/v1',
timeout: 30,
);
$document = $client->documents()->create([
'document_type' => 'invoice',
], 'my-idempotency-key');