Zoho Projects PHP Class

Zoho Projects PHP Class

I've created a PHP class that makes most of the Project API methods more easily accessible in PHP.  It utilizes  cURL libraries for the cross server communication.

  Google Code Repository

Please feel free to fork it/ improve it / extend it / etc...
Please also respect the Apache License

It does not yet include any of the time tracking API methods.  It's on my todo list, I just haven't found the time (and I don't know about anyone else, but I have trouble getting my users to log their time anyway). 


Example Code:

  1. <?php 
  2. require_once 'Zoho.class.php';
  3. // instantiate the class
  4. $zoho = new Zoho('[username]','[password]');

  5. //create a new project
  6. $project = $zoho->addProject('Test Project','This is a test of the project API');
  7. //Get the project ID
  8. $projID = $project->response->result->ProjectDetails[0]->ProjectDetail->project_id;

  9. // add a milestone
  10. $milestone = $zoho->addMilestone($projID,'Milestone Name');
  11. // get the ID of the milestone we just created.
  12. $mID = $milestone->response->result->MilestoneDetails[0]->MilestoneDetail->MS_id;

  13. // add a tasklist to the milestone we just created.
  14. $tlist = $zoho->addTasklist($projID,'New Tasklist',$mID,'internal','active');
  15. // get the id of the tasklist we just created
  16. $tlistID = $tlist->response->result->TaskListDetails[0]->TaskListDetail->todolist_id;

  17. // add a task to the tasklist, starting now, owned by the user.
  18. $task = $zoho->addTask($projID,$tlistID,'This is a test task');

  19. ?>