PHP code example of izziaraffaele / twenga-php
1. Go to this page and download the library: Download izziaraffaele/twenga-php 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/ */
izziaraffaele / twenga-php example snippets
use Twenga\Api;
// Initialize the API
$api = new Api([
'username' => 'username',
'password' => 'password'
]);
$response = $api->report([
'start' => 'YYYY-MM-DD',
'end' => 'YYYY-MM-DD'
]);
if($response->success())
{
var_dump($response->result());
}
bash
composer