Download the PHP package jamiebuckell/teamworkpm without Composer
On this page you can find all versions of the php package jamiebuckell/teamworkpm. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download jamiebuckell/teamworkpm
More information about jamiebuckell/teamworkpm
Files in jamiebuckell/teamworkpm
Download jamiebuckell/teamworkpm
More information about jamiebuckell/teamworkpm
Files in jamiebuckell/teamworkpm
Vendor jamiebuckell
Package teamworkpm
Short Description PHP wrapper for TeamWorkPm api.
License MIT
Package teamworkpm
Short Description PHP wrapper for TeamWorkPm api.
License MIT
Please rate this library. Is it a good library?
Informations about the package teamworkpm
TeamWorkPm PHP Api
Using Api
This is very easy use the method: save, insert, update, delete
// START configurtion
const API_KEY = 'horse48street';
const API_URL = 'http://yourcustomdomain.com'; // only required if you have a custom domain
try {
// set your keys
// if you do not have a custom domain:
TeamWorkPm\Auth::set(API_KEY);
// if you do have a custom domain:
// TeamWorkPm\Auth::set(API_URL, API_KEY);
// create an project
$project = TeamWorkPm\Factory::build('project');
$project_id = $project->save(array(
'name'=> 'This is an test project',
'description'=> 'Bla, Bla, Bla'
));
// create one people and add to project
$people = TeamWorkPm\Factory::build('people');
$person_id = $people->save(array(
'first_name' => "Test",
'last_name' => 'User',
'user_name' => 'test',
'email_address' => '[email protected]',
'password' => 'foo123',
'project_id' => $project_id
));
// create on milestone
$milestone = TeamWorkPm\Factory::build('milestone');
$milestone_id = $milestone->save(array(
'project_id' => $project_id,
'responsible_party_ids' => $person_id,
'title' => 'Test milestone',
'description' => 'Bla, Bla, Bla',
'deadline' => date('Ymd', strtotime('+10 day'))
));
// create one task list
$taskList = TeamWorkPm\Factory::build('task.list');
$task_list_id = $taskList->save(array(
'project_id' => $project_id,
'milestone_id' => $milestone_id,
'name' => 'My first task list',
'description' => 'Bla, Bla'
));
// create one task
$task = TeamWorkPm\Factory::build('task');
$task_id = $task->save(array(
'task_list_id' => $task_list_id,
'content' => 'Test Task',
'notify' => false,
'description' => 'Bla, Bla, Bla',
'due_date' => date('Ymd', strtotime('+10 days')),
'start_date' => date('Ymd'),
'private' => false,
'priority' => 'high',
'estimated_minutes' => 1000,
'responsible_party_id' => $person_id,
));
// add time to task
$time = TeamWorkPm\Factory::build('time');
$time_id = $time->save(array(
'task_id' => $task_id,
'person_id' => $person_id, // this is a required field
'description' => 'Test Time',
'date' => date('Ymd'),
'hours' => 5,
'minutes' => 30,
'time' => '08:30',
'isbillable' => false
));
echo 'Project Id: ', $project_id, "\n";
echo 'Person Id: ', $person_id, "\n";
echo 'Milestone Id: ', $milestone_id, "\n";
echo 'Task List Id: ', $task_list_id, "\n";
echo 'Task Id: ', $task_id, "\n";
echo 'Time id: ', $time_id, "\n";
} catch (Exception $e) {
print_r($e);
}
View the tests folder for more details
All versions of teamworkpm with dependencies
PHP Build Version
Package Version
Requires
php Version
>=5.4
The package jamiebuckell/teamworkpm contains the following files
Loading the files please wait ....