Download the PHP package rickysu/php-livereload without Composer
On this page you can find all versions of the php package rickysu/php-livereload. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download rickysu/php-livereload
More information about rickysu/php-livereload
Files in rickysu/php-livereload
Package php-livereload
Short Description a livereload server implement by php
License MIT
Informations about the package php-livereload
PHP Livereload
php-livereload is a livereload server written in PHP.
php-livereload uses livereload.js -- a JavaScript file implementing the client side of the LiveReload protocol.
Install
Install php-livereload from composer.
Get the command-line php-livereload
$ curl -O https://raw.github.com/RickySu/php-livereload/master/dist/reload.phar
$ chmod +x reload.phar
$ sudo mv reload.phar /usr/bin
Install LiveReload Safari/Chrome/Firefox extension
Tests
To run the test suite, you need install the dependencies via composer, then run PHPUnit.
$ composer install
$ phpunit
Using php-livereload
define a livereload.json in your project root.
livereload.json
- period: monitor file changes every 1 second.
- watch: file and folder you want to watch
Initialize a default livereload.json file.
Running Server.
Rolling Your Own Live Reload
If you would like to trigger the live reload server yourself, simply POST files to the URL: http://localhost:35729/changed
.
Or if you rather roll your own live reload implementation use the following example:
Or you can bulk the information into a POST request, with body as a JSON array of files.
License
MIT, see LICENSE.
All versions of php-livereload with dependencies
react/socket Version ^0.4.0
symfony/finder Version ^2.6||^3.0
symfony/http-foundation Version ^2.6||^3.0