2017 © Pedro Peláez
 

library silex-autoreload

Silex 2.0+ service provider for AutoReload functionality

image

lokhman/silex-autoreload

Silex 2.0+ service provider for AutoReload functionality

  • Monday, March 6, 2017
  • by lokhman
  • Repository
  • 1 Watchers
  • 0 Stars
  • 1 Installations
  • PHP
  • 0 Dependents
  • 1 Suggesters
  • 0 Forks
  • 0 Open issues
  • 3 Versions
  • 0 % Grown

The README.md

silex-autoreload

StyleCI, (*1)

AutoReload functionality service provider for Silex 2.0+ micro-framework., (*2)

This project is a part of silex-tools library., (*3)

Installation

You can install silex-autoreload with Composer:, (*4)

composer require lokhman/silex-autoreload

Documentation

Simple service provider for page auto-reload functionality. It will embed small JavaScript file into every page with text/html content type, that will reload the page once any (as per configuration) file in the tree is updated. Supports directories, file name patterns and path exclusions., (*5)

use Lokhman\Silex\Provider\AutoReloadServiceProvider;

$app->register(new AutoReloadServiceProvider(), [
    'autoreload.interval' => 60,
    'autoreload.uri' => '/__autoreload',
    'autoreload.js_uri' => '/__autoreload.js',
    'autoreload' => [
        'dirs' => ['/dir/to/watch1', '/dir/to/watch2'],
        'files' => ['*.twig', '*.css', '*.js'],
        'exclude' => ['node_modules'],
    ],
]);

Module can be switched off with setting autoreload parameter to false., (*6)

Requires APCu extension enabled and Symfony Finder library., (*7)

License

Library is available under the MIT license. The included LICENSE file describes this in detail., (*8)

The Versions

06/03 2017

dev-master

9999999-dev

Silex 2.0+ service provider for AutoReload functionality

  Sources   Download

MIT

The Requires

 

by Alexander Lokhman

silex tools autoreload

06/03 2017

2.0.1

2.0.1.0

Silex 2.0+ service provider for AutoReload functionality

  Sources   Download

MIT

The Requires

 

by Alexander Lokhman

silex tools autoreload

24/01 2017

2.0.0

2.0.0.0

Silex 2.0+ service provider for AutoReload functionality

  Sources   Download

MIT

The Requires

 

by Alexander Lokhman

silex tools autoreload