Skip to content

veasin/nx

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

        ___  ___
     __ \  \/  /
    /  \ \  \ /
   /  / \ \  \
  /  /\  / \  \   php.nx.cn
 /__/  \/__/\__\  vea, 2020

nx is "a next-gen framework"

php 8.2+

small,fast,emmmm...

使用php语言中的trait实现在代码编写时的加载扩充,而不是运行时的扩充

小框架,可以随意扩充

resources

feature

  • trait,trait,trait!!!
  • 支持命名空间
  • 支持composer
  • 尽可能支持psr
  • 尽可能兼容next
  • 支持调度 使用route并闭包
    • 同时多route匹配
    • 改造route数组为对象
    • 修改调度方式
  • 支持php8,支持php新功能
  • 脚手架
    • 项目预制
    • 编译(打包phar)
  • PHPUnit
    • filter\throw
    • db\sql
    • router\uri

code

class app extends \nx\app{
  use \nx\log\file,
      \nx\control\mvc,
      \nx\router\ca,
      \nx\config\ini,
      \nx\db\pdo;
}
(new app)->run();