worksection/pipedrive
最新稳定版本:1.0.0
Composer 安装命令:
composer require worksection/pipedrive
包简介
Worksection fork of Pipedrive REST client for PHP
README 文档
README
This is a custom fork of the official Pipedrive API wrapper-client for PHP-based apps, maintained by Worksection. It builds upon the original implementation provided by Pipedrive Inc and is adapted to fit our internal integration needs.
The library offers a convenient way to interact with the Pipedrive REST API using either OAuth2 or API tokens. It supports working with objects like Deals, Persons, Organizations, Activities, Products, and more.
🛠️ Please note:
While the core code remains mostly auto-generated via APIMATIC, this fork is distributed under the Composer package nameworksection/pipedrive, even though the internal namespace remainsPipedrivefor compatibility with existing code.
For more details about the Pipedrive API itself, visit developers.pipedrive.com.
Installation
You can install this package via Composer:
composer require worksection/pipedrive
API Documentation
Refer to the official Pipedrive REST API documentation:
👉 https://developers.pipedrive.com/v1
License
MIT License — same as the original pipedrive/pipedrive
© 2012–2020 Pipedrive, Inc.
Modified in 2025 by Worksection
Usage
With API Token
use Pipedrive\Client; $apiToken = 'YOUR_API_TOKEN'; $client = new Client(null, null, null, $apiToken); $response = $client->getUsers()->getCurrentUserData();
With OAuth2
use Pipedrive\Client; $client = new Client($clientId, $clientSecret, $redirectUri); // Store token Pipedrive\Configuration::$oAuthTokenUpdateCallback = function($token) { $_SESSION['access_token'] = $token; }; if (isset($_SESSION['access_token'])) { Pipedrive\Configuration::$oAuthToken = $_SESSION['access_token']; } $authUrl = $client->auth()->buildAuthorizationUrl();
Token refresh logic, error handling, and full examples (like authcallback.php and index.php) remain the same as in the original client.
Differences from the Original Pipedrive Client
- Distributed under the Composer package name
worksection/pipedrive - Intended for internal use by Worksection with full local control
- May include small patches or improvements over time
- Code structure, autoloading, and namespace remain identical to the original (
Pipedrive\*)
Contributing
This version is maintained for internal use by Worksection.
If you wish to contribute or reuse it, feel free to fork and adapt it to your own needs.
统计信息
- 总下载量: 2.63k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2025-04-07