nextgen-solution / pigeon
This package is abandoned and no longer maintained.
No replacement package was suggested.
1.1
2019-08-06 10:02 UTC
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)