nextgen-solution / pigeon
Installs: 83
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 2
Forks: 0
Open Issues: 0
pkg:composer/nextgen-solution/pigeon
Requires
- guzzlehttp/guzzle: ^6.3
This package is auto-updated.
Last update: 2020-04-06 11:35:16 UTC
README
Installation
- Install via composer
composer require nextgen-solution/pigeon - Publish configuration
php artisan vendor:publish - Update your env
PIGEON_HOST= PIGEON_KEY= - Enjoy!
Interface
/**
* Send an email to recipient via Pigeon's service.
*
* @param string $recipient
* @param string $template
* @param array $params
* @return array
*/
Pigeon::mail($recipient, $template, array $params = [])
/**
* Send a text to recipient via Pigeon's service.
*
* @param string $recipient
* @param string $template
* @param array $params
* @return array
*/
Pigeon::text($recipient, $template, array $params = [])
/**
* Request Pigeon to generate an OTP and send it via mail.
*
* @param string $recipient
* @param string $template
* @return array
*/
Pigeon::otpMail($recipient, $template)
/**
* Request Pigeon to generate an OTP and send it via text.
*
* @param string $recipient
* @param string $template
* @return array
*/
Pigeon::otpText($recipient, $template)
/**
* Verify user's OTP.
*
* @param string $recipient
* @param string $otp
* @param string $reference
* @return array
*/
Pigeon::otpVerify($recipient, $otp, $reference)