musheabdulhakim / gohighlevel-php
用于 gohighlevel api 的 php sdk
1.0.2
2024-08-25 03:38 UTC
Requires
- php: ^8.2.0
- php-http/discovery: ^1.19
- php-http/multipart-stream-builder: ^1.3
- psr/http-client: ^1.0
- psr/http-client-implementation: *
- psr/http-factory-implementation: *
- psr/http-message: ^2.0
Requires (Dev)
- guzzlehttp/guzzle: ^7.8
- guzzlehttp/psr7: ^2.6
- laravel/pint: ^1.13.7
- pestphp/pest: ^2.28.1
- pestphp/pest-plugin-arch: ^2.7
- pestphp/pest-plugin-type-coverage: ^2.8
- phpstan/phpstan: ^1.11
- rector/rector: ^1.1
- symfony/var-dumper: ^6.4.0|^7.0.0
This package is auto-updated.
Last update: 2024-09-25 04:05:07 UTC
README

此包提供了一个出色的 PHP API 客户端,允许您与 GoHighLevel Api 交互
首先,通过 Composer 安装
composer require musheabdulhakim/gohighlevel-php
🧹 使用 Pint 保持现代代码库
composer lint
✅ 使用 PEST 运行单元测试
composer test:unit
🚀 运行整个测试套件
composer test
用法
use \MusheAbdulHakim\GoHighLevel\GoHighLevel; //Initialize the client $client = GoHighLevel::client($access_token, '2021-07-28'); //Or $clientInit = GoHighLevel::init($access_token)->withVersion('2021-07-28'); // Get User by Location $user = $client->User()->byLocation($locationId) //Get locations by stripeId with companyId $data = $clientInit ->withHttpHeader('channel','OAUTH') ->withHttpHeader('source','INTEGRATION') ->make()->Saas()->get([ 'companyId' => '', 'subscriptionId' => '', 'customerId' => '' ]);