PHPackages                             myabakus/teamworkpm - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [API Development](/categories/api)
4. /
5. myabakus/teamworkpm

ActiveLibrary[API Development](/categories/api)

myabakus/teamworkpm
===================

PHP wrapper for Teamwork.com API

v3.2.0(1y ago)70162.5k↑18.8%57[1 issues](https://github.com/loduis/teamwork.com-project-management/issues)[1 PRs](https://github.com/loduis/teamwork.com-project-management/pulls)MITPHPPHP ^8.0

Since Mar 16Pushed 1y ago7 watchersCompare

[ Source](https://github.com/loduis/teamwork.com-project-management)[ Packagist](https://packagist.org/packages/myabakus/teamworkpm)[ RSS](/packages/myabakus-teamworkpm/feed)WikiDiscussions master Synced 2w ago

READMEChangelog (10)Dependencies (7)Versions (24)Used By (0)

Teamwork.com PHP API
====================

[](#teamworkcom-php-api)

[![Latest Stable Version](https://camo.githubusercontent.com/a8b536a05d7dcf98a357890924573f1018ebd2db0b9e4e5c665fbd1519d8e00a/68747470733a2f2f706f7365722e707567782e6f72672f6d796162616b75732f7465616d776f726b706d2f762f737461626c65)](https://packagist.org/packages/myabakus/teamworkpm)[![Total Downloads](https://camo.githubusercontent.com/44042601565bc2d9f8ed43ec0f10ddc49fb0ccaeaa4d8c485d19cbc0efd9a9d7/68747470733a2f2f706f7365722e707567782e6f72672f6d796162616b75732f7465616d776f726b706d2f646f776e6c6f616473)](https://packagist.org/packages/myabakus/teamworkpm)

This library allows you to interact with the Teamwork.com API for managing projects, tasks, milestones, people, and more. It’s designed for developers looking to automate or integrate project management processes within their PHP applications.

Installation
------------

[](#installation)

To install the package, run the following command in your terminal:

```
composer require myabakus/teamworkpm
```

Using the Api
-------------

[](#using-the-api)

In the following example, you will see how to use the API to create a project, add a person, define a milestone, create a task list, and assign a task with time tracking:

```
require __DIR__ . '/vendor/autoload.php';

// START configuration
const API_KEY = 'horse48street';
const API_URL = 'https://yourcustomdomain.com'; // only required if you have a custom domain

try {
    // set your keys
    // if you do not have a custom domain:
    Tpm::auth(API_KEY);

    // if you do have a custom domain:
    // Tpm::auth(API_URL, API_KEY);

    // if you do have a need use different format:
    // Tpm::auth(API_URL, API_KEY, API_FORMAT);

    // create a project
    $project_id = Tpm::project()->save([
        'name' => 'This is a test project',
        'description' => 'Bla, Bla, Bla',
    ]);

    // create one people and add to project
    $person_id = Tpm::people()->save([
        'first_name' => 'Test',
        'last_name' => 'User',
        'user_name' => 'test',
        'email_address' => 'email@hotmail.com',
        'password' => 'foo123',
        'project_id' => $project_id,
    ]);

    // create a milestone
    $milestone_id = Tpm::milestone()->save([
        'project_id' => $project_id,
        'responsible_party_ids' => $person_id,
        'title' => 'Test milestone',
        'description' => 'Bla, Bla, Bla',
        'deadline' => date('Ymd', strtotime('+10 day')),
    ]);

    // create a task list
    $task_list_id = Tpm::taskList()->save([
        'project_id' => $project_id,
        'milestone_id' => $milestone_id,
        'name' => 'My first task list',
        'description' => 'Bla, Bla',
    ]);

    // create a task
    $task_id = Tpm::task()->save([
        '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_id = Tpm::time()->save([
        'task_id' => $task_id,
        'person_id' => $person_id,
        '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

Console
-------

[](#console)

The console provides a visual interface for interacting with the API and viewing responses or debugging.

[![console](https://private-user-images.githubusercontent.com/451862/378080987-041dd784-fa3d-46eb-81a7-76a1b334ebf0.png?jwt=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3ODY3ODEyMzEsIm5iZiI6MTc4Njc4MDkzMSwicGF0aCI6Ii80NTE4NjIvMzc4MDgwOTg3LTA0MWRkNzg0LWZhM2QtNDZlYi04MWE3LTc2YTFiMzM0ZWJmMC5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjYwODE1JTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI2MDgxNVQwODAyMTFaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT1kNmFjZjZiNzQ0Y2YwNTczZjE4YzlmM2E2NWMxYjdlMmQxNDFiMzVkMGQxOWU5OTkwNGRiNWMzMTQzNDc5Njg1JlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCZyZXNwb25zZS1jb250ZW50LXR5cGU9aW1hZ2UlMkZwbmcifQ.Hnpy83uWSz56APdMR7PtnylLA554mwiE8YdndV66QLk)](https://private-user-images.githubusercontent.com/451862/378080987-041dd784-fa3d-46eb-81a7-76a1b334ebf0.png?jwt=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3ODY3ODEyMzEsIm5iZiI6MTc4Njc4MDkzMSwicGF0aCI6Ii80NTE4NjIvMzc4MDgwOTg3LTA0MWRkNzg0LWZhM2QtNDZlYi04MWE3LTc2YTFiMzM0ZWJmMC5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjYwODE1JTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI2MDgxNVQwODAyMTFaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT1kNmFjZjZiNzQ0Y2YwNTczZjE4YzlmM2E2NWMxYjdlMmQxNDFiMzVkMGQxOWU5OTkwNGRiNWMzMTQzNDc5Njg1JlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCZyZXNwb25zZS1jb250ZW50LXR5cGU9aW1hZ2UlMkZwbmcifQ.Hnpy83uWSz56APdMR7PtnylLA554mwiE8YdndV66QLk)

Save your tests fixtures

```
  > stf(Tpm::me()->get())
```

###  Health Score

51

—

FairBetter than 95% of packages

Maintenance36

Infrequent updates — may be unmaintained

Popularity50

Moderate usage in the ecosystem

Community24

Small or concentrated contributor base

Maturity78

Established project with proven stability

 Bus Factor1

Top contributor holds 72.2% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~197 days

Recently: every ~1 days

Total

21

Last Release

584d ago

Major Versions

v1.4.1 → v2.0.02024-10-17

v2.0.0 → v3.0.02025-01-05

PHP version history (3 changes)v1.0.2PHP &gt;=5.3

v1.0.3PHP &gt;=5.4

v2.0.0PHP ^8.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/add48fa4c34a8becb790d1907a00eb376e30fb07a851f1c0e2ca054657333826?d=identicon)[loduis](/maintainers/loduis)

---

Top Contributors

[![loduis](https://avatars.githubusercontent.com/u/451862?v=4)](https://github.com/loduis "loduis (104 commits)")[![simonschaufi](https://avatars.githubusercontent.com/u/941794?v=4)](https://github.com/simonschaufi "simonschaufi (27 commits)")[![JamieBuckell](https://avatars.githubusercontent.com/u/5079302?v=4)](https://github.com/JamieBuckell "JamieBuckell (5 commits)")[![paulsheldrake](https://avatars.githubusercontent.com/u/1062456?v=4)](https://github.com/paulsheldrake "paulsheldrake (2 commits)")[![logsdon](https://avatars.githubusercontent.com/u/4739764?v=4)](https://github.com/logsdon "logsdon (1 commits)")[![AlanHolmes](https://avatars.githubusercontent.com/u/4289202?v=4)](https://github.com/AlanHolmes "AlanHolmes (1 commits)")[![thorne51](https://avatars.githubusercontent.com/u/3481569?v=4)](https://github.com/thorne51 "thorne51 (1 commits)")[![Biegalski-LLC](https://avatars.githubusercontent.com/u/20915124?v=4)](https://github.com/Biegalski-LLC "Biegalski-LLC (1 commits)")[![crgeary](https://avatars.githubusercontent.com/u/3949335?v=4)](https://github.com/crgeary "crgeary (1 commits)")[![joesken](https://avatars.githubusercontent.com/u/19315012?v=4)](https://github.com/joesken "joesken (1 commits)")

###  Code Quality

TestsPHPUnit

Static AnalysisPsalm

Type Coverage Yes

### Embed Badge

![Health badge](/badges/myabakus-teamworkpm/health.svg)

```
[![Health](https://phpackages.com/badges/myabakus-teamworkpm/health.svg)](https://phpackages.com/packages/myabakus-teamworkpm)
```

###  Alternatives

[exsyst/swagger

A php library to manipulate Swagger specifications

35816.5M7](/packages/exsyst-swagger)[lucasdotvin/laravel-soulbscription

A straightforward interface to handle subscriptions and features consumption.

709209.3k](/packages/lucasdotvin-laravel-soulbscription)[pimax/fb-messenger-php

Facebook Messenger Bot PHP API

313188.5k2](/packages/pimax-fb-messenger-php)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
