service 2 api easily

Maintainers

Package info

github.com/jesusslim/gwyn

pkg:composer/jesusslim/gwyn

Statistics

Installs: 16

Dependents: 0

Suggesters: 0

Stars: 1

Open Issues: 0

2.0.1 2017-05-27 03:15 UTC

This package is not auto-updated.

Last update: 2026-03-15 11:52:10 UTC


README

service 2 api easily

Require

swoole

composer jesusslim/pinject

Example1

simple example

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

then

php index.php

post url:

http://localhost:9876?service=test_closure

post params:

a = 3
b = 4

result:

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

chains example

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

then

php index.php

post url:

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

post params:

a = 15

result:

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

Example2

see mobile location example