Skip to content

ftdebugger/react-zf2

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Zend Framework 2 and React PHP

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'
            ),
            ..
        )
    )
);

About

Module for integration Zend Framework 2 and React PHP

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages