Download the PHP package ricardofontanelli/laravel-fanout-provider without Composer
On this page you can find all versions of the php package ricardofontanelli/laravel-fanout-provider. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download ricardofontanelli/laravel-fanout-provider
More information about ricardofontanelli/laravel-fanout-provider
Files in ricardofontanelli/laravel-fanout-provider
Package laravel-fanout-provider
Short Description A simple and lightweight Laravel 4.2 and Laravel 5.* wrapper to interact with Fanout Service (fanout.io). Fanout is a SAAS that makes easy to build apps and APIs with realtime updates.
License BSD Style
Homepage https://github.com/ricardofontanelli/laravel-fanout-provider
Informations about the package laravel-fanout-provider
Laravel Fanout
A simple and lightweight Laravel 4.2 and Laravel 5.* wrapper to interact with Fanout Service (fanout.io). Fanout is a SAAS that makes easy to build apps and APIs with realtime updates.
Get Started:
- First of all, you should create an account on Fanout website (fanout.io)[https://fanout.io] to obtain the service credentials (Realm ID and Realm Key);
- Install the lib via composer;
- Update the config file and be happy!
Installation
The Laravel Fanout Service Provider can be installed via ...
or Composer by requiring the ricardofontanelli/laravel-fanout-provider
package in your project's composer.json
Then run a composer update
To use the Laravel Fanout Service Provider, you must register the provider when bootstrapping your application.
In Laravel find the providers
key in your config/app.php
and register the Laravel Fanout Service Provider.
Find the aliases
key in your config/app.php
and add the Laravel Fanout facade alias.
Publishing the package
Now, you should publish the package to generate the config file, after that, edit the config file with your Fanout credentials.
Laravel 4.2
The config file will be generate here:
Laravel 5.*
The config file will be generate here:
Send a notification:
You have two options to test the front-end, the first is using the fanout Push Test Page, on Control Panel click the button "Push Test Page, on terminal open and run:
The second one is creating a file called fanout.html like that, pay attention to change the information about your realm id:
Now, open the file fanout.html send your first message usign and run:
You are free to change the channel name, fanout doesn't force you to create theses channels before send messages.
Find more:
This is a simples service provider to help you to quickly implements Fanout in your app, you can find more details about the Fanout PHP sdk on [https://github.com/fanout/php-fanout]. Have a look at Fanout (Docs)[https://fanout.io/docs/] to see how to implement the service in your frontend;