mirror of
https://github.com/Respect/Validation.git
synced 2024-05-15 04:36:40 +02:00
97b243daa1
Although helpful, the changes in the Min, Max, and Length rules made using those rules more verbose. This commit will simplify their use by allowing users to use them as prefixes. Because I was creating prefixes for those rules, I made other cool prefixes. Doing that is scary because it will generate more code to support, and I would have liked to avoid that. However, that's a valuable addition, and it's worth the risk. I might reconsider that in the future, but for now, that looks like a good idea. Signed-off-by: Henrique Moody <henriquemoody@gmail.com>
80 lines
2.7 KiB
JSON
80 lines
2.7 KiB
JSON
{
|
|
"name": "respect/validation",
|
|
"description": "The most awesome validation engine ever created for PHP",
|
|
"keywords": ["respect", "validation", "validator"],
|
|
"type": "library",
|
|
"homepage": "http://respect.github.io/Validation/",
|
|
"license": "MIT",
|
|
"authors": [
|
|
{
|
|
"name": "Respect/Validation Contributors",
|
|
"homepage": "https://github.com/Respect/Validation/graphs/contributors"
|
|
}
|
|
],
|
|
"config": {
|
|
"sort-packages": true,
|
|
"allow-plugins": {
|
|
"dealerdirect/phpcodesniffer-composer-installer": true
|
|
}
|
|
},
|
|
"require": {
|
|
"php": "^8.1 || ^8.2",
|
|
"respect/stringifier": "^2.0.0",
|
|
"symfony/polyfill-mbstring": "^1.28"
|
|
},
|
|
"require-dev": {
|
|
"egulias/email-validator": "^4.0",
|
|
"giggsey/libphonenumber-for-php-lite": "^8.13",
|
|
"malukenho/docheader": "^1.0",
|
|
"mikey179/vfsstream": "^1.6",
|
|
"nette/php-generator": "^4.1",
|
|
"phpstan/phpstan": "^1.10",
|
|
"phpstan/phpstan-deprecation-rules": "^1.1",
|
|
"phpstan/phpstan-phpunit": "^1.3",
|
|
"phpunit/phpunit": "^10.5",
|
|
"psr/http-message": "^1.0 || ^2.0",
|
|
"respect/coding-standard": "^4.0",
|
|
"sokil/php-isocodes": "^4.2",
|
|
"sokil/php-isocodes-db-only": "^4.0",
|
|
"squizlabs/php_codesniffer": "^3.8",
|
|
"symfony/var-exporter": "^6.4 || ^7.0"
|
|
},
|
|
"suggest": {
|
|
"ext-bcmath": "Arbitrary Precision Mathematics",
|
|
"ext-fileinfo": "File Information",
|
|
"ext-mbstring": "Multibyte String Functions",
|
|
"egulias/email-validator": "Improves the Email rule if available",
|
|
"giggsey/libphonenumber-for-php-lite": "Enables the phone rule if available",
|
|
"sokil/php-isocodes": "Enable rules that validate ISO codes",
|
|
"sokil/php-isocodes-db-only": "Enable rules that validate ISO codes"
|
|
},
|
|
"autoload": {
|
|
"psr-4": {
|
|
"Respect\\Validation\\": "library/"
|
|
}
|
|
},
|
|
"autoload-dev": {
|
|
"psr-4": {
|
|
"Respect\\Validation\\": "tests/unit/",
|
|
"Respect\\Validation\\Test\\": "tests/library/"
|
|
},
|
|
"files": [
|
|
"tests/integration/lib/helpers.php"
|
|
]
|
|
},
|
|
"scripts": {
|
|
"docheader": "vendor/bin/docheader check library/ tests/",
|
|
"phpcs": "vendor/bin/phpcs",
|
|
"phpstan": "vendor/bin/phpstan analyze",
|
|
"phpunit": "vendor/bin/phpunit",
|
|
"phpunit-integration": "vendor/bin/phpunit --testsuite=integration",
|
|
"phpunit-unit": "vendor/bin/phpunit --testsuite=unit",
|
|
"qa": [
|
|
"@docheader",
|
|
"@phpcs",
|
|
"@phpstan",
|
|
"@phpunit"
|
|
]
|
|
}
|
|
}
|