{"id":40669520,"url":"https://github.com/gosuperscript/hubspot-notification-channel","last_synced_at":"2026-01-21T09:30:55.690Z","repository":{"id":42651728,"uuid":"202367535","full_name":"gosuperscript/hubspot-notification-channel","owner":"gosuperscript","description":null,"archived":false,"fork":false,"pushed_at":"2022-09-13T08:17:13.000Z","size":19,"stargazers_count":1,"open_issues_count":0,"forks_count":2,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-09-04T10:34:03.367Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/gosuperscript.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-08-14T14:30:38.000Z","updated_at":"2025-06-09T09:40:43.000Z","dependencies_parsed_at":"2022-09-14T16:02:13.741Z","dependency_job_id":null,"html_url":"https://github.com/gosuperscript/hubspot-notification-channel","commit_stats":null,"previous_names":[],"tags_count":9,"template":false,"template_full_name":null,"purl":"pkg:github/gosuperscript/hubspot-notification-channel","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gosuperscript%2Fhubspot-notification-channel","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gosuperscript%2Fhubspot-notification-channel/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gosuperscript%2Fhubspot-notification-channel/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gosuperscript%2Fhubspot-notification-channel/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/gosuperscript","download_url":"https://codeload.github.com/gosuperscript/hubspot-notification-channel/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gosuperscript%2Fhubspot-notification-channel/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28631102,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-21T04:47:28.174Z","status":"ssl_error","status_checked_at":"2026-01-21T04:47:22.943Z","response_time":86,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2026-01-21T09:30:50.603Z","updated_at":"2026-01-21T09:30:55.674Z","avatar_url":"https://github.com/gosuperscript.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Laravel Hubspot Notification Channel\n\nThis package makes it easy to send Hubspot (Single Send Email) notifications with Laravel.\n\n## Installation\n\nYou can install the package via composer:\n\n``` bash\ncomposer require digitalrisks/hubspot-notification-channel\n```\n\nAdd the service provider (only required on Laravel 5.4 or lower):\n\n```php\n// config/app.php\n'providers' =\u003e [\n    ...\n    DigitalRisks\\Notifications\\ServiceProvider::class,\n],\n```\n\n### Setting up your Hubspot account\n\nAdd your Hubspot key to your `config/services.php`:\n\n```php\n// config/services.php\n...\n'hubspot' =\u003e [\n    'app_access_token' =\u003e env('HUBSPOT_APP_ACCESS_TOKEN', null),\n    'template_id' =\u003e env('TEMPLATE_NAME_ID', null)\n],\n...\n```\n\n## Usage\n\nNow you can use the channel in your `via()` method inside the notification:\n\n``` php\n\u003c?php\n\nnamespace App\\Notifications;\n\nuse DigitalRisks\\Notifications\\Messages\\HubspotMessage;\nuse Illuminate\\Bus\\Queueable;\nuse Illuminate\\Notifications\\Notification;\n\nclass SomethingHappened extends Notification\n{\n    use Queueable;\n\n    /**\n     * Create a new notification instance.\n     *\n     * @return void\n     */\n    public function __construct()\n    {\n        //\n    }\n\n    /**\n     * Get the notification's delivery channels.\n     *\n     * @param  mixed  $notifiable\n     * @return array\n     */\n    public function via($notifiable)\n    {\n        return ['hubspot'];\n    }\n\n    /**\n     * Get the hubspot representation of the notification.\n     *\n     * @param  mixed  $notifiable\n     * @return \\DigitalRisks\\Notifications\\Messages\\HubspotMessage\n     */\n    public function toMail($notifiable)\n    {\n        return (new HubspotMessage)\n            -\u003etemplateId(config('services.hubspot.template_id'))\n            -\u003econtactProperties([])\n            -\u003ecustomProperties([]);\n    }\n}\n```\n\n## Setting up the to field.\n``` php\n\u003c?php\n\nnamespace App;\n\nuse Illuminate\\Notifications\\Notifiable;\nuse Illuminate\\Foundation\\Auth\\User as Authenticatable;\n\nclass User extends Authenticatable\n{\n    use Notifiable;\n    \n    /**\n     * Route notifications for the Hubspot channel.\n     *\n     * @param  \\Illuminate\\Notifications\\Notification  $notification\n     * @return string\n     */\n    public function routeNotificationForHubspot($notification)\n    {\n        return $this-\u003eemail;\n    }\n}\n```\n\n\n## Changelog\n\nPlease see [CHANGELOG](CHANGELOG.md) for more information what has changed recently.\n\n## Testing\n\n``` bash\n$ composer test\n```\n\n## Security\n\nIf you discover any security related issues, please email kani.robinson@digitalrisks.co.uk instead of using the issue tracker.\n\n## Credits\n\n- [Kani Robinson](https://github.com/kanirobinson)\n- [All Contributors](../../contributors)\n\n## License\n\nThe MIT License (MIT). Please see [License File](LICENSE.md) for more information.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgosuperscript%2Fhubspot-notification-channel","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgosuperscript%2Fhubspot-notification-channel","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgosuperscript%2Fhubspot-notification-channel/lists"}