PHPackages                             lokhman/silex-autoreload - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Framework](/categories/framework)
4. /
5. lokhman/silex-autoreload

ActiveLibrary[Framework](/categories/framework)

lokhman/silex-autoreload
========================

Silex 2.0+ service provider for AutoReload functionality

2.0.1(9y ago)03MITPHP

Since Jan 24Pushed 9y ago1 watchersCompare

[ Source](https://github.com/lokhman/silex-autoreload)[ Packagist](https://packagist.org/packages/lokhman/silex-autoreload)[ RSS](/packages/lokhman-silex-autoreload/feed)WikiDiscussions master Synced 4w ago

READMEChangelogDependencies (2)Versions (3)Used By (0)

silex-autoreload
================

[](#silex-autoreload)

[![StyleCI](https://camo.githubusercontent.com/17b75f8b3cae17080cc101b3132136cc621540bd5336f58e33bcae24a94e11b8/68747470733a2f2f7374796c6563692e696f2f7265706f732f37393930393437392f736869656c643f6272616e63683d6d6173746572)](https://styleci.io/repos/79909479)

AutoReload functionality service provider for [**Silex 2.0+**](http://silex.sensiolabs.org/) micro-framework.

> This project is a part of [`silex-tools`](https://github.com/lokhman/silex-tools) library.

Installation
----------------------------------------------------

[](#installation)

You can install `silex-autoreload` with [Composer](http://getcomposer.org):

```
composer require lokhman/silex-autoreload

```

Documentation
------------------------------------------------------

[](#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.

```
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`.

Requires [`APCu`](http://php.net/manual/en/book.apcu.php) extension enabled and [`Symfony Finder`](https://github.com/symfony/finder) library.

License
------------------------------------------

[](#license)

Library is available under the MIT license. The included LICENSE file describes this in detail.

###  Health Score

26

—

LowBetter than 41% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity3

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity64

Established project with proven stability

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~40 days

Total

2

Last Release

3404d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/17a4b2bb3c64905c2663115cb0a3ef36854123b51709645576a591fb72fbef10?d=identicon)[lokhman](/maintainers/lokhman)

---

Top Contributors

[![lokhman](https://avatars.githubusercontent.com/u/7714105?v=4)](https://github.com/lokhman "lokhman (5 commits)")

---

Tags

autoreloadsilextoolstoolssilexautoreload

### Embed Badge

![Health badge](/badges/lokhman-silex-autoreload/health.svg)

```
[![Health](https://phpackages.com/badges/lokhman-silex-autoreload/health.svg)](https://phpackages.com/packages/lokhman-silex-autoreload)
```

###  Alternatives

[laravel/framework

The Laravel Framework.

34.8k543.8M19.5k](/packages/laravel-framework)[symfony/framework-bundle

Provides a tight integration between Symfony components and the Symfony full-stack framework

3.6k246.0M11.2k](/packages/symfony-framework-bundle)[pimcore/pimcore

Content &amp; Product Management Framework (CMS/PIM/E-Commerce)

3.8k3.8M481](/packages/pimcore-pimcore)[shopware/platform

The Shopware e-commerce core

3.4k1.5M3](/packages/shopware-platform)[drupal/core

Drupal is an open source content management platform powering millions of websites and applications.

19664.8M1.7k](/packages/drupal-core)[sulu/sulu

Core framework that implements the functionality of the Sulu content management system

1.3k1.4M196](/packages/sulu-sulu)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
