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. ?>


    Access your files securely from anywhere









                          Zoho Developer Community




                                                • Desk Community Learning Series


                                                • Digest


                                                • Functions


                                                • Meetups


                                                • Kbase


                                                • Resources


                                                • Glossary


                                                • Desk Marketplace


                                                • MVP Corner


                                                • Word of the Day


                                                • Ask the Experts





                                                          Manage your brands on social media



                                                                Zoho TeamInbox Resources



                                                                    Zoho CRM Plus Resources

                                                                      Zoho Books Resources


                                                                        Zoho Subscriptions Resources

                                                                          Zoho Projects Resources


                                                                            Zoho Sprints Resources


                                                                              Qntrl Resources


                                                                                Zoho Creator Resources



                                                                                    Zoho CRM Resources

                                                                                    • CRM Community Learning Series

                                                                                      CRM Community Learning Series


                                                                                    • Kaizen

                                                                                      Kaizen

                                                                                    • Functions

                                                                                      Functions

                                                                                    • Meetups

                                                                                      Meetups

                                                                                    • Kbase

                                                                                      Kbase

                                                                                    • Resources

                                                                                      Resources

                                                                                    • Digest

                                                                                      Digest

                                                                                    • CRM Marketplace

                                                                                      CRM Marketplace

                                                                                    • MVP Corner

                                                                                      MVP Corner







                                                                                        Design. Discuss. Deliver.

                                                                                        Create visually engaging stories with Zoho Show.

                                                                                        Get Started Now


                                                                                          Zoho Show Resources

                                                                                            Zoho Writer

                                                                                            Get Started. Write Away!

                                                                                            Writer is a powerful online word processor, designed for collaborative work.

                                                                                              Zoho CRM コンテンツ






                                                                                                Nederlandse Hulpbronnen


                                                                                                    ご検討中の方