ftdebugger/react-zf2

Module for integration Zend Framework 2 and React PHP

dev-master 2014-09-29 08:32 UTC

This package is not auto-updated.

Last update: 2024-12-16 15:31:07 UTC


README

Build StatusDependency Status

Integration of zend framework 2 and react php

Install

The recommended way to install is through composer.

{
    "require": {
        "ftdebugger/react-zf2": "dev-master"
    }
}

Usage

Append ReactZF module to config/application.config.php, then type in console

# start default server at http://localhost:1337/
php -f public/index.php react start

Open http://localhost:1337/.

Configuration

Add configuration to your config/autoload/*

return array(
    'ReactZF' => array(
        'servers' => array(
            // You can rewrite default server options
            'default' => array(
                'port' => 1337,
                'host' => '127.0.0.1'
            )

            // Or specify your own
            'some-server-name-you-like' => array(
                'port' => 1338,

                // optional, react use 127.0.0.1 as default
                'host' => '192.168.0.117'
            ),
            ..
        )
    )
);