composer.json 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081
  1. {
  2. "name": "sabberworm/php-css-parser",
  3. "type": "library",
  4. "description": "Parser for CSS Files written in PHP",
  5. "keywords": [
  6. "parser",
  7. "css",
  8. "stylesheet"
  9. ],
  10. "homepage": "https://www.sabberworm.com/blog/2010/6/10/php-css-parser",
  11. "license": "MIT",
  12. "authors": [
  13. {
  14. "name": "Raphael Schweikert"
  15. },
  16. {
  17. "name": "Oliver Klee",
  18. "email": "github@oliverklee.de"
  19. },
  20. {
  21. "name": "Jake Hotson",
  22. "email": "jake.github@qzdesign.co.uk"
  23. }
  24. ],
  25. "require": {
  26. "php": "^5.6.20 || ^7.0.0 || ~8.0.0 || ~8.1.0 || ~8.2.0 || ~8.3.0 || ~8.4.0",
  27. "ext-iconv": "*"
  28. },
  29. "require-dev": {
  30. "phpunit/phpunit": "5.7.27 || 6.5.14 || 7.5.20 || 8.5.40"
  31. },
  32. "suggest": {
  33. "ext-mbstring": "for parsing UTF-8 CSS"
  34. },
  35. "autoload": {
  36. "psr-4": {
  37. "Sabberworm\\CSS\\": "src/"
  38. }
  39. },
  40. "autoload-dev": {
  41. "psr-4": {
  42. "Sabberworm\\CSS\\Tests\\": "tests/"
  43. }
  44. },
  45. "extra": {
  46. "branch-alias": {
  47. "dev-main": "9.0.x-dev"
  48. }
  49. },
  50. "scripts": {
  51. "ci": [
  52. "@ci:static"
  53. ],
  54. "ci:php:fixer": "@php ./.phive/php-cs-fixer.phar --config=config/php-cs-fixer.php fix --dry-run -v --show-progress=dots bin src tests",
  55. "ci:php:sniffer": "@php ./.phive/phpcs.phar --standard=config/phpcs.xml bin src tests",
  56. "ci:php:stan": "@php ./.phive/phpstan.phar --configuration=config/phpstan.neon",
  57. "ci:static": [
  58. "@ci:php:fixer",
  59. "@ci:php:sniffer",
  60. "@ci:php:stan"
  61. ],
  62. "fix:php": [
  63. "@fix:php:fixer",
  64. "@fix:php:sniffer"
  65. ],
  66. "fix:php:fixer": "@php ./.phive/php-cs-fixer.phar --config=config/php-cs-fixer.php fix bin src tests",
  67. "fix:php:sniffer": "@php ./.phive/phpcbf.phar --standard=config/phpcs.xml bin src tests",
  68. "phpstan:baseline": "@php ./.phive/phpstan.phar --configuration=config/phpstan.neon --generate-baseline=config/phpstan-baseline.neon"
  69. },
  70. "scripts-descriptions": {
  71. "ci": "Runs all dynamic and static code checks (i.e. currently, only the static checks).",
  72. "ci:php:fixer": "Checks the code style with PHP CS Fixer.",
  73. "ci:php:sniffer": "Checks the code style with PHP_CodeSniffer.",
  74. "ci:php:stan": "Checks the types with PHPStan.",
  75. "ci:static": "Runs all static code analysis checks for the code.",
  76. "fix:php": "Autofixes all autofixable issues in the PHP code.",
  77. "fix:php:fixer": "Fixes autofixable issues found by PHP CS Fixer.",
  78. "fix:php:sniffer": "Fixes autofixable issues found by PHP_CodeSniffer.",
  79. "phpstand:baseline": "Updates the PHPStan baseline file to match the code."
  80. }
  81. }