coderjerk/hubsnot

Hubspot API v3 Client

Fund package maintenance!
danieldevine

Installs: 55

Dependents: 0

Suggesters: 0

Security: 0

Stars: 1

Watchers: 1

Forks: 1

Open Issues: 0

pkg:composer/coderjerk/hubsnot

v0.2.1 2023-12-12 12:05 UTC

This package is auto-updated.

Last update: 2025-09-12 16:20:37 UTC


README

PHP client for the Hubspot API v3

Latest Packagist Version Total Downloads

A very simple client because their own one looks unfinished and isn't really usable.

Just solving my own use case for now, which is simply to grab a list of available forms, more to come. Don't use in production unless this is all you want to do too.

$credentials = [
    'hubspot_access_token' => $_ENV['HUBSPOT_ACCESS_TOKEN']
];

$hubsnot = new Hubsnot($credentials);

$params = [
    'limit' => 200,
];

$forms = $hubsnot->forms()->getForms($params);

foreach ($forms->results as $form) {
    echo nl2br($form->name . "\r\n");
    echo nl2br($form->id . "\r\n");
}