musheabdulhakim/gohighlevel-php

1.0.2 2024-08-25 03:38 UTC

This package is auto-updated.

Last update: 2024-09-25 04:05:07 UTC


README

GoHighLevel PHP

GitHub Workflow Status (master) Total Downloads Latest Version License

此包提供了一个出色的 PHP API 客户端,允许您与 GoHighLevel Api 交互

需要 Composer 需要 PHP 8.2+

首先,通过 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' => ''
    ]);

访问文档