composer.json 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  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.1",
  13. "ext-mbstring": "*",
  14. "ext-zlib": "*",
  15. "laravel/prompts": "^0.1.12",
  16. "symfony/console": "^5.4 || ^6 || ^7",
  17. "zhamao/logger": "^1.0"
  18. },
  19. "require-dev": {
  20. "captainhook/captainhook-phar": "^5.23",
  21. "captainhook/hook-installer": "^1.0",
  22. "friendsofphp/php-cs-fixer": "^3.25",
  23. "humbug/box": "^4.5.0 || ^4.6.0",
  24. "nunomaduro/collision": "^7.8",
  25. "phpstan/phpstan": "^1.10",
  26. "phpunit/phpunit": "^10.3 || ^9.5"
  27. },
  28. "autoload": {
  29. "psr-4": {
  30. "SPC\\": "src/SPC"
  31. },
  32. "files": [
  33. "src/globals/defines.php",
  34. "src/globals/functions.php"
  35. ]
  36. },
  37. "autoload-dev": {
  38. "psr-4": {
  39. "SPC\\Tests\\": "tests/SPC"
  40. }
  41. },
  42. "bin": [
  43. "bin/spc"
  44. ],
  45. "scripts": {
  46. "analyse": "phpstan analyse --memory-limit 300M",
  47. "cs-fix": "php-cs-fixer fix",
  48. "test": "vendor/bin/phpunit tests/ --no-coverage",
  49. "build:phar": "vendor/bin/box compile"
  50. },
  51. "config": {
  52. "allow-plugins": {
  53. "phpstan/extension-installer": true,
  54. "captainhook/hook-installer": true,
  55. "captainhook/plugin-composer": true,
  56. "captainhook/captainhook-phar": true
  57. },
  58. "optimize-autoloader": true,
  59. "sort-packages": true
  60. },
  61. "funding": [
  62. {
  63. "type": "other",
  64. "url": "https://github.com/crazywhalecc/crazywhalecc/blob/master/FUNDING.md"
  65. }
  66. ]
  67. }