gibilogic / crud-bundle
GiBiLogic CRUD Bundle
2.0.7
2018-04-06 09:14 UTC
Requires
- php: >=5.4
- doctrine/orm: ^2.4.8
- symfony/http-kernel: ^2.8
- symfony/options-resolver: ^3.1
README
这是一个包含简单CRUD服务和小工具的Symfony 2 Bundle。
此Bundle通过简化过滤和排序操作,处理(可选)分页,使填充模式可用于顶级方法,帮助创建Doctrine实体的CRUD系统。
- 简化过滤和排序操作
- 处理(可选)分页
- 使填充模式可用于顶级方法
此Bundle使用以下库/框架
- Symfony 2 HTTP内核
- Doctrine ORM
注意 - 请勿使用较旧的1.*版本:它将不再受支持。因此,切换到2.*版本,快乐编码!
安装
使用控制台命令将此Bundle添加到应用程序的composer.json中
composer require gibilogic/crud-bundle
或者,如果您使用composer.phar
,请使用控制台命令
php composer.phar require gibilogic/crud-bundle
然后将Bundle添加到应用程序的AppKernel
类中
use Symfony\Component\HttpKernel\Kernel; use Symfony\Component\Config\Loader\LoaderInterface; class AppKernel extends Kernel { public function registerBundles() { $bundles = array( // ... new Gibilogic\CrudBundle\GibilogicCrudBundle(), // ... ); // ... return $bundles; } // ... }
配置
不需要应用程序配置;只需安装Bundle并创建实体类(存储库、服务和控制器)。
用法
点击这里阅读完整的Bundle文档。