PHPackages                             janhenkes/teamleader-php-sdk - 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. janhenkes/teamleader-php-sdk

ActiveLibrary[API Development](/categories/api)

janhenkes/teamleader-php-sdk
============================

Teamleader API v2 PHP SDK

2.9.8(2y ago)1812.1k↓40.3%25[3 issues](https://github.com/janhenkes/teamleader-php-sdk/issues)1MITPHPPHP ^8.0CI failing

Since Aug 21Pushed 1y ago6 watchersCompare

[ Source](https://github.com/janhenkes/teamleader-php-sdk)[ Packagist](https://packagist.org/packages/janhenkes/teamleader-php-sdk)[ Docs](https://github.com/janhenkes/teamleader-php-sdk)[ RSS](/packages/janhenkes-teamleader-php-sdk/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (2)Versions (35)Used By (1)

Teamleader API v2 PHP SDK
=========================

[](#teamleader-api-v2-php-sdk)

This is a PHP wrapper for the Teamleader API v2. Documentation of the API can be found here: . Please note that the Teamleader API v2 is not complete and some Entities and Actions are missing.

Currently we support these entities and per entity only a few actions:

1. Company (create and update, getById)
2. Contact (create, update, linkToCompany, getById)
3. Deal (create, update, move, get, getById)
4. Deal phases (get)
5. Deal sources (get)
6. Activity types (get)
7. Event (create, update, delete, get, getById)
8. Business types (get)
9. Tags (get)
10. Invoice (get, book, registerPayment, download, file)
11. Credit notes (get)
12. Payment terms (get)
13. Tax rates (get)
14. Withholding tax rates (get)
15. Departments (get)
16. User (me, get, getById)
17. Webhook (get, register)
18. Projects (get, getById)
19. Tasks (get, getById)
20. Milestones (get, getById)
21. TimeTracking (get, getById)
22. Worktypes (get)
23. Productcategories (get)
24. Products (create, get, getById)
25. Custom fields (get)
26. Quotations (get, getById, download, file)

Teamleader API v2 works with OAuth2. This means your application needs to be registered on the [Teamleader Marketplace](https://marketplace.focus.teamleader.eu/nl/nl/ontwikkel/integraties) (you can keep them private though).

Please contact me at  if you have any feedback or questions.

Support us
==========

[](#support-us)

You can support us by [making a donation](https://bunq.me/JannesMannes).

We appreciate you sending us a postcard from your hometown. You'll find our address on our [contact page](https://jannesmannes.nl/contact/) (inspired by [@spatie](https://github.com/spatie)).

Examples
========

[](#examples)

See all examples in the examples directory.

Request an access token
-----------------------

[](#request-an-access-token)

You need to do this once, after you get an access token you can use the refresh token to obtain a new access token after it expires.

```
