2017 © Pedro Peláez
 

library react-bundle

ReactPHP Bundle for Symfony2

image

jogaram/react-bundle

ReactPHP Bundle for Symfony2

  • Saturday, April 18, 2015
  • by draco1989
  • Repository
  • 3 Watchers
  • 23 Stars
  • 5,514 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 4 Forks
  • 1 Open issues
  • 8 Versions
  • 6 % Grown

The README.md

Introduction

Run Symfony apps under React-PHP., (*1)

This module adds three Symfony console commands to run a server with your APP., (*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)

Installation

Composer

To install the bundle through Composer, run the following command in console at your project base path:, (*4)

php composer.phar require jogaram/react-bundle

Register bundle

Then register the new bundle in your AppKernel., (*5)

<?php

    // #app/AppKernel.php
    $bundles = array(
        ...
        new Jogaram\ReactPHPBundle\JogaramReactPHPBundle(),
        ...
    );

Usage

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

Available options

  • --port=1337 | -p 1337 Selects port to run server at. 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.

Background server

This bundle comes with two more methods to run server in background. To start the server execute the following:, (*7)

php app/console react:server:start --standalone

Note: If port is specified, also must be specified in stop server command., (*8)

To stop the server, run:, (*9)

php app/console react:server:stop

The Versions

18/04 2015

dev-master

9999999-dev

ReactPHP Bundle for Symfony2

  Sources   Download

proprietary

The Requires

 

18/04 2015

1.1.3

1.1.3.0

ReactPHP Bundle for Symfony2

  Sources   Download

proprietary

The Requires

 

18/04 2015

1.1.2

1.1.2.0

ReactPHP Bundle for Symfony2

  Sources   Download

proprietary

The Requires

 

21/03 2015

1.1.1

1.1.1.0

ReactPHP Bundle for Symfony2

  Sources   Download

proprietary

The Requires

 

21/03 2015

1.1.0

1.1.0.0

ReactPHP Bundle for Symfony2

  Sources   Download

proprietary

The Requires

 

21/03 2015

1.0.2

1.0.2.0

ReactPHP Bundle for Symfony2

  Sources   Download

proprietary

The Requires

 

19/03 2015

1.0.1

1.0.1.0

ReactPHP Bundle for Symfony2

  Sources   Download

proprietary

The Requires

 

19/03 2015

1.0.0

1.0.0.0

ReactPHP Bundle for Symfony2

  Sources   Download

proprietary

The Requires