___ ___
__ \ \/ /
/ \ \ \ /
/ / \ \ \
/ /\ / \ \ php.nx.cn
/__/ \/__/\__\ vea, 2020
php 8.2+
small,fast,emmmm...
使用php语言中的trait实现在代码编写时的加载扩充,而不是运行时的扩充
小框架,可以随意扩充
- cache-redis 基于redis的cache简单封装
- db-pdo 数据库访问,提供ar
- filter-from 过滤器,可书写混乱规则
- log 日志,支持同时多个writer
- log-cli 在shell中输出,提供颜色封装
- model mvc的m封装
- network-context 网络请求封装
- queue-amqp 简单的amqp队列封装
- trait,trait,trait!!!
- 支持命名空间
- 支持composer
- 尽可能支持psr
- 尽可能兼容next
- 支持调度 使用route并闭包
- 同时多route匹配
- 改造route数组为对象
- 修改调度方式
- 支持php8,支持php新功能
- 脚手架
- 项目预制
- 编译(打包phar)
- PHPUnit
- filter\throw
- db\sql
- router\uri
class app extends \nx\app{
use \nx\log\file,
\nx\control\mvc,
\nx\router\ca,
\nx\config\ini,
\nx\db\pdo;
}
(new app)->run();