Download the PHP package bahricanli/corvass without Composer
On this page you can find all versions of the php package bahricanli/corvass. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download bahricanli/corvass
More information about bahricanli/corvass
Files in bahricanli/corvass
Package corvass
Short Description Sends SMS using Corvass API
License MIT
Homepage https://github.com/bahricanli/corvass
Informations about the package corvass
Corvass Notification Channel For Laravel 5.3
This package makes it easy to send notifications using Corvass with Laravel 5.3.
Contents
- Installation
- Setting up the Corvass service
- Usage
- Available methods
- Available events
- Changelog
- Testing
- Security
- Contributing
- Credits
- License
Installation
You can install this package via composer:
Next add the service provider to your config/app.php
:
Register the Corvass alias to your application. This registration is not optional because the channel itself uses this very alias.
Setting up the Corvass service
Add your desired client, username, password, originator (outbox name, sender name) and request timeout
configuration to your config/services.php
file:
Usage
Now you can use the channel in your via() method inside the notification:
Don't forget to place the dedicated method for Corvass inside your notifiables. (e.g. User)
Available methods
Corvass can also be used directly to send short messages.
Examples:
see: corvass-php documentation for more information.
Available events
Corvass Notification channel comes with handy events which provides the required information about the SMS messages.
- Message Was Sent (
NotificationChannels\Corvass\Events\MessageWasSent
) - Messages Were Sent (
NotificationChannels\Corvass\Events\MessageWasSent
) - Sending Message (
NotificationChannels\Corvass\Events\SendingMessage
) - Sending Messages (
NotificationChannels\Corvass\Events\SendingMessages
)
Example:
Notes
$response->groupId() will throw BadMethodCallException if the client is set to 'http'. $response->messageReportIdentifiers() will throw BadMethodCallException if the client is set to 'xml'.
change client configuration with caution.
Changelog
Please see CHANGELOG for more information what has changed recently.
Testing
Security
If you discover any security related issues, please email [email protected] instead of using the issue tracker.
Contributing
Please see CONTRIBUTING for details.
Credits
- Bahri Meriç Canlı
- All Contributors
License
The MIT License (MIT). Please see License File for more information.
All versions of corvass with dependencies
php Version >=7
illuminate/notifications Version 8.*
illuminate/queue Version 8.*
illuminate/support Version 8.*