phpcq/doctrine-validation
最新稳定版本:1.1.2
Composer 安装命令:
composer require phpcq/doctrine-validation
包简介
Validation tools for doctrine.
README 文档
README
Multiple validators for doctrine users
Installation
Add to your composer.json in the require-dev section:
"phpcq/doctrine-validation": "~1.0"
Column name validator
Validates the column names to make sure you have configured your entities correctly.
Usage
Call the binary, will scan all files matching src/Entity/*.php:
./vendor/bin/validate-doctrine-entity-column-names.php
Optionally you can pass the path to the entity class files:
./vendor/bin/validate-doctrine-entity-column-names.php lib/Doctrine/Entities/*.php
If you prefer camelCase over underscore_case naming (which may be a bad practice for some database systems), you can enable it:
./vendor/bin/validate-doctrine-entity-column-names.php --camel-case
统计信息
- 总下载量: 74
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2015-07-09