Download the PHP package mbence/livephp-bundle without Composer

On this page you can find all versions of the php package mbence/livephp-bundle. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package livephp-bundle

LivePHPBundle for Symfony

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

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

This bundle requires Symfony2.

Installation

Step 1: Download the bundle using composer

Add the following in your composer.json:

Then download / update by running the command:

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

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.

Step 3: Import LivePHP routing files

Add this to your routing_dev.yml file:

Step 4: Include the livephp.js in your templates

Livephp.js must be loaded on every page you want to work with, so a layout template file is a good place to add the following:

Now LivePHP is ready. You can open one of your pages in a browser and if you edit and save a file in your project, the browser will automatically refresh and show the new contents.

Optional Steps

Configure LivePHP

You can set many options in LivePHP, including what directories to monitor or ignore, by adding the following configuration to your config_dev.yml:

By default LivePHP will monitor the app, src and web directories and it will ignore the logs and cache directories. You can also set the time limit - how long a monitor worker should run in the background. Default is 125 sec. LivePHP will try to use this value, but if it cant set the timeout for some reason it will fall back to your servers settings, and work just fine. New feature since v1.2: With the cssonthefly you can enable or disable css refresh without reloading the page. By default this is enabled.

If your app requires authentication, you should add LivePHP to your firewall rules:

The front controller name in js

The app_dev.php front controller is hardcoded in livephp.js. If you use a different filename, you should update it in the line 17:


All versions of livephp-bundle with dependencies

PHP Build Version
Package Version
Requires php Version >=5.3.0
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package mbence/livephp-bundle contains the following files

Loading the files please wait ....