fungku/laravel-hubspot
| Install | |
|---|---|
composer require fungku/laravel-hubspot |
|
| Latest Version: | v1.1.1 |
| License: | Apache-2.0 |
| Last Updated: | Jul 14, 2016 |
| Links: | GitHub · Packagist |
Easy to use HubSpot API in Laravel 4
PHP HubSpot API package for Laravel 4
Most of the hard-working code is modified classes from HubSpot/haPiHP.
Setup
In composer.json:
"require": {
"fungku/laravel-hubspot": "1.1.*"
}
then run composer install or composer update
Open app/config/app.php and add this to the providers array:
'Fungku\HubSpot\HubSpotServiceProvider',
TO SET YOUR API KEY:
Run the following command: $ php artisan config:publish fungku/laravel-hubspot
This will generate a config file to: app/config/packages/fungku/laravel-hubspot/api.php
You can then update this file with your api key from HubSpot and set the user agent.
You could also set an environment variable called, HUBSPOT_APIKEY
Examples
Contacts:
$contacts = HubSpot::contacts();
// Get 100 contacts
$contacts->get_all_contacts(array('count'=>100));
// Get a contact by email address
$contacts->get_contact_by_email('example@somedomain.com');
Lists
$lists = HubSpot::lists();
// Get 20 lists
$lists->get_lists(array('count'=>20));
Related Packages
Powerful PHP database abstraction layer (DBAL) with many features for database s...
Laravel Serializable Closure provides an easy and secure way to serialize closur...
Cli error handling for console/command-line PHP applications.
Version History
| Version | Released | PHP | Laravel | License |
|---|---|---|---|---|
| v1.1.1 | Apache-2.0 | |||
| v1.1.0 | Apache-2.0 | |||
| v1.0.5 | Apache-2.0 | |||
| v1.0.4 | Apache-2.0 | |||
| v1.0.3 | >=5.3.0 | 4.2.* | Apache-2.0 | |
| v1.0.2 | >=5.3.0 | 4.1.* | Apache-2.0 | |
| v1.0.1 | >=5.3.0 | 4.1.* | Apache-2.0 | |
| v0.9.2 | >=5.3.0 | 4.1.* | Apache-2.0 | |
| v0.9.1 | >=5.3.0 | 4.1.* | Apache-2.0 | |
| v0.9 | >=5.3.0 | 4.1.* | Apache-2.0 |
