elnur / validator-bundle
常用验证器
0.1.0
2012-08-09 19:45 UTC
Requires
- php: >=5.3.2
- doctrine/orm: >=2.0
- symfony/framework-bundle: >=2.0,<2.1
This package is not auto-updated.
Last update: 2024-09-28 13:45:58 UTC
README
安装
-
将此添加到
deps
文件中[ElnurValidatorBundle] git=http://github.com/elnur/ElnurValidatorBundle.git target=/bundles/Elnur/ValidatorBundle
然后运行
bin/vendors install
。 -
在
app/autoload.php
文件中注册Elnur
命名空间$loader->registerNamespaces(array( // ... 'Elnur' => __DIR__.'/../vendor/bundles', ));
-
在
app/AppKernel.php
文件中注册此包public function registerBundles() { $bundles = array( // ... new Elnur\ValidatorBundle\ElnurValidatorBundle(), ); }
许可证
此包采用MIT许可证。请参阅包中的完整许可证。
Resources/meta/LICENSE