aeyoll / laravel-free-mobile-notification-sender by aeyoll

Laravel wrapper for FreemobileNotificationSender
30
5
4
Package Data
Maintainer Username: aeyoll
Maintainer Contact: jp@bidega.in (Jean-Philippe Bidegain)
Package Create Date: 2014-06-14
Package Last Update: 2015-06-28
Home Page:
Language: PHP
License: MIT
Last Refreshed: 2024-11-19 03:12:07
Package Statistics
Total Downloads: 30
Monthly Downloads: 0
Daily Downloads: 0
Total Stars: 5
Total Watchers: 4
Total Forks: 0
Total Open Issues: 0

LaravelFreeMobileNotificationSender

SensioLabsInsight

This package is a Laravel wrapper for FreemobileNotificationSender (https://github.com/tibounise/FreemobileNotificationSender)

Installation

Begin by installing the package through Composer. Edit your project's composer.json file to require aeyoll/laravel-free-mobile-notification-sender.

"require": {
  "aeyoll/laravel-free-mobile-notification-sender": "1.*"
}

Next, use Composer to update your project from the the Terminal:

php composer.phar update

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.

'Aeyoll\LaravelFreeMobileNotificationSender\LaravelFreeMobileNotificationSenderServiceProvider'

After doing this you also need to add an alias. In your app/config/app.php file, add this to the aliases array.

'LaravelFreeMobileNotificationSender' => 'Aeyoll\LaravelFreeMobileNotificationSender\LaravelFreeMobileNotificationSender'

Then, you need to publish the package configuration:

php artisan config:publish aeyoll/laravel-free-mobile-notification-sender

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.

Usage

Once you've followed all the steps and completed the installation you can use LaravelFreeMobileNotificationSender.

Sending message

You can simply send a message by doing this:

LaravelFreeMobileNotificationSender::sendMessage('Hello world!');