https://github.com/gosuperscript/hubspot-notification-channel
https://github.com/gosuperscript/hubspot-notification-channel
Last synced: 5 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/gosuperscript/hubspot-notification-channel
- Owner: gosuperscript
- License: mit
- Created: 2019-08-14T14:30:38.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2022-09-13T08:17:13.000Z (almost 4 years ago)
- Last Synced: 2025-09-04T10:34:03.367Z (10 months ago)
- Language: PHP
- Size: 18.6 KB
- Stars: 1
- Watchers: 1
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE.md
Awesome Lists containing this project
README
# Laravel Hubspot Notification Channel
This package makes it easy to send Hubspot (Single Send Email) notifications with Laravel.
## Installation
You can install the package via composer:
``` bash
composer require digitalrisks/hubspot-notification-channel
```
Add the service provider (only required on Laravel 5.4 or lower):
```php
// config/app.php
'providers' => [
...
DigitalRisks\Notifications\ServiceProvider::class,
],
```
### Setting up your Hubspot account
Add your Hubspot key to your `config/services.php`:
```php
// config/services.php
...
'hubspot' => [
'app_access_token' => env('HUBSPOT_APP_ACCESS_TOKEN', null),
'template_id' => env('TEMPLATE_NAME_ID', null)
],
...
```
## Usage
Now you can use the channel in your `via()` method inside the notification:
``` php
templateId(config('services.hubspot.template_id'))
->contactProperties([])
->customProperties([]);
}
}
```
## Setting up the to field.
``` php
email;
}
}
```
## Changelog
Please see [CHANGELOG](CHANGELOG.md) for more information what has changed recently.
## Testing
``` bash
$ composer test
```
## Security
If you discover any security related issues, please email kani.robinson@digitalrisks.co.uk instead of using the issue tracker.
## Credits
- [Kani Robinson](https://github.com/kanirobinson)
- [All Contributors](../../contributors)
## License
The MIT License (MIT). Please see [License File](LICENSE.md) for more information.