musheabdulhakim/gohighlevel-php

1.0.3 2024-12-02 16:54 UTC

This package is auto-updated.

Last update: 2025-01-02 17:23:21 UTC


README

GoHighLevel PHP

GitHub Workflow Status (master) Total Downloads Latest Version License

This package provides a wonderful PHP API client that allows you to interact with GoHighLevel Api

Requires Composer Requires PHP 8.2+

First, install via Composer

composer require musheabdulhakim/gohighlevel-php

๐Ÿงน Keep a modern codebase with Pint:

composer lint

โœ… Run unit tests using PEST

composer test:unit

๐Ÿš€ Run the entire test suite:

composer test

Usage

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' => ''
    ]);

Visit The Documentation