Download the PHP package itscaro/react-bundle without Composer
On this page you can find all versions of the php package itscaro/react-bundle. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download itscaro/react-bundle
More information about itscaro/react-bundle
Files in itscaro/react-bundle
Package react-bundle
Short Description ReactPHP Bundle for Symfony2
License proprietary
Informations about the package react-bundle
Introduction
Run Symfony apps under React-PHP.
This module adds enable the usage of ReactPHP server for Symfony.
No configuration is needed. Follow the Installation instructions and read Usage section to know how to start using ReactPHP with your Symfony APP.
Installation
Composer
To install the bundle through Composer, run the following command in console at your project base path:
Register bundle
Then register the new bundle in your AppKernel.
Usage
To start using ReactPHP with Symfony, open console, go to your project root path and execute the following command:
Available options
--host=127.0.0.1 Selects IP to run server at. Defaults to 127.0.0.1. --port=1337 Selects port to run server at, use comma to separate ports. Defaults to 1337. --standalone If passed, React server will serve static files directly. (Use this if you don`t have Apache or Nginx running in you local machine. Static file serving is not designed for production environments) --cache If passed, class loader will be enabled. --apc If passed, APC class loader will be enabled. This option requires --cache option. --sessionleader Available for background server, promote the forked process to be session leader
Background server
-
To start the server execute the following:
- To stop the server, run:
Note: If host and port are specified when starting the server, they must be specified for the stop command.
- To restart the server: