composer.json 7.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165
  1. {
  2. "name": "shlinkio/shlink",
  3. "type": "project",
  4. "homepage": "https://shlink.io",
  5. "description": "A self-hosted and PHP-based URL shortener application with CLI and REST interfaces",
  6. "license": "MIT",
  7. "authors": [
  8. {
  9. "name": "Alejandro Celaya Alastrué",
  10. "homepage": "https://www.alejandrocelaya.com",
  11. "email": "alejandro@alejandrocelaya.com"
  12. }
  13. ],
  14. "require": {
  15. "php": "^7.4",
  16. "ext-json": "*",
  17. "ext-pdo": "*",
  18. "akrabat/ip-address-middleware": "^1.0",
  19. "cakephp/chronos": "^1.2",
  20. "cocur/slugify": "^3.0",
  21. "doctrine/cache": "^1.9",
  22. "doctrine/dbal": "^2.10",
  23. "doctrine/migrations": "^2.2",
  24. "doctrine/orm": "^2.7",
  25. "endroid/qr-code": "^3.6",
  26. "firebase/php-jwt": "^4.0",
  27. "geoip2/geoip2": "^2.9",
  28. "guzzlehttp/guzzle": "^6.5.1",
  29. "laminas/laminas-config": "^3.3",
  30. "laminas/laminas-config-aggregator": "^1.1",
  31. "laminas/laminas-dependency-plugin": "^0.2",
  32. "laminas/laminas-diactoros": "^2.1.3",
  33. "laminas/laminas-inputfilter": "^2.10",
  34. "laminas/laminas-paginator": "^2.8",
  35. "laminas/laminas-servicemanager": "^3.4",
  36. "laminas/laminas-stdlib": "^3.2",
  37. "lstrojny/functional-php": "^1.9",
  38. "mezzio/mezzio": "^3.2",
  39. "mezzio/mezzio-fastroute": "^3.0",
  40. "mezzio/mezzio-helpers": "^5.3",
  41. "mezzio/mezzio-platesrenderer": "^2.1",
  42. "mezzio/mezzio-problem-details": "^1.1",
  43. "mezzio/mezzio-swoole": "^2.4",
  44. "monolog/monolog": "^2.0",
  45. "nikolaposa/monolog-factory": "^3.0",
  46. "ocramius/proxy-manager": "^2.5.1",
  47. "phly/phly-event-dispatcher": "^1.0",
  48. "predis/predis": "^1.1",
  49. "pugx/shortid-php": "^0.5",
  50. "shlinkio/shlink-common": "^2.4",
  51. "shlinkio/shlink-event-dispatcher": "^1.1",
  52. "shlinkio/shlink-installer": "^3.3",
  53. "shlinkio/shlink-ip-geolocation": "^1.2",
  54. "symfony/console": "^5.0",
  55. "symfony/filesystem": "^5.0",
  56. "symfony/lock": "^5.0",
  57. "symfony/process": "^5.0"
  58. },
  59. "require-dev": {
  60. "devster/ubench": "^2.0",
  61. "eaglewu/swoole-ide-helper": "dev-master",
  62. "infection/infection": "^0.15.0",
  63. "phpstan/phpstan": "^0.12.3",
  64. "phpunit/phpunit": "^8.3",
  65. "roave/security-advisories": "dev-master",
  66. "shlinkio/php-coding-standard": "~2.1.0",
  67. "shlinkio/shlink-test-utils": "^1.2",
  68. "symfony/var-dumper": "^5.0"
  69. },
  70. "autoload": {
  71. "psr-4": {
  72. "Shlinkio\\Shlink\\CLI\\": "module/CLI/src",
  73. "Shlinkio\\Shlink\\Rest\\": "module/Rest/src",
  74. "Shlinkio\\Shlink\\Core\\": "module/Core/src"
  75. },
  76. "files": [
  77. "module/Core/functions/functions.php"
  78. ]
  79. },
  80. "autoload-dev": {
  81. "psr-4": {
  82. "ShlinkioTest\\Shlink\\CLI\\": "module/CLI/test",
  83. "ShlinkioTest\\Shlink\\Rest\\": "module/Rest/test",
  84. "ShlinkioApiTest\\Shlink\\Rest\\": "module/Rest/test-api",
  85. "ShlinkioTest\\Shlink\\Core\\": [
  86. "module/Core/test",
  87. "module/Core/test-db"
  88. ]
  89. }
  90. },
  91. "scripts": {
  92. "ci": [
  93. "@cs",
  94. "@stan",
  95. "@test:ci",
  96. "@infect:ci"
  97. ],
  98. "cs": "phpcs",
  99. "cs:fix": "phpcbf",
  100. "stan": "phpstan analyse module/*/src/ module/*/config config docker/config --level=5 -c phpstan.neon",
  101. "test": [
  102. "@test:unit",
  103. "@test:db",
  104. "@test:api"
  105. ],
  106. "test:ci": [
  107. "@test:unit:ci",
  108. "@test:db:ci",
  109. "@test:api"
  110. ],
  111. "test:unit": "phpdbg -qrr vendor/bin/phpunit --order-by=random --colors=always --coverage-php build/coverage-unit.cov --testdox",
  112. "test:unit:ci": "@test:unit --coverage-clover=build/clover.xml --coverage-xml=build/coverage-xml --log-junit=build/junit.xml",
  113. "test:db": [
  114. "@test:db:sqlite",
  115. "@test:db:mysql",
  116. "@test:db:maria",
  117. "@test:db:postgres"
  118. ],
  119. "test:db:ci": [
  120. "@test:db:sqlite",
  121. "@test:db:mysql",
  122. "@test:db:postgres"
  123. ],
  124. "test:db:sqlite": "APP_ENV=test phpdbg -qrr vendor/bin/phpunit --order-by=random --colors=always --coverage-php build/coverage-db.cov --testdox -c phpunit-db.xml",
  125. "test:db:mysql": "DB_DRIVER=mysql composer test:db:sqlite",
  126. "test:db:maria": "DB_DRIVER=maria composer test:db:sqlite",
  127. "test:db:postgres": "DB_DRIVER=postgres composer test:db:sqlite",
  128. "test:api": "bin/test/run-api-tests.sh",
  129. "test:unit:pretty": "phpdbg -qrr vendor/bin/phpunit --order-by=random --colors=always --coverage-html build/coverage",
  130. "infect": "infection --threads=4 --min-msi=80 --log-verbosity=default --only-covered",
  131. "infect:ci": "@infect --coverage=build",
  132. "infect:show": "@infect --show-mutations",
  133. "infect:test": [
  134. "@test:unit:ci",
  135. "@infect:ci"
  136. ],
  137. "clean:dev": "rm -f data/database.sqlite && rm -f config/params/generated_config.php"
  138. },
  139. "scripts-descriptions": {
  140. "ci": "<fg=blue;options=bold>Alias for \"cs\", \"stan\", \"test:ci\" and \"infect:ci\"</>",
  141. "cs": "<fg=blue;options=bold>Checks coding styles</>",
  142. "cs:fix": "<fg=blue;options=bold>Fixes coding styles, when possible</>",
  143. "stan": "<fg=blue;options=bold>Inspects code with phpstan</>",
  144. "test": "<fg=blue;options=bold>Runs all test suites</>",
  145. "test:ci": "<fg=blue;options=bold>Runs all test suites, generating all needed reports and logs for CI envs</>",
  146. "test:unit": "<fg=blue;options=bold>Runs unit test suites</>",
  147. "test:unit:ci": "<fg=blue;options=bold>Runs unit test suites, generating all needed reports and logs for CI envs</>",
  148. "test:db": "<fg=blue;options=bold>Runs database test suites on a SQLite, MySQL, MariaDB and PostgreSQL</>",
  149. "test:db:ci": "<fg=blue;options=bold>Runs database test suites on a SQLite, MySQL and PostgreSQL</>",
  150. "test:db:sqlite": "<fg=blue;options=bold>Runs database test suites on a SQLite database</>",
  151. "test:db:mysql": "<fg=blue;options=bold>Runs database test suites on a MySQL database</>",
  152. "test:db:maria": "<fg=blue;options=bold>Runs database test suites on a MariaDB database</>",
  153. "test:db:postgres": "<fg=blue;options=bold>Runs database test suites on a PostgreSQL database</>",
  154. "test:api": "<fg=blue;options=bold>Runs API test suites</>",
  155. "test:unit:pretty": "<fg=blue;options=bold>Runs unit test suites and generates an HTML code coverage report</>",
  156. "infect": "<fg=blue;options=bold>Checks unit tests quality applying mutation testing</>",
  157. "infect:ci": "<fg=blue;options=bold>Checks unit tests quality applying mutation testing with existing reports and logs</>",
  158. "infect:show": "<fg=blue;options=bold>Checks unit tests quality applying mutation testing and shows applied mutators</>",
  159. "infect:test": "<fg=blue;options=bold>Checks unit tests quality applying mutation testing</>",
  160. "clean:dev": "<fg=blue;options=bold>Deletes artifacts which are gitignored and could affect dev env</>"
  161. },
  162. "config": {
  163. "sort-packages": true
  164. }
  165. }