LaravelFreeMobileNotificationSender
, (*1)
This package is a Laravel wrapper for FreemobileNotificationSender (https://github.com/tibounise/FreemobileNotificationSender), (*2)
Installation
Begin by installing the package through Composer. Edit your project's composer.json
file to require aeyoll/laravel-free-mobile-notification-sender
., (*3)
php
"require": {
"aeyoll/laravel-free-mobile-notification-sender": "1.*"
}
, (*4)
Next, use Composer to update your project from the the Terminal:, (*5)
php
php composer.phar update
, (*6)
Once the package has been installed you'll need to add the service provider. Open your app/config/app.php
configuration file, and add a new item to the providers
array., (*7)
php
'Aeyoll\LaravelFreeMobileNotificationSender\LaravelFreeMobileNotificationSenderServiceProvider'
, (*8)
After doing this you also need to add an alias. In your app/config/app.php
file, add this to the aliases
array., (*9)
php
'LaravelFreeMobileNotificationSender' => 'Aeyoll\LaravelFreeMobileNotificationSender\LaravelFreeMobileNotificationSender'
, (*10)
Then, you need to publish the package configuration:, (*11)
php
php artisan config:publish aeyoll/laravel-free-mobile-notification-sender
, (*12)
Finally, add you userid
and apikey
from your user profile on mobile.free.fr in the app/config/packages/aeyoll/laravel-free-mobile-notification-sender/config.php
file., (*13)
Usage
Once you've followed all the steps and completed the installation you can use LaravelFreeMobileNotificationSender
., (*14)
Sending message
You can simply send a message by doing this:, (*15)
php
LaravelFreeMobileNotificationSender::sendMessage('Hello world!');
, (*16)