xinix-technology / bono-norm
Bono的规范粘合代码
1.1.0
2018-07-31 08:41 UTC
Requires
- xinix-technology/bono: ^2.2
- xinix-technology/norm: ^2.2
Requires (Dev)
- brainmaestro/composer-git-hooks: ^2.4
- phpunit/phpunit: ^7.2
- squizlabs/php_codesniffer: ^3.3
This package is not auto-updated.
Last update: 2024-09-18 19:23:23 UTC
README
如果您想使用Bono 2作为您的Web应用程序开发框架,并且需要数据库访问,那么您很可能会需要Norm。这个库最适合在Bono 2和Norm 2之间进行集成。
如何使用
使用bono-norm中间件准备Norm仓库,将BonoNorm\Middleware
添加到Bono包中间件配置部分或config/config.php
文件中。
return [ "middlewares": [ [ BonoNorm\Middleware::class, [ "options" => [ "connections" => [...], "collections" => [...], "attributes" => [...], ] ]] ] ];
此DSL符合ROH\Util\Injector
接受的DSL。