PHP code example of fungku / laravel-hubspot

1. Go to this page and download the library: Download fungku/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/ */

    

fungku / 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));