composer.json 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. {
  2. "name": "fruitcake/php-cors",
  3. "description": "Cross-origin resource sharing library for the Symfony HttpFoundation",
  4. "keywords": ["cors", "symfony", "laravel"],
  5. "homepage": "https://github.com/fruitcake/php-cors",
  6. "type": "library",
  7. "license": "MIT",
  8. "authors": [
  9. {
  10. "name": "Fruitcake",
  11. "homepage": "https://fruitcake.nl"
  12. },
  13. {
  14. "name": "Barryvdh",
  15. "email": "barryvdh@gmail.com"
  16. }
  17. ],
  18. "require": {
  19. "php": "^7.4|^8.0",
  20. "symfony/http-foundation": "^4.4|^5.4|^6"
  21. },
  22. "require-dev": {
  23. "phpunit/phpunit": "^9",
  24. "squizlabs/php_codesniffer": "^3.5",
  25. "phpstan/phpstan": "^1.4"
  26. },
  27. "autoload": {
  28. "psr-4": {
  29. "Fruitcake\\Cors\\": "src/"
  30. }
  31. },
  32. "autoload-dev": {
  33. "psr-4": {
  34. "Fruitcake\\Cors\\Tests\\": "tests/"
  35. }
  36. },
  37. "scripts": {
  38. "actions": "composer test && composer analyse && composer check-style",
  39. "test": "phpunit",
  40. "analyse": "phpstan analyse src tests --level=9",
  41. "check-style": "phpcs -p --standard=PSR12 --exclude=Generic.Files.LineLength --runtime-set ignore_errors_on_exit 1 --runtime-set ignore_warnings_on_exit 1 src tests",
  42. "fix-style": "phpcbf -p --standard=PSR12 --exclude=Generic.Files.LineLength --runtime-set ignore_errors_on_exit 1 --runtime-set ignore_warnings_on_exit 1 src tests"
  43. },
  44. "extra": {
  45. "branch-alias": {
  46. "dev-main": "1.1-dev"
  47. }
  48. }
  49. }