PHP code example of zulfadliresources / myinvois
1. Go to this page and download the library: Download zulfadliresources/myinvois 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/ */
zulfadliresources / myinvois example snippets
use MyInvois\MyInvoisClient;
$config = [
'apiKey' => 'your-api-key',
'clientId' => 'your-client-id',
'clientSecret' => 'your-client-secret',
'production' => false, // Set to true for production
];
$client = new MyInvoisClient($config);
// Create and submit an invoice
$invoice = new Invoice();
// ... configure invoice ...
$submission = $client->getDocumentSubmissionService()->submit($invoice);