PHP code example of garethmidwood / codebasehq-php
1. Go to this page and download the library: Download garethmidwood/codebasehq-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/ */
garethmidwood / codebasehq-php example snippets
$codebaseHQ = new GarethMidwood\CodebaseHQ\CodebaseHQAccount(
$apiUser,
$apiKey,
$apiHost
);
// can be All|Day|Week|Month
$period = new GarethMidwood\CodebaseHQ\TimeSession\Period\Week;
$codebaseHQ->times($project, $period);
// times for the project
$project->getTimeSessions();
// times associated to a user
$user->getTimeSessions();
// times associated to a ticket
$ticket->getTimeSessions();
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.