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

ActiveLibrary

timtaelman/teamleader-php-sdk
=============================

Teamleader API v2 PHP SDK

1.2.7(7y ago)037MITPHPPHP ^7.1

Since Aug 21Pushed 7y agoCompare

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

READMEChangelog (2)Dependencies (2)Versions (18)Used By (0)

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: https://developer.teamleader.eu/. Please note that the Teamleader API v2 is not complete and some Entities and Actions are missing.

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

1. Company (create and update, getById)
2. Contact (create, update, linkToCompany, getById)
3. Deal (create and update)
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)
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)

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

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

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.

```
