Download the PHP package musheabdulhakim/gohighlevel-php without Composer
On this page you can find all versions of the php package musheabdulhakim/gohighlevel-php. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download musheabdulhakim/gohighlevel-php
More information about musheabdulhakim/gohighlevel-php
Files in musheabdulhakim/gohighlevel-php
Package gohighlevel-php
Short Description php sdk for gohighlevel api
License MIT
Informations about the package gohighlevel-php
GoHighLevel PHP SDK
This package provides a wonderful PHP API client that allows you to interact with GoHighLevel Api. It's built to simplify your interactions with the platform. This SDK provides a robust, type-safe, and easy-to-use interface for all major API endpoints, from managing businesses and contacts to handling payments and workflows.
Features ✨
- 100% PSR-compatible: The SDK adheres to PSR standards, including PSR-18 for HTTP clients, making it compatible with any modern PHP framework.
- Type-Safe & Predictable: Written in PHP 8.1 with
strict_types, the code is reliable and predictable. - Powerful Factory: The
Factoryclass gives you full control over the client's configuration, allowing you to set custom headers, API versions, and HTTP clients. - Comprehensive Resource Coverage: Access all major GoHighLevel API resources through dedicated, logical methods (e.g.,
->contacts(),->businesses(),->workflows()).
Installation
You can install the SDK via Composer.
Quick Start
The easiest way to get started is to use the GoHighLevel::client() method. It handles the client configuration for you.
Advanced Usage with the Factory
For more control over the client's configuration, use the GoHighLevel::factory() method. This is useful for setting a specific API version, a custom base URI, or integrating with a specific HTTP client like Guzzle.
API Resources
The SDK provides a simple, object-oriented interface for accessing different GoHighLevel resources. Each resource is accessed via a dedicated method on the Client object.
| Method | Resource Class | Description |
|---|---|---|
->businesses() |
MusheAbdulHakim\GoHighLevel\Resources\Business |
Manage businesses. |
->calendars() |
MusheAbdulHakim\GoHighLevel\Resources\Calendars\Calendar |
Manage calendars and events. |
->campaigns() |
MusheAbdulHakim\GoHighLevel\Resources\Campaigns\Campaign |
Manage campaigns and marketing automation. |
->companies() |
MusheAbdulHakim\GoHighLevel\Resources\Company |
Manage companies. |
->contacts() |
MusheAbdulHakim\GoHighLevel\Resources\Contacts\Contact |
Manage and retrieve contact information. |
->conversations() |
MusheAbdulHakim\GoHighLevel\Resources\Conversations\Conversation |
Access and manage conversations. |
->courses() |
MusheAbdulHakim\GoHighLevel\Resources\Courses\Course |
Manage courses. |
->forms() |
MusheAbdulHakim\GoHighLevel\Resources\Forms\Form |
Work with forms. |
->invoices() |
MusheAbdulHakim\GoHighLevel\Resources\Invoices\Invoice |
Manage and create invoices. |
->triggerLinks() |
MusheAbdulHakim\GoHighLevel\Resources\TriggerLinks\TriggerLink |
Work with trigger links. |
->location() |
MusheAbdulHakim\GoHighLevel\Resources\Locations\Location |
Manage locations. |
->mediaLibrary() |
MusheAbdulHakim\GoHighLevel\Resources\MediaLibrary\MediaLibrary |
Manage media assets. |
->funnel() |
MusheAbdulHakim\GoHighLevel\Resources\Funnels\Funnel |
Manage sales funnels. |
->opportunity() |
MusheAbdulHakim\GoHighLevel\Resources\Opportunities\Opportunity |
Manage sales opportunities. |
->payments() |
MusheAbdulHakim\GoHighLevel\Resources\Payments\Payment |
Manage payments. |
->products() |
MusheAbdulHakim\GoHighLevel\Resources\Products\Product |
Manage products. |
->saas() |
MusheAbdulHakim\GoHighLevel\Resources\SaaS\Saas |
Manage SaaS-related functionality. |
->snapshot() |
MusheAbdulHakim\GoHighLevel\Resources\Snapshots\Snapshot |
Work with account snapshots. |
->survey() |
MusheAbdulHakim\GoHighLevel\Resources\Surveys\Survey |
Manage surveys. |
->user() |
MusheAbdulHakim\GoHighLevel\Resources\Users\User |
Manage users. |
->workflow() |
MusheAbdulHakim\GoHighLevel\Resources\Workflows\Workflow |
Work with workflows. |
->oAuth() |
MusheAbdulHakim\GoHighLevel\Resources\Auth\OAuth |
Handle OAuth 2.0 authentication. |
OAuth 2.0 Integration
The SDK includes a helper method to simplify the OAuth 2.0 authentication flow, which is necessary for certain API scopes.
Getting an Access Token
You can use the static getAccessToken method to exchange an authorization code for an access token.
Visit The Documentation
Contribution Guide
Thank you for considering contributing to the GoHighLevel PHP SDK! We welcome all contributions, from bug fixes and new feature implementations to documentation improvements. By following these guidelines, you can help us maintain code quality and a smooth development process.
Getting Started
1. Fork the Repository
First, fork the musheabdulhakim/gohighlevel-php repository on GitHub and clone your fork to your local machine.
2. Install Dependencies
Development Workflow
1. Create a New Branch
Before you start working, create a new branch for your feature or bug fix. Use a descriptive name that reflects your changes.
2. Write Your Code
Follow the existing coding style and project structure. The SDK uses strict_types=1 and is built on a PSR-18 compliant HTTP client system.
When adding a new feature or fixing a bug, remember to write unit tests. All new code must be covered by tests to ensure it works as expected and prevents regressions. Your tests should be written using PestPHP.
3. Run the Test Suite
Before committing your changes, you must ensure that all tests pass and the code meets the project's quality standards. You can run the entire test suite with a single command:
This command executes all quality checks in a specific order:
@test:lint: Checks for and automatically fixes coding style issues using PHP-CS-Fixer.@test:refacto: Runs Rector to find potential code improvements.@test:types: Performs static analysis with PHPStan to catch type-related errors.@test:unit: Executes all unit tests with PestPHP.
4. Fix Linting and Style Errors
The project uses php-cs-fixer to enforce a consistent coding style. You can automatically fix most issues by running:
To see what changes would be made without applying them, use the dry run command:
5. Submit a Pull Request
Once your code is complete, tested, and all checks pass, commit your changes and push your branch to your forked repository.
Finally, open a pull request from your branch to the master branch of the original repository. Provide a clear and concise description of your changes, and reference any relevant issues.
Thank you again for your contribution! We will review your pull request as soon as possible.
All versions of gohighlevel-php with dependencies
php-http/discovery Version ^1.20
php-http/multipart-stream-builder Version ^1.4
psr/http-client Version ^1.0
psr/http-client-implementation Version *
psr/http-factory-implementation Version *
psr/http-message Version ^2.0