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 migrate
to create tables - run
cd push; npm install
to install nodejs vendor (Express and socket.io) - run
npm start
to launch the push server - head over to
http://localhost:8000
and enjoy !