PHPackages                             zanysoft/laravel-hubspot - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [API Development](/categories/api)
4. /
5. zanysoft/laravel-hubspot

ActiveLibrary[API Development](/categories/api)

zanysoft/laravel-hubspot
========================

Adds a Laravel specific wrapper for the Hubspot API V1 client package

1.0.0(4y ago)0337MITPHPPHP ^7.0 || ^8

Since Nov 22Pushed 4y ago1 watchersCompare

[ Source](https://github.com/zanysoft/laravel-hubspot)[ Packagist](https://packagist.org/packages/zanysoft/laravel-hubspot)[ RSS](/packages/zanysoft-laravel-hubspot/feed)WikiDiscussions main Synced 3d ago

READMEChangelog (1)Dependencies (4)Versions (2)Used By (0)

HubSpot PHP API Client Wrapper for Laravel
==========================================

[](#hubspot-php-api-client-wrapper-for-laravel)

[![Latest Stable Version](https://camo.githubusercontent.com/06d3cec61dd3e8d97930ca7733771498f029ed1bd429f40ec1ef3d101ef22977/68747470733a2f2f706f7365722e707567782e6f72672f7a616e79736f66742f6c61726176656c2d68756273706f742f762f737461626c65)](https://packagist.org/packages/zanysoft/laravel-hubspot) [![Total Downloads](https://camo.githubusercontent.com/57438186016b68726b008e5766e0b3ce3edf3c7a42603441c30715bc0e41f3d0/68747470733a2f2f706f7365722e707567782e6f72672f7a616e79736f66742f6c61726176656c2d68756273706f742f646f776e6c6f616473)](https://packagist.org/packages/zanysoft/laravel-hubspot)

This is a wrapper for the [hubspot/hubspot-php](https://github.com/HubSpot/hubspot-php) package and gives the user a Service Container binding and facade of the `SevenShores\Hubspot\Factory::create('api-key')` function.

Installation
------------

[](#installation)

From the command line run

```
composer require zanysoft/laravel-hubspot
```

Configuration
-------------

[](#configuration)

Run this on the command line for publishing a configuration file to `config/meta-tags.php`.

```
php artisan vendor:publish --provider="ZanySoft\LaravelHubSpot\HubSpotServiceProvider" --tag="config"

```

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

Add your HubSpot API key into the your `.env` file: `HUBSPOT_API_KEY=yourApiKey`

Usage
-----

[](#usage)

You can use either the facade or inject the HubSpot class as a dependency:

### Facade

[](#facade)

```
// Echo all contacts first and last names
$response = HubSpot::contacts()->all();
    foreach ($response->contacts as $contact) {
        echo sprintf(
            "Contact name is %s %s." . PHP_EOL,
            $contact->properties->firstname->value,
            $contact->properties->lastname->value
        );
    }

// OR

$factory = HubSpot::factory();
$response = $factory->contacts()->all();
    foreach ($response->contacts as $contact) {
        echo sprintf(
            "Contact name is %s %s." . PHP_EOL,
            $contact->properties->firstname->value,
            $contact->properties->lastname->value
        );
    }
```

### Dependency Injection

[](#dependency-injection)

```
Route::get('/', function (ZanySoft\LaravelHubSpot\HubSpot $hubspot) {
    $response = $hubspot->contacts()->all();
    foreach ($response->contacts as $contact) {
        echo sprintf(
            "Contact name is %s %s." . PHP_EOL,
            $contact->properties->firstname->value,
            $contact->properties->lastname->value
        );
    }
});
```

For more info on using the actual API see the main repo [hubspot/hubspot-php](https://github.com/HubSpot/hubspot-php)

Issues
------

[](#issues)

Please only report issues relating to the Laravel side of things here, main API issues should be reported [here](https://github.com/ryanwinchester/hubspot-php/issues)

###  Health Score

23

—

LowBetter than 27% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity12

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity45

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

1633d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/77060551?v=4)[Mubashar Ahmad (مبشر احمد)](/maintainers/mubasharahmad)[@MubasharAhmad](https://github.com/MubasharAhmad)

---

Top Contributors

[![zanysoft](https://avatars.githubusercontent.com/u/2682072?v=4)](https://github.com/zanysoft "zanysoft (1 commits)")

---

Tags

apilaravelhubspotservice

###  Code Quality

Code StylePHP CS Fixer

### Embed Badge

![Health badge](/badges/zanysoft-laravel-hubspot/health.svg)

```
[![Health](https://phpackages.com/badges/zanysoft-laravel-hubspot/health.svg)](https://phpackages.com/packages/zanysoft-laravel-hubspot)
```

###  Alternatives

[mollie/laravel-mollie

Mollie API client wrapper for Laravel &amp; Mollie Connect provider for Laravel Socialite

3624.1M28](/packages/mollie-laravel-mollie)[rossjcooper/laravel-hubspot

Adds a Laravel specific wrapper for the Hubspot client package

65696.6k](/packages/rossjcooper-laravel-hubspot)[specialtactics/l5-api

Dependencies for the Laravel API Boilerplate package

3672.8k2](/packages/specialtactics-l5-api)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
