Download the PHP package laravel-gtm/hubspot-sdk without Composer
On this page you can find all versions of the php package laravel-gtm/hubspot-sdk. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download laravel-gtm/hubspot-sdk
More information about laravel-gtm/hubspot-sdk
Files in laravel-gtm/hubspot-sdk
Package hubspot-sdk
Short Description Laravel-ready PHP API SDK boilerplate built with Saloon (template repository).
License MIT
Informations about the package hubspot-sdk
HubSpot SDK
A Laravel-ready PHP SDK for the HubSpot CRM API, built with Saloon v4. Includes token auth, rate limiting, and typed response DTOs.
Requirements
- PHP
^8.4 - Laravel
^11.0 || ^12.0 || ^13.0(for the optional Laravel integration)
Supported Endpoints
| SDK Method | HTTP | API Endpoint | Since |
|---|---|---|---|
updateDeal() |
PATCH | /crm/v3/objects/deals/{dealId} |
v0.0.18 |
searchObjects() |
POST | /crm/v3/objects/{objectTypeId}/search |
v0.0.16 |
listObjectProperties() |
GET | /crm/v3/properties/{objectTypeId} |
v0.0.16 |
batchReadObjects() |
POST | /crm/v3/objects/{objectTypeId}/batch/read |
v0.0.16 |
batchReadAssociations() |
POST | /crm/v4/associations/{fromType}/{toType}/batch/read |
v0.0.16 |
createContact() |
POST | /crm/v3/objects/contacts |
v0.0.13 |
createCompany() |
POST | /crm/v3/objects/companies |
v0.0.13 |
updateCompany() |
PATCH | /crm/v3/objects/companies/{companyId} |
v0.0.13 |
associateContactWithCompany() |
PUT | /crm/v4/objects/contacts/{contactId}/associations/default/companies/{companyId} |
v0.0.14 |
getContactCompanyAssociations() |
GET | /crm/v4/objects/contacts/{contactId}/associations/companies |
v0.0.15 |
setPrimaryCompanyAssociation() |
PUT | /crm/v4/objects/contacts/{contactId}/associations/companies/{companyId} |
v0.0.15 |
demotePrimaryCompanyAssociation() |
POST | /crm/v4/associations/contacts/companies/batch/labels/archive |
v0.0.15 |
getContact() |
GET | /crm/v3/objects/contacts/{contactId} |
v0.0.6 |
listContacts() |
GET | /crm/v3/objects/contacts |
v0.0.6 |
listContactProperties() |
GET | /crm/v3/properties/contact |
v0.0.6 |
updateContact() |
PATCH | /crm/v3/objects/contacts/{contactId} |
v0.0.11 |
getCompany() |
GET | /crm/v3/objects/companies/{companyId} |
v0.0.9 |
getCompanyContactAssociations() |
GET | /crm/v3/objects/companies/{companyId}/associations/contacts |
v0.0.7 |
searchCompanies() |
POST | /crm/v3/objects/companies/search |
v0.0.7 |
searchContacts() |
POST | /crm/v3/objects/contacts/search |
v0.0.9 |
searchDeals() |
POST | /crm/v3/objects/deals/search |
v0.0.9 |
getDeal() |
GET | /crm/v3/objects/deals/{dealId} |
v0.0.5 |
listDeals() |
GET | /crm/v3/objects/deals |
v0.0.1 |
listDealProperties() |
GET | /crm/v3/properties/deal |
v0.0.3 |
getOwner() |
GET | /crm/v3/owners/{ownerId} |
v0.0.7 |
listOwners() |
GET | /crm/v3/owners |
v0.0.7 |
listSequences() |
GET | /automation/sequences/2026-03 |
v0.0.10 |
getSequence() |
GET | /automation/sequences/2026-03/{sequenceId} |
v0.0.10 |
enrollContactInSequence() |
POST | /automation/sequences/2026-03/enrollments |
v0.0.10 |
Installation
Configuration (Laravel)
Publish the config (before init the tag is hubspot-sdk-config; after init it becomes {your-package-slug}-config):
After running the init script, use your package slug in the tag (e.g. hubspot-sdk-config). Env keys use your chosen ENV_PREFIX (defaults before init use HUBSPOT_*):
HUBSPOT_BASE_URLHUBSPOT_TOKENHUBSPOT_AUTH_HEADER
Usage
Via the service container
Standalone
Alerting on expired tokens
Register a callback invoked whenever a request fails with a 401 Unauthorized response, before the exception propagates. Useful for alerting on expired or revoked OAuth tokens.
Development
License
MIT. See LICENSE.
All versions of hubspot-sdk with dependencies
illuminate/support Version ^11.0 || ^12.0 || ^13.0
saloonphp/saloon Version ^4.5.2
saloonphp/laravel-plugin Version ^4.3 || ^5.0.1
saloonphp/rate-limit-plugin Version ^2.5.3