Download the PHP package next/simple without Composer
On this page you can find all versions of the php package next/simple. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Please rate this library. Is it a good library?
Informations about the package simple
轻量 • 简单 • 快速
一款支持swoole, workerman, FPM环境的组件化的轻量PHP框架
环境要求
如果使用swoole,务必安装4.6以上版本,如果使用workerman, 务必使用4.0以上版本
使用
安装
启动服务
FPM模式,将请求指向public/index.php即可
区别
使用swoole/workerman/amp/react等服务支持注解、AOP等特性, FPM模式可以直接卸载AOP包。
简单入门
路由定义
路由定义在
app/router.php文件中,也可以使用注解定义(需要安装AOP包,且不支持FPM/内置服务)
下面是在app/router.php中定义的路由
当你使用swoole/swoole/workerman/amp/reactphp并且使用了AOP就可以使用注解定义
如上请求0.0.0.0:8989 会指向index方法,控制器方法支持依赖注入,如需当前请求示例,则请求参数名必须是request
,其他路由参数均会被注入,控制器方法需要返回ResponseInterface实例。
其他文档
其他文档参考相应包的README
参与开发
欢迎有兴趣的朋友参与开发
All versions of simple with dependencies
PHP Build Version
Package Version
Requires
php Version
^8.2
monolog/monolog Version ^3.10.0
next/di Version ^0.2.0
next/http-server Version ^0.2.0
next/routing Version ^0.2.0
next/utils Version ^0.2.0
vlucas/phpdotenv Version ^5.6
monolog/monolog Version ^3.10.0
next/di Version ^0.2.0
next/http-server Version ^0.2.0
next/routing Version ^0.2.0
next/utils Version ^0.2.0
vlucas/phpdotenv Version ^5.6
The package next/simple contains the following files
Loading the files please wait ...