flyddy / http-annotation
php stander lib
dev-main
2024-09-20 09:31 UTC
Requires
- php: >=7.1.0
- ext-json: *
- ext-libxml: *
- ext-simplexml: *
- ext-swoole: >=4.4.7
- easyswoole/annotation: ^2.0
- easyswoole/command: ^1.1
- easyswoole/component: ^2.2
- easyswoole/http: ^2.0
- easyswoole/parsedown: ^1.0
- flyddy/validate: ^2.1
Requires (Dev)
- easyswoole/phpunit: ^1.0
- easyswoole/swoole-ide-helper: ^1.0
This package is not auto-updated.
Last update: 2024-11-16 08:47:25 UTC
README
安装
composer require easyswoole/http-annotation
注解规范
Example
/** * Class ControllerA * @package EasySwoole\HttpAnnotation\Tests\TestController * @ApiGroup(groupName="A") * @ApiGroupDescription() */ class ControllerA extends AnnotationController { /** * @Api(path="/A/test") */ function test() { } /** * @Api(path="") */ function test2() { } }