2017 © Pedro Peláez
 

application micro-service-engine

ReactPHP server for use in micro-service applications

image

waryway/micro-service-engine

ReactPHP server for use in micro-service applications

  • Saturday, December 23, 2017
  • by KyleWiering
  • Repository
  • 1 Watchers
  • 1 Stars
  • 10 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 2 Open issues
  • 9 Versions
  • 0 % Grown

The README.md

MicroServiceEngine

Base Service using ReactPHP for PHP only Microservices, (*1)

Status

Build Status, (*2)

Description

Use this microservice engine to power you microservice! It is an extensible router / server base for ReactPHP. It provides an extremely light weight server and router combo., (*3)

The closest comparison I can think of, is express for nodejs. Only, this uses PHP!, (*4)

Usage

Rough steps to getting this up an running. Example coming soon! 1. Create your new PHP microservice application 2. Make sure it is PSR-4! 3. Add a Router class at the base namespace. 4. The namespace should be something like... <project> 5. Run composer update 6. 'composer require waryway/micro-service-engine' 7. From the root directory of you new project, simply run: vendor\bin\server.bat <company>\<project> 0.0.0.0:99 8. or for linux: ./vendor/bin/server <company>/<project> 0.0.0.0:99, (*5)

You can also run vendor\bin\server.bat -h for further information., (*6)

Router setup

Make sure to extend the BaseRouter. More details to be added in the future!, (*7)

Setting routes

The microservice engine is using the nikic/fast-route library. You can find path mapping information in the nikic/fast-route readme., (*8)

Example Routers

Example Application

https://github.com/Waryway/MicroServiceEngine/blob/master/example/Router.php, (*9)

Internal Example

For this repository an example from within this this source code can be viewed by first running computer install, then second, running :, (*10)

php server Waryway\Example 0.0.0.0:89

You'll be able to visit localhost:89/index.html and localhost:89/hi, (*11)

The Versions

23/12 2017

dev-master

9999999-dev

ReactPHP server for use in micro-service applications

  Sources   Download

MIT

The Requires

 

by Kyle Wiering

24/11 2017

0.0.8

0.0.8.0

ReactPHP server for use in micro-service applications

  Sources   Download

MIT

The Requires

 

by Kyle Wiering

22/11 2017

0.0.7

0.0.7.0

ReactPHP server for use in micro-service applications

  Sources   Download

MIT

The Requires

 

by Kyle Wiering

20/11 2017

0.0.6

0.0.6.0

ReactPHP server for use in micro-service applications

  Sources   Download

MIT

The Requires

 

by Kyle Wiering

20/11 2017

0.0.5

0.0.5.0

ReactPHP server for use in micro-service applications

  Sources   Download

MIT

The Requires

 

by Kyle Wiering

19/11 2017

0.0.4

0.0.4.0

ReactPHP server for use in micro-service applications

  Sources   Download

MIT

The Requires

 

by Kyle Wiering

19/11 2017

0.0.3

0.0.3.0

ReactPHP server for use in micro-service applications

  Sources   Download

MIT

The Requires

 

by Kyle Wiering

19/11 2017

0.0.2

0.0.2.0

ReactPHP server for use in micro-service applications

  Sources   Download

MIT

The Requires

 

by Kyle Wiering

19/11 2017

0.0.1

0.0.1.0

ReactPHP server for use in micro-service applications

  Sources   Download

MIT

The Requires

 

by Kyle Wiering