2017 © Pedro Peláez
 

library gwyn

service 2 api easily

image

jesusslim/gwyn

service 2 api easily

  • Saturday, May 27, 2017
  • by jesusslim
  • Repository
  • 1 Watchers
  • 1 Stars
  • 10 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 2 Versions
  • 0 % Grown

The README.md

gwyn

service 2 api easily, (*1)

Require

swoole

composer jesusslim/pinject

Example1

simple example

...
\gwyn\Example\Foo::run();

then, (*2)

php index.php

post url:, (*3)

http://localhost:9876?service=test_closure

post params:, (*4)

a = 3
b = 4

result:, (*5)

{
    "status": 1,
    "result": 12
}

chains example

... 
\gwyn\Example\Foo::runMulti();

then, (*6)

php index.php

post url:, (*7)

http://localhost:9876?services=test_class|sum2,test_closure

post params:, (*8)

a = 15

result:, (*9)

{
    "status": 1,
    "result": 3200
}

Example2

see mobile location example, (*10)

The Versions

27/05 2017

dev-master

9999999-dev

service 2 api easily

  Sources   Download

MIT

The Requires

 

by Avatar jesusslim

api service

27/05 2017

2.0.1

2.0.1.0

service 2 api easily

  Sources   Download

MIT

The Requires

 

by Avatar jesusslim

api service