PHPackages                             digitalequation/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. [Admin Panels](/categories/admin)
4. /
5. digitalequation/teamwork

Abandoned → [digitalequation/teamwork](/?search=digitalequation%2Fteamwork)Library[Admin Panels](/categories/admin)

digitalequation/teamwork
========================

Laravel Teamwork Library (Desk, HelpDocs,Tickets)

1.3.0(4y ago)41.8kMITPHPPHP ^7.4CI failing

Since Apr 6Pushed 4y ago1 watchersCompare

[ Source](https://github.com/digitalequation/teamwork)[ Packagist](https://packagist.org/packages/digitalequation/teamwork)[ Docs](https://github.com/digitalequation/teamwork)[ RSS](/packages/digitalequation-teamwork/feed)WikiDiscussions master Synced 3d ago

READMEChangelog (10)Dependencies (5)Versions (18)Used By (0)

Teamwork PHP SDK - Laravel Framework
====================================

[](#teamwork-php-sdk---laravel-framework)

[![Latest Version on Packagist](https://camo.githubusercontent.com/3cb68efa449b39628b04ad4e6ffc5dc11fc005deed883877d89521507eac60ff/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6469676974616c6571756174696f6e2f7465616d776f726b2e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/digitalequation/teamwork)[![Build Status](https://camo.githubusercontent.com/c2ec80505d9313ca1460b1cabcc5bc7e6a68d2c922bc5d10ea257558fe3c8b69/68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f6469676974616c6571756174696f6e2f7465616d776f726b2f6d61737465722e7376673f7374796c653d666c61742d737175617265)](https://travis-ci.org/digitalequation/teamwork)[![StyleCI](https://camo.githubusercontent.com/c54b787ae366bc60c7661f6ddad8f7e9f72cb5396a05a0df3e25b4ed9b6a477b/68747470733a2f2f6769746875622e7374796c6563692e696f2f7265706f732f3137393834373031362f736869656c643f6272616e63683d6d6173746572)](https://github.styleci.io/repos/179847016)[![Quality Score](https://camo.githubusercontent.com/285e8c1d5ef0944d981b10e5bb53df6ba691e0fcfdff83faf0a741b4c9e8cd27/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f672f6469676974616c6571756174696f6e2f7465616d776f726b2e7376673f7374796c653d666c61742d737175617265)](https://scrutinizer-ci.com/g/digitalequation/teamwork)[![Total Downloads](https://camo.githubusercontent.com/1bb7ef709b300d31e6b8543ac32a5d65052ffefd884582e70a4ada2fbbe480e4/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6469676974616c6571756174696f6e2f7465616d776f726b2e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/digitalequation/teamwork)[![License](https://camo.githubusercontent.com/28d61f91856fefbcff82b32cc2d8e28f992d3a15f92f3a64e95a170952fdc64b/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f6469676974616c6571756174696f6e2f7465616d776f726b2e7376673f7374796c653d666c61742d737175617265)](https://github.com/digitalequation/teamwork/blob/master/LICENSE.md)

A PHP Laravel wrapper library for Teamwork Desk, Teamwork Help Docs and Teamwork Tickets API's.
This package was built for our internal projects and may not be the right one for you but you are free to use it if you like.

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

[](#installation)

You can install the package via composer:

```
composer require digitalequation/teamwork
```

Run the package install command:

```
php artisan teamwork:install
```

This will publish and register the TeamworkServiceProvider and will also generate a config file `config/teamwork.php`.

```
return [
    'desk' => [
        /*
        |--------------------------------------------------------------------------
        | Teamwork Desk Key
        |--------------------------------------------------------------------------
        |
        | The Teamwork Desk API Key can be generated at:
        | https://your-domain.teamwork.com/desk/#myprofile/apikeys
        |
        */
        'key' => env('TEAMWORK_DESK_KEY'),

        /*
        |--------------------------------------------------------------------------
        | Teamwork Desk Domain Name
        |--------------------------------------------------------------------------
        |
        | The domain is the site address you have set on the Teamwork account.
        | To find the domain name just login to http://teamwork.com.
        | Then you will see the browser URL changing to:
        | https://your-domain.teamwork.com/launchpad/welcome
        |
        */
        'domain' => env('TEAMWORK_DESK_DOMAIN'),
    ],
];
```

You can edit this file directly but we recommend to add your settings in the `.env` file.

If you edit the config file and want to restore the defaults run:

```
php artisan teamwork:publish
```

Add your Teamwork Desk API Key and Domain to the `.env` file:

```
TEAMWORK_DESK_KEY=--YOUR-TEAMWORK-DESK-KEY--
TEAMWORK_DESK_DOMAIN=--YOUR-TEAMWORK-DESK-DOMAIN--
```

Usage
-----

[](#usage)

Example using `facade`:

```
use Teamwork;

$response = Teamwork::desk()->me();
```

Example using `dependency injection`:

```
