PHP code example of nexuslifeline / laravel-hubspot

1. Go to this page and download the library: Download nexuslifeline/laravel-hubspot library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

nexuslifeline / laravel-hubspot example snippets


$contacts = HubSpot::contacts();

// Get 100 contacts
$contacts->get_all_contacts(array('count'=>100));

// Get a contact by email address
$contacts->get_contact_by_email('[email protected]');

$lists = HubSpot::lists();

// Get 20 lists
$lists->get_lists(array('count'=>20));

php artisan vendor:publish --provider="Fungku\HubSpot\HubSpotServiceProvider"