jesusslim / gwyn
service 2 api easily
Installs: 16
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 1
Forks: 0
Open Issues: 0
pkg:composer/jesusslim/gwyn
Requires
- php: >=5.6.0
- jesusslim/pinject: dev-master
This package is not auto-updated.
Last update: 2025-10-12 09:52:15 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
}