composer.json 2.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  1. {
  2. "name": "workerman/validation",
  3. "description": "The most awesome validation engine ever created for PHP. Respect/Validation 汉化版本",
  4. "keywords": ["respect", "validation", "validator"],
  5. "type": "library",
  6. "homepage": "http://respect.github.io/Validation/",
  7. "license": "MIT",
  8. "authors": [
  9. {
  10. "name": "Respect/Validation Contributors",
  11. "homepage": "https://github.com/Respect/Validation/graphs/contributors"
  12. }
  13. ],
  14. "config": {
  15. "sort-packages": true,
  16. "allow-plugins": {
  17. "dealerdirect/phpcodesniffer-composer-installer": true
  18. }
  19. },
  20. "require": {
  21. "php": "^8.0 || ^8.1 || ^8.2",
  22. "respect/stringifier": "^0.2.0",
  23. "symfony/polyfill-mbstring": "^1.2"
  24. },
  25. "require-dev": {
  26. "egulias/email-validator": "^3.0",
  27. "giggsey/libphonenumber-for-php-lite": "^8.13",
  28. "malukenho/docheader": "^1.0",
  29. "mikey179/vfsstream": "^1.6",
  30. "phpstan/phpstan": "^1.9",
  31. "phpstan/phpstan-deprecation-rules": "^1.1",
  32. "phpstan/phpstan-phpunit": "^1.3",
  33. "phpunit/phpunit": "^9.6",
  34. "psr/http-message": "^1.0",
  35. "respect/coding-standard": "^3.0",
  36. "squizlabs/php_codesniffer": "^3.7"
  37. },
  38. "suggest": {
  39. "ext-bcmath": "Arbitrary Precision Mathematics",
  40. "ext-fileinfo": "File Information",
  41. "ext-mbstring": "Multibyte String Functions",
  42. "egulias/email-validator": "Improves the Email rule if available",
  43. "giggsey/libphonenumber-for-php-lite": "Enables the phone rule if available"
  44. },
  45. "autoload": {
  46. "psr-4": {
  47. "Respect\\Validation\\": "library/"
  48. }
  49. },
  50. "autoload-dev": {
  51. "psr-4": {
  52. "Respect\\Validation\\": "tests/unit/",
  53. "Respect\\Validation\\Test\\": "tests/library/"
  54. },
  55. "files": [
  56. "tests/integration/lib/helpers.php"
  57. ]
  58. },
  59. "scripts": {
  60. "docheader": "vendor/bin/docheader check library/ tests/",
  61. "phpcs": "vendor/bin/phpcs",
  62. "phpstan": "vendor/bin/phpstan analyze",
  63. "phpunit": "vendor/bin/phpunit",
  64. "phpunit-integration": "vendor/bin/phpunit --testsuite=integration",
  65. "phpunit-unit": "vendor/bin/phpunit --testsuite=unit",
  66. "qa": [
  67. "@docheader",
  68. "@phpcs",
  69. "@phpstan",
  70. "@phpunit"
  71. ]
  72. }
  73. }