urn2/nx

There is no license information available for the latest version (1.3.0) of this package.

A Trait Framework for PHP

Installs: 1 446

Dependents: 0

Suggesters: 0

Security: 0

Stars: 2

Watchers: 1

Forks: 0

Open Issues: 0

Type:framework

1.3.0 2023-11-03 05:47 UTC

README

        ___  ___
     __ \  \/  /
    /  \ \  \ /
   /  / \ \  \
  /  /\  / \  \   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();