PHPackages                             kientran/aws-pinpoint-laravel-notification-channel-fork-support-laravel-9 - 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. kientran/aws-pinpoint-laravel-notification-channel-fork-support-laravel-9

ActiveLibrary

kientran/aws-pinpoint-laravel-notification-channel-fork-support-laravel-9
=========================================================================

Send notifications using AWS Pinpoint

10PHP

Since Jan 5Pushed 3y agoCompare

[ Source](https://github.com/Sotatek-KienTran/aws-pinpoint-laravel-notification-channel)[ Packagist](https://packagist.org/packages/kientran/aws-pinpoint-laravel-notification-channel-fork-support-laravel-9)[ RSS](/packages/kientran-aws-pinpoint-laravel-notification-channel-fork-support-laravel-9/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

AWS Pinpoint Laravel Notification Channel
=========================================

[](#aws-pinpoint-laravel-notification-channel)

[![Latest Version on Packagist](https://camo.githubusercontent.com/a24d55274368c04f946c2420aa74e943367191e2ebfdb62f5b43467973528608/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6b69656c61626f6b6b69652f6177732d70696e706f696e742d6c61726176656c2d6e6f74696669636174696f6e2d6368616e6e656c2e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/kielabokkie/aws-pinpoint-laravel-notification-channel)[![Software License](https://camo.githubusercontent.com/55c0218c8f8009f06ad4ddae837ddd05301481fcf0dff8e0ed9dadda8780713e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265)](LICENSE.md)[![Build Status](https://camo.githubusercontent.com/324e408b0a99e065f8e34679cb9fb6bef7e798a53e3f035f731086466f64bc20/68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f6b69656c61626f6b6b69652f6177732d70696e706f696e742d6c61726176656c2d6e6f74696669636174696f6e2d6368616e6e656c2f6d61737465722e7376673f7374796c653d666c61742d737175617265)](https://travis-ci.org/kielabokkie/aws-pinpoint-laravel-notification-channel)[![StyleCI](https://camo.githubusercontent.com/0bcc21a9f3f2f68e5fa6a88c04b16165fa87e1dbe6fbfb1d97cdf8d51a090a6f/68747470733a2f2f7374796c6563692e696f2f7265706f732f3230393638363130332f736869656c64)](https://styleci.io/repos/209686103)[![Quality Score](https://camo.githubusercontent.com/8b50243b48e2fa19b01ce3514ade646765fa605b20a7aec1cf252954883982d2/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f672f6b69656c61626f6b6b69652f6177732d70696e706f696e742d6c61726176656c2d6e6f74696669636174696f6e2d6368616e6e656c2e7376673f7374796c653d666c61742d737175617265)](https://scrutinizer-ci.com/g/kielabokkie/aws-pinpoint-laravel-notification-channel)[![Code Coverage](https://camo.githubusercontent.com/5bc332df3740b5c15a0a4bef3b8db4548c0c26de474e66ef9adf775038b917b8/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f636f7665726167652f672f6b69656c61626f6b6b69652f6177732d70696e706f696e742d6c61726176656c2d6e6f74696669636174696f6e2d6368616e6e656c2f6d61737465722e7376673f7374796c653d666c61742d737175617265)](https://scrutinizer-ci.com/g/kielabokkie/aws-pinpoint-laravel-notification-channel/?branch=master)[![Total Downloads](https://camo.githubusercontent.com/3cf94cc5b7c660a8903324a5bc374d7f9dd097af834f801b5da086f2082616b2/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6b69656c61626f6b6b69652f6177732d70696e706f696e742d6c61726176656c2d6e6f74696669636174696f6e2d6368616e6e656c2e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/kielabokkie/aws-pinpoint-laravel-notification-channel)

This package makes it easy to send notifications using [AwsPinpoint](https://aws.amazon.com/pinpoint/) with Laravel 5.5+ and 6.0.

**Note: Currently only SMS is supported. Other message types like voice and email are on the roadmap. Please get in touch if you would like to help out with this.**

Send SMS using AWS Pinpoint the easy way.

Contents
--------

[](#contents)

- [Installation](#installation)
    - [Setting up the AwsPinpoint service](#setting-up-the-AwsPinpoint-service)
- [Usage](#usage)
    - [Available Message methods](#available-message-methods)
- [Changelog](#changelog)
- [Testing](#testing)
- [Security](#security)
- [Contributing](#contributing)
- [Credits](#credits)
- [License](#license)

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

[](#installation)

You can install the package via composer by running the command below

```
composer require kielabokkie/aws-pinpoint-laravel-notification-channel

```

### Setting up the AwsPinpoint service

[](#setting-up-the-awspinpoint-service)

This package uses the [AWS Service Provider for Laravel](https://github.com/aws/aws-sdk-php-laravel) package. You'll need to add specific configuration for AWS Pinpoint to your `config/aws.php` file. See the example below:

```
...
'Pinpoint' => [
    'region' => env('AWS_PINPOINT_REGION'),
    'application_id' => env('AWS_PINPOINT_APPLICATION_ID'),
    'sender_id' => env('AWS_PINPOINT_SENDER_ID'),
    'key' => env('AWS_PINPOINT_KEY'),
    'secret' => env('AWS_PINPOINT_SECRET'),
],
...

```

And then add the following entries in your `.env` file:

```
...
AWS_PINPOINT_REGION=
AWS_PINPOINT_APPLICATION_ID=
AWS_PINPOINT_SENDER_ID=
AWS_PINPOINT_KEY=
AWS_PINPOINT_SECRET=
...

```

Usage
-----

[](#usage)

Once everything is setup you can send a notification as follows:

```
