inspirapuntodo/hubspot-for-laravel
最新稳定版本:0.1.1
Composer 安装命令:
composer require inspirapuntodo/hubspot-for-laravel
包简介
Hubspot for Laravel allows you to interact with the official hubspot PHP Api Client
README 文档
README
Hubspot for Laravel
Hubspot for Laravel is wrapper for the Hubspot CRM API allowing you to access the library in a convenient way through a facade. For a complete list of allowed methods visit the following repository HubSpot/hubspot-php.
Installation
Here's how you track your website with Hubspot for Laravel:
Requires PHP 8.1+
First, install Hubspot for Laravel via the Composer package manager:
composer require inspirapuntodo/hubspot-for-laravel
Next, publish the configuration file:
php artisan vendor:publish --provider="InspiraPuntoDo\Hubspot\ServiceProvider"
This will create a config/hubspot.php configuration file in your project, which you can modify to your needs
using environment variables:
HUBSPOT_ACCESS_TOKEN=... HUBSPOT_USE_OAUTH2=true
Now you will be able to use de Hubspot facade:
use InspiraPuntoDo\Hubspot\Facades\Hubspot; $contact = Hubspot::contacts()->getByEmail("email@example.com"); echo $contact->properties->email->value;
Usage
For usage examples, take a look at the HubSpot/hubspot-php repository.
Contributing
- Fork it!
- Create your feature branch:
git checkout -b my-new-feature - Commit your changes:
git commit -am 'Add some feature' - Push to the branch:
git push origin my-new-feature - Submit a pull request :D
Contributors
Cesar Mendez (@Activ3mined)
Hubspot for Laravel is an open-sourced software licensed under the MIT license.
统计信息
- 总下载量: 2.13k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 1
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2023-05-30