PHPackages                             mbence/livephp-bundle - 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. mbence/livephp-bundle

ActiveSymfony-bundle[Framework](/categories/framework)

mbence/livephp-bundle
=====================

LivePHP Bundle for Symfony2

v1.2(13y ago)0127MITPHPPHP &gt;=5.3.0

Since Apr 29Pushed 13y agoCompare

[ Source](https://github.com/mbence/LivePHPBundle)[ Packagist](https://packagist.org/packages/mbence/livephp-bundle)[ Docs](https://github.com/mbence/LivePHPBundle)[ RSS](/packages/mbence-livephp-bundle/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (2)Used By (0)

LivePHPBundle for Symfony
=========================

[](#livephpbundle-for-symfony)

LivePHP will save developers time by automatically refreshing the browser when a file is changed in the working directory.

Description
-----------

[](#description)

This bundle was written to make developers' life easier. Inspired by the brilliant live.js (written by Martin Kool), this script will auto refresh your browser if you change any files in your working directory. No need for Alt-Tab and manual refresh anymore.

With this script, it is also very easy to check your work in many browsers simultaneously. Just load the site in all your browsers or devices and the rest goes automatically.

**WARNING!**

> You should never activate this on a live server! It is meant for developer environment only!

Prerequisites
-------------

[](#prerequisites)

This bundle requires Symfony2.

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

[](#installation)

### Step 1: Download the bundle using composer

[](#step-1-download-the-bundle-using-composer)

Add the following in your composer.json:

```
{
    "require": {
        "mbence/livephp-bundle": "dev-master"
    }
}
```

Then download / update by running the command:

```
$ php composer.phar update mbence/livephp-bundle
```

Composer will install the bundle to your project's `vendor/mbence/livephp-bundle` directory.

### Step 2: Enable the bundle in your AppKernel

[](#step-2-enable-the-bundle-in-your-appkernel)

It is strongly recommended that you never use this script on a live site, so it's best to add the bundle only for the dev environment.

```
