PHP code example of alexz707 / invoiceninja-module
1. Go to this page and download the library: Download alexz707/invoiceninja-module 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/ */
alexz707 / invoiceninja-module example snippets
Module::INVOICE_NINJA_CONFIG => [
Module::API_TIMEOUT => 100,
Module::TOKEN => 'YOURTOKEN',
Module::HOST_URL => 'https://ninja.dev/api/v1',
/*
* If the api is protected by htaccess uncomment
* ONE of the following code blocks and use your credentials.
*/
Module::AUTHORIZATION => [
/*
* BASIC authorization
* \Zend\Http\Client::AUTH_BASIC => [
* Module::AUTH_USER => 'YOURUSER',
* Module::AUTH_PASS => 'YOURPASSWORD'
* ]
*/
/*
* DIGEST authorization
* \Zend\Http\ClientClient::AUTH_DIGEST => [
* Module::AUTH_USER => 'YOURUSER',
* Module::AUTH_PASS => 'YOURPASSWORD'
* ]
*/
]
]