Download the PHP package digitalequation/teamwork without Composer
On this page you can find all versions of the php package digitalequation/teamwork. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Informations about the package teamwork
Teamwork PHP SDK - Laravel Framework
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
You can install the package via composer:
Run the package install command:
This will publish and register the TeamworkServiceProvider and will also generate a config file config/teamwork.php
.
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:
Add your Teamwork Desk API Key and Domain to the .env
file:
Usage
Example using facade
:
Example using dependency injection
:
For all of the examples listed bellow we will use the Teamwork
facade.
Teamwork Desk
Get current user data:
Get all Teamwork Desk Inboxes:
Get an inbox by name:
Upload a file:
Example response for file upload:
TIP: Surround your Teamwork
calls in try-catch
blocks to capture any possible thrown exception.
Teamwork Tickets
Get ticket priorities:
Get a ticket by id:
Get a list of tickets for a customer/user:
Post/Send a ticket:
Reply to a ticket:
Teamwork Help Docs
Get Help Docs list of sites:
Get a Help Docs site by id:
Get all categories within a site:
Get articles within a category:
Get a list of site articles:
Get a single article:
Get multiple articles by id's:
Testing
This will also generate a coverage report that is accessible on the build
directory, coverage
and open the index.html
file to see the results.
Changelog
Please see CHANGELOG for more information what has changed recently.
Contributing
Please see CONTRIBUTING for details.
Security
If you discover any security related issues, please email [email protected] instead of using the issue tracker.
Credits
- Robert Cristian Chiribuc
- Marcel Mihai Bontaș
- All Contributors
License
The MIT License (MIT). Please see License File for more information.
All versions of teamwork with dependencies
guzzlehttp/guzzle Version ~6.0
illuminate/support Version 7.*
ext-json Version *