dev-master
9999999-devReactPHP Bundle for Symfony2
proprietary
The Requires
1.1.0
1.1.0.0ReactPHP Bundle for Symfony2
proprietary
The Requires
1.0.0
1.0.0.0ReactPHP Bundle for Symfony2
proprietary
The Requires
Wallogit.com
2017 © Pedro Peláez
ReactPHP Bundle for Symfony2
Run Symfony apps under React-PHP., (*1)
This module adds enable the usage of ReactPHP server for Symfony., (*2)
No configuration is needed. Follow the Installation instructions and read Usage section to know how to start using ReactPHP with your Symfony APP., (*3)
To install the bundle through Composer, run the following command in console at your project base path:, (*4)
php composer.phar require itscaro/react-bundle
Then register the new bundle in your AppKernel., (*5)
<?php
// #app/AppKernel.php
$bundles = array(
...
new Itscaro\ReactBundle\JogaramReactBundle(),
...
);
To start using ReactPHP with Symfony, open console, go to your project root path and execute the following command:, (*6)
php app/console react:server:run --standalone
--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, (*7)
php app/console react:server:start
php app/console react:server:stop
Note: If host and port are specified when starting the server, they must be specified for the stop command., (*8)
php app/console react:server:restart
<Proxy balancer://mycluster> BalancerMember http://<ip:port of ReactPHP server> BalancerMember http://<ip:port of ReactPHP server> </Proxy> ProxyPass / balancer://mycluster
Apache Document, (*9)
http {
upstream mycluster {
server <ip:port of ReactPHP server>;
server <ip:port of ReactPHP server>;
}
server {
listen 80;
location / {
proxy_pass http://mycluster;
}
}
}
Nginx Document, (*10)
Blackshawk, (*11)
ReactPHP Bundle for Symfony2
proprietary
ReactPHP Bundle for Symfony2
proprietary
ReactPHP Bundle for Symfony2
proprietary