composer.json 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. {
  2. "name": "crazywhalecc/static-php-cli",
  3. "description": "Build single static PHP binary, with PHP project together, with popular extensions included.",
  4. "license": "MIT",
  5. "authors": [
  6. {
  7. "name": "jerry",
  8. "email": "admin@zhamao.me"
  9. }
  10. ],
  11. "require": {
  12. "php": ">= 8.0",
  13. "ext-tokenizer": "*",
  14. "ext-iconv": "*",
  15. "symfony/console": "^6 || ^5 || ^4",
  16. "zhamao/logger": "^1.0",
  17. "crazywhalecc/cli-helper": "^0.1.0",
  18. "nunomaduro/collision": "*",
  19. "ext-pcntl": "*"
  20. },
  21. "require-dev": {
  22. "friendsofphp/php-cs-fixer": "^3.2 != 3.7.0",
  23. "phpstan/phpstan": "^1.1",
  24. "captainhook/captainhook": "^5.10",
  25. "captainhook/plugin-composer": "^5.3"
  26. },
  27. "autoload": {
  28. "psr-4": {
  29. "SPC\\": "src/SPC"
  30. },
  31. "files": [
  32. "src/globals/defines.php",
  33. "src/globals/functions.php"
  34. ]
  35. },
  36. "bin": [
  37. "bin/spc"
  38. ],
  39. "scripts": {
  40. "analyse": "phpstan analyse --memory-limit 300M",
  41. "cs-fix": "php-cs-fixer fix",
  42. "test": "bin/phpunit --no-coverage"
  43. },
  44. "config": {
  45. "allow-plugins": {
  46. "phpstan/extension-installer": true,
  47. "captainhook/plugin-composer": true
  48. },
  49. "optimize-autoloader": true,
  50. "sort-packages": true
  51. }
  52. }