PHPackages                             artificertech/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. artificertech/laravel-hubspot

ActiveLibrary[API Development](/categories/api)

artificertech/laravel-hubspot
=============================

A laravel wrapper for the https://github.com/HubSpot/hubspot-api-php package

v1.3(1y ago)11.1k↓52.2%1[3 PRs](https://github.com/artificertech/laravel-hubspot/pulls)MITPHPPHP ^8.1CI passing

Since Sep 28Pushed 1y agoCompare

[ Source](https://github.com/artificertech/laravel-hubspot)[ Packagist](https://packagist.org/packages/artificertech/laravel-hubspot)[ Docs](https://github.com/artificertech/laravel-hubspot)[ RSS](/packages/artificertech-laravel-hubspot/feed)WikiDiscussions main Synced today

READMEChangelog (5)Dependencies (14)Versions (11)Used By (0)

Laravel HubSpot
===============

[](#laravel-hubspot)

[![Latest Version on Packagist](https://camo.githubusercontent.com/7b37ad5034bfbcadc9649ad69a2f41c6b0e5c2cd4547671afee8f668cda5a8de/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f617274696669636572746563682f6c61726176656c2d68756273706f742e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/artificertech/laravel-hubspot)[![GitHub Tests Action Status](https://camo.githubusercontent.com/6f3f63ae19bffcd79803ff1c754acb7c0929c3ba4f972526a068802edbea8932/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f776f726b666c6f772f7374617475732f617274696669636572746563682f6c61726176656c2d68756273706f742f72756e2d74657374733f6c6162656c3d7465737473)](https://github.com/artificertech/laravel-hubspot/actions?query=workflow%3Arun-tests+branch%3Amain)[![GitHub Code Style Action Status](https://camo.githubusercontent.com/0321c7d856e73ccf0f0bdfe097064e3392a4e56ca4e1370f4ac0b04bf8cdb360/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f776f726b666c6f772f7374617475732f617274696669636572746563682f6c61726176656c2d68756273706f742f466978253230504850253230636f64652532307374796c652532306973737565733f6c6162656c3d636f64652532307374796c65)](https://github.com/artificertech/laravel-hubspot/actions?query=workflow%3A%22Fix+PHP+code+style+issues%22+branch%3Amain)[![Total Downloads](https://camo.githubusercontent.com/66cffb46ae3c057ede95205aabdeb8b7ee0ca51c4ec391fd7ff6eb87d9b538af/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f617274696669636572746563682f6c61726176656c2d68756273706f742e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/artificertech/laravel-hubspot)

A laravel wrapper for the  package

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

[](#installation)

You can install the package via composer:

```
composer require artificertech/laravel-hubspot
```

You can publish the config file with:

```
php artisan vendor:publish --tag="laravel-hubspot-config"
```

This is the contents of the published config file:

```
return [

    /*
    |--------------------------------------------------------------------------
    | Default Hubspot Connection Name
    |--------------------------------------------------------------------------
    |
    | Here you may specify which of the hubspot connections below you wish
    | to use as your default connection for all HubSpot work. Of course
    | you may use many connections at once using the HubSpot library.
    |
    */

    'default' => env('HUBSPOT_CONNECTION', 'hubspot'),

    /*
    |--------------------------------------------------------------------------
    | HubSpot Connections
    |--------------------------------------------------------------------------
    |
    | Here are each of the HubSpot connections setup for your application.
    |
    */

    'connections' => [
        'hubspot' => [
            'token' => env('HUBSPOT_ACCESS_TOKEN'),
        ],
    ],

];
```

Usage
-----

[](#usage)

see [hubspot-api-php](https://github.com/HubSpot/hubspot-api-php) for usage

```
/** @var \HubSpot\Discovery\Discovery */
$hubspotDiscovery = \Artificertech\HubSpot\Facades\HubSpot::connection();
$hubspotDiscovery = \Artificertech\HubSpot\Facades\HubSpot::connection('hubspot');

/** @var \HubSpot\Discovery\Crm\Discovery */
$crm = $hubspotDiscovery->crm();

/** @var \HubSpot\Discovery\Crm\Discovery */
$crm = \Artificertech\HubSpot\Facades\HubSpot::crm();
```

you may check if a specific connection is enabled like so:

```
\Artificertech\HubSpot\Facades\HubSpot::connected();

\Artificertech\HubSpot\Facades\HubSpot::connected('hubspot');
```

This does not check if your access token is valid. It only checks that your access token is provided. This is useful for disabling connections locally

Testing
-------

[](#testing)

```
composer test
```

Changelog
---------

[](#changelog)

Please see [CHANGELOG](CHANGELOG.md) for more information on what has changed recently.

Contributing
------------

[](#contributing)

Please see [CONTRIBUTING](CONTRIBUTING.md) for details.

Security Vulnerabilities
------------------------

[](#security-vulnerabilities)

Please review [our security policy](../../security/policy) on how to report security vulnerabilities.

Credits
-------

[](#credits)

- [Cole Shirley](https://github.com/coleshirley)
- [All Contributors](../../contributors)

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

###  Health Score

36

—

LowBetter than 79% of packages

Maintenance41

Moderate activity, may be stable

Popularity20

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity62

Established project with proven stability

 Bus Factor1

Top contributor holds 51.9% 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

Every ~220 days

Total

5

Last Release

493d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/26300af7b89f84f6a6b6ef2ffb592a3e5663b3d8ed7d65a6699a86aab65ed411?d=identicon)[cole.shirley](/maintainers/cole.shirley)

---

Top Contributors

[![coleshirley](https://avatars.githubusercontent.com/u/84236864?v=4)](https://github.com/coleshirley "coleshirley (14 commits)")[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (8 commits)")[![github-actions[bot]](https://avatars.githubusercontent.com/in/15368?v=4)](https://github.com/github-actions[bot] "github-actions[bot] (5 commits)")

---

Tags

laravelhubspotartificertechlaravel-hubspot

###  Code Quality

TestsPest

Code StyleLaravel Pint

### Embed Badge

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

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

###  Alternatives

[dedoc/scramble

Automatic generation of API documentation for Laravel applications.

2.1k11.2M100](/packages/dedoc-scramble)[spatie/laravel-pdf

Create PDFs in Laravel apps

1.0k4.8M47](/packages/spatie-laravel-pdf)[defstudio/telegraph

A laravel facade to interact with Telegram Bots

816333.8k3](/packages/defstudio-telegraph)[rawilk/profile-filament-plugin

Profile &amp; MFA starter kit for filament.

3914.6k](/packages/rawilk-profile-filament-plugin)[simplestats-io/laravel-client

Server-side analytics for Laravel that follows the full funnel from visit to registration to payment, attributed to the channel that drove it. Revenue, MRR, churn and ad-spend profit (ROAS/CAC) per channel. GDPR compliant, ad-blocker proof.

5022.0k](/packages/simplestats-io-laravel-client)[lettermint/lettermint-laravel

Official Lettermint driver for Laravel

1190.2k1](/packages/lettermint-lettermint-laravel)

PHPackages © 2026

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