demo : https://tutopushnotifications.herokuapp.com/
tutorial (FR) : http://pierrebaron.fr/blog/push-notification-php-nodejs/
This repository provides a base code to a PHP application with push notifications provided by socket.io.
- server : Lumen
- push : socket.io + elephant.io (socket.io PHP library)
- client : AngularJS
- clone the project
- run
composer install - run
mv .env.example .env - Open the .env file and update the APP_KEY and database information
- Create a MySQL database
- run
php artisan migrateto create tables - run
cd push; npm installto install nodejs vendor (Express and socket.io) - run
npm startto launch the push server - head over to
http://localhost:8000and enjoy !