2017 © Pedro Peláez
 

library reactive-silex

Mixup silex and react

image

kpacha/reactive-silex

Mixup silex and react

  • Saturday, February 8, 2014
  • by kpacha
  • Repository
  • 2 Watchers
  • 7 Stars
  • 40 Installations
  • PHP
  • 1 Dependents
  • 0 Suggesters
  • 1 Forks
  • 0 Open issues
  • 5 Versions
  • 0 % Grown

The README.md

reactive-silex

Mixup silex and react (with a little help from espresso), (*1)

Instal

The recommended way to install kpacha/reactive-silex is through composer., (*2)

{
    "require": {
        "kpacha/reactive-silex": "~0.1.0"
    }
}

Usage

Check out the bin/reactive.php example and run it with, (*3)

$ php bin/reactive.php

There is a built-in console-based script, (*4)

$ bin/run reactive --help
Usage:
 reactive [port]

Arguments:
 port                   (default: 1337)

Options:
 --help (-h)           Display this help message.
 --quiet (-q)          Do not output any message.
 --verbose (-v|vv|vvv) Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3 for debug
 --version (-V)        Display this application version.
 --ansi                Force ANSI output.
 --no-ansi             Disable ANSI output.
 --no-interaction (-n) Do not ask any interactive question.

$ bin/run reactive -vv 8080
Server running at http://127.0.0.1:8080
Memory: 1280 KiB
Memory: 1280 KiB

Scalability

React launches a single-process share-nothing server, so you can instance several stacks in a single machine, depending on the number of avilable cores, before scale-out adding more hardware. The cpu and memory consumption will remain almost lineal. Balance your load between your stacks and everything will be run like a charm!, (*5)

Also, remember to bind every stack to a different port or you will face some nice port collision messages!, (*6)

Documentation

TODO

  • improve error handling
  • improve request & response parsing

Bitdeli Badge, (*7)

The Versions

08/02 2014

dev-master

9999999-dev

Mixup silex and react

  Sources   Download

MIT

The Requires

 

by Avatar kpacha

08/02 2014

0.1.3

0.1.3.0

Mixup silex and react

  Sources   Download

MIT

The Requires

 

by Avatar kpacha

08/02 2014

0.1.2

0.1.2.0

Mixup silex and react

  Sources   Download

MIT

The Requires

 

by Avatar kpacha

08/02 2014

0.1.1

0.1.1.0

Mixup silex and react

  Sources   Download

MIT

The Requires

 

by Avatar kpacha

08/02 2014

0.1.0

0.1.0.0

Mixup silex and react

  Sources   Download

MIT

The Requires

 

by Avatar kpacha