PHPackages                             ciromattia/laravel-teamwork - 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. ciromattia/laravel-teamwork

AbandonedArchivedLibrary[API Development](/categories/api)

ciromattia/laravel-teamwork
===========================

PHP wrapper for the Teamwork project management API

v1.3(8y ago)25872MITPHPPHP &gt;=7.1.0

Since May 25Pushed 5y ago1 watchersCompare

[ Source](https://github.com/ciromattia/laravel-teamwork)[ Packagist](https://packagist.org/packages/ciromattia/laravel-teamwork)[ RSS](/packages/ciromattia-laravel-teamwork/feed)WikiDiscussions master Synced yesterday

READMEChangelog (1)Dependencies (3)Versions (16)Used By (0)

Laravel Service Provider for Teamwork
=====================================

[](#laravel-service-provider-for-teamwork)

[![teamwork-developer](https://camo.githubusercontent.com/b5134e5677989aef6b504efdda0af2e2c84dde9eb7c4b6d33552795047ba42bb/68747470733a2f2f646576656c6f7065722e7465616d776f726b2e636f6d2f696d616765732f6c6f676f2d6170692e706e67)](https://camo.githubusercontent.com/b5134e5677989aef6b504efdda0af2e2c84dde9eb7c4b6d33552795047ba42bb/68747470733a2f2f646576656c6f7065722e7465616d776f726b2e636f6d2f696d616765732f6c6f676f2d6170692e706e67)

[![Scrutinizer Code Quality](https://camo.githubusercontent.com/f120295b1d1949fdf6b24c6fe0aa68de418974103425ca722546c3b9c9965915/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f6369726f6d61747469612f6c61726176656c2d7465616d776f726b2f6261646765732f7175616c6974792d73636f72652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/ciromattia/laravel-teamwork/?branch=master)[![Code Coverage](https://camo.githubusercontent.com/f7facb3c16da1292873c1502764df3bb1ed1cda777082d79804ef50c5e81edef/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f6369726f6d61747469612f6c61726176656c2d7465616d776f726b2f6261646765732f636f7665726167652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/ciromattia/laravel-teamwork/?branch=master)[![Build Status](https://camo.githubusercontent.com/a9a1a3a86671da234e51767ea2976166cb59e99261b22d30b24833694ff30652/68747470733a2f2f7472617669732d63692e6f72672f6369726f6d61747469612f6c61726176656c2d7465616d776f726b2e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/ciromattia/laravel-teamwork)[![Release](https://camo.githubusercontent.com/fd09cf4a8ddf036e59d4c5e21568c5117d72abb3fa1d783b7e33d9f69b0d82ba/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f72656c656173652f6369726f6d61747469612f6c61726176656c2d7465616d776f726b2e7376673f7374796c653d666c6174)](https://camo.githubusercontent.com/fd09cf4a8ddf036e59d4c5e21568c5117d72abb3fa1d783b7e33d9f69b0d82ba/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f72656c656173652f6369726f6d61747469612f6c61726176656c2d7465616d776f726b2e7376673f7374796c653d666c6174)[![License](https://camo.githubusercontent.com/57a3df8eb2ae3bac71a6e15c35169cd7cb9ee78e7750ef34f25755c1d5c8e578/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f6369726f6d61747469612f6c61726176656c2d7465616d776f726b2e7376673f7374796c653d666c6174)](https://camo.githubusercontent.com/57a3df8eb2ae3bac71a6e15c35169cd7cb9ee78e7750ef34f25755c1d5c8e578/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f6369726f6d61747469612f6c61726176656c2d7465616d776f726b2e7376673f7374796c653d666c6174)

This package aims to implement the [Teamwork API](https://developer.teamwork.com) in a Service Provider for Laravel 5.

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

[](#installation)

Add the package through composer:

```
composer require "ciromattia/laravel-teamwork:~1.3"

```

Laravel Setup
-------------

[](#laravel-setup)

The Service Provider is auto-discoverable by Laravel 5.5+.

If you're using Laravel 5.4 or earlier, you have to manually add the following to your `config/app.php` file.

```
'providers' => [
    ...
    'Ciromattia\Teamwork\TeamworkServiceProvider',
],
```

and then add the facade to your `aliases` array

```
'aliases' => [
    ...
    'Teamwork' => 'Ciromattia\Teamwork\Facades\Teamwork',
],
```

### Configuration

[](#configuration)

Add a `teamwork` array to your `config/services.php` file

```
...
'teamwork' => [
    'key'  => 'YourSecretKey',
    'url'  => 'YourTeamworkUrl'
],
```

### Use

[](#use)

There are two ways to use this stuff: the first is by the Teamwork Facade, like this

```
Teamwork::people()->all();
```

If you want to use dependency injection to make your application easy to test, the Service Provider binds `Ciromattia\Teamwork\Factory`. Here is an example of how to use it with dependency injection

```
Route::get('/test', function(Ciromattia\Teamwork\Factory $teamwork) {
   $activity = $teamwork->activity()->latest();
});
```

#### Methods

[](#methods)

The methods available mimic the Teamwork entities in lowercase and query the namesake API, so you can retrieve e.g. a single project with:

```
Teamwork::project($project_id)->find();
```

Common methods available to all the entities are:

- `all()` - returns all the query results (i.e. all the entity objects).
- `find($id)` - returns a single object with the specified ID.
- `create($data)` - creates a single object with `$data` parameters.
- `update($data)` - updates a single object with `$data` parameters.
- `delete($id)` - deletes a single object with the specified ID.

The implemented entities at the moment are:

- [Comments](https://developer.teamwork.com/comments)
- [Company](https://developer.teamwork.com/companies)
- [Links](https://developer.teamwork.com/links)
- [Message](https://developer.teamwork.com/message)
- [Milestone](https://developer.teamwork.com/milestone)
- [People](https://developer.teamwork.com/people)
- [Project](https://developer.teamwork.com/projectsapi)
- [Task](https://developer.teamwork.com/todolistitems)
- [Tasklist](https://developer.teamwork.com/tasklists)
- [Time](https://developer.teamwork.com/timetracking)

The following special entities don't have the common methods specified above:

- [Account](https://developer.teamwork.com/account)
- [Activity](https://developer.teamwork.com/activity)

Configuration Without Laravel
-----------------------------

[](#configuration-without-laravel)

If you are not using Laravel you can instantiate the class like this

```
require "vendor/autoload.php";

use GuzzleHttp\Client as Guzzle;
use Ciromattia\Teamwork\Client;
use Ciromattia\Teamwork\Factory as Teamwork;

$client     = new Client(new Guzzle, 'YourSecretKey', 'YourTeamworkUrl');
$teamwork   = new Teamwork($client);
```

You are ready to go now!

---

Examples
--------

[](#examples)

Not all of the Teamwork API is supported yet but there is still a lot you can do! Below are some examples of how you can access Projects, Companies, and more. To work with a specific Object pass in the ID to perform actions on it. Data can be passed through for creating and editing.

**To see more examples [visit the docs](http://ciromattia.github.io/laravel-teamwork/)**

```
// create a project
$teamwork->project()->create([
    "name" => "My New Amazing Project",
    "description" => "This is a project that I will dedicate my whole life too",
    "companyId" => "999"
]);

// get the latest activity on a project
$teamwork->project($projectID)->activity();
```

Roadmap
-------

[](#roadmap)

#### 2.0 Release

[](#20-release)

- Add support for paging
- Add Support For `Comments`
- Add Support For `Permissions`
- Add Support For `Categories`
- Add Support For `People Status`
- Add Support For `Files`
- Add Support For `Notebooks`

Credits
-------

[](#credits)

This library is an evolution of the now abandoned [Teamwork 5 PM API Bridge](https://github.com/rossedman/teamwork) by Ross Edman.

###  Health Score

32

—

LowBetter than 72% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity17

Limited adoption so far

Community16

Small or concentrated contributor base

Maturity66

Established project with proven stability

 Bus Factor1

Top contributor holds 50% 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 ~82 days

Recently: every ~58 days

Total

14

Last Release

2939d ago

PHP version history (2 changes)v1.0.0PHP &gt;=5.4.0

v1.3PHP &gt;=7.1.0

### Community

Maintainers

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

---

Top Contributors

[![rossedman](https://avatars.githubusercontent.com/u/2628905?v=4)](https://github.com/rossedman "rossedman (35 commits)")[![Mat-Gr](https://avatars.githubusercontent.com/u/22744066?v=4)](https://github.com/Mat-Gr "Mat-Gr (12 commits)")[![ciromattia](https://avatars.githubusercontent.com/u/125366?v=4)](https://github.com/ciromattia "ciromattia (11 commits)")[![ashleyhindle](https://avatars.githubusercontent.com/u/454975?v=4)](https://github.com/ashleyhindle "ashleyhindle (4 commits)")[![bcash](https://avatars.githubusercontent.com/u/570976?v=4)](https://github.com/bcash "bcash (3 commits)")[![cmbirk](https://avatars.githubusercontent.com/u/764851?v=4)](https://github.com/cmbirk "cmbirk (2 commits)")[![slue](https://avatars.githubusercontent.com/u/5067774?v=4)](https://github.com/slue "slue (2 commits)")[![ortombina](https://avatars.githubusercontent.com/u/40199202?v=4)](https://github.com/ortombina "ortombina (1 commits)")

---

Tags

apilaravelproject managementteamwork

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/ciromattia-laravel-teamwork/health.svg)

```
[![Health](https://phpackages.com/badges/ciromattia-laravel-teamwork/health.svg)](https://phpackages.com/packages/ciromattia-laravel-teamwork)
```

###  Alternatives

[openai-php/laravel

OpenAI PHP for Laravel is a supercharged PHP API client that allows you to interact with the Open AI API

3.7k7.6M74](/packages/openai-php-laravel)[nickurt/laravel-postcodeapi

Universal PostcodeApi for Laravel 11.x/12.x/13.x

97221.2k](/packages/nickurt-laravel-postcodeapi)[smodav/mpesa

M-Pesa API implementation

16363.7k1](/packages/smodav-mpesa)[mozex/anthropic-laravel

Anthropic PHP for Laravel is a supercharged PHP API client that allows you to interact with the Anthropic API

71226.4k1](/packages/mozex-anthropic-laravel)[scriptdevelop/whatsapp-manager

Paquete para manejo de WhatsApp Business API en Laravel

762.6k](/packages/scriptdevelop-whatsapp-manager)[bushlanov-dev/max-bot-api-client-php

Max Bot API Client library

281.6k](/packages/bushlanov-dev-max-bot-api-client-php)

PHPackages © 2026

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