LaravelPackages.net
Acme Inc.
Toggle sidebar
nirbhay94/laravel-hubspot

This will create contact in hubspot and list contacts

215
3
About nirbhay94/laravel-hubspot

nirbhay94/laravel-hubspot is a Laravel package for this will create contact in hubspot and list contacts. It currently has 3 GitHub stars and 215 downloads on Packagist. Install it with composer require nirbhay94/laravel-hubspot. Discover more Laravel packages by nirbhay94 or browse all Laravel packages to compare alternatives.

Last updated

This will create contact in hubspot and get all contacts from hubspot for Laravel 5

Installation

1.composer require nirbhay94/laravel-hubspot:dev-master

2.Get a HubSpot API Key from the Intergrations page of your HubSpot account.

3.Add your HubSpot API key into the your .env file: HAPI_KEY=yourApiKey

4.Add Nirbhay\Hubspot\HubspotServiceProvider::class to your providers in your config/app.php file.

5.Add 'HubSpot' => Nirbhay\Hubspot\Facades\Hubspot::class to your aliases in your config/app.php file.

6.php artisan vendor:publish --provider="Nirbhay\Hubspot\HubspotServiceProvider" will create a config/hubspot.php file.

Usage

You can use the facade as a dependency:

Facade

//Echo all contacts 
$response = HubSpot::contacts();
//Create a contact 
$response = HubSpot::createContact($request->only(['firstname', 'lastname', 'email','phone','website','company','address','city','state','zip']));
Comments