laravel-gtm/hubspot-sdk
Composer 安装命令:
composer require laravel-gtm/hubspot-sdk
包简介
Laravel-ready PHP API SDK boilerplate built with Saloon (template repository).
README 文档
README
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 |
|---|---|---|---|
getContact() |
GET | /crm/v3/objects/contacts/{contactId} |
unreleased |
listContacts() |
GET | /crm/v3/objects/contacts |
unreleased |
listContactProperties() |
GET | /crm/v3/properties/contact |
unreleased |
getDeal() |
GET | /crm/v3/objects/deals/{dealId} |
unreleased |
listDeals() |
GET | /crm/v3/objects/deals |
v0.0.1 |
listDealProperties() |
GET | /crm/v3/properties/deal |
v0.0.3 |
Installation
composer require laravel-gtm/hubspot-sdk
Configuration (Laravel)
Publish the config (before init the tag is hubspot-sdk-config; after init it becomes {your-package-slug}-config):
php artisan vendor:publish --tag=hubspot-sdk-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
use LaravelGtm\HubspotSdk\HubspotSdk; $sdk = app(HubspotSdk::class);
Standalone
use LaravelGtm\HubspotSdk\HubspotSdk; $sdk = HubspotSdk::make( baseUrl: 'claude', token: 'your-token', );
Development
composer test # Pest composer analyse # PHPStan composer lint # Pint (check) composer format # Pint (fix)
License
MIT. See LICENSE.
统计信息
- 总下载量: 272
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2026-04-08