composer.json 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  1. {
  2. "name": "mpdf/mpdf",
  3. "type": "library",
  4. "description": "PHP library generating PDF files from UTF-8 encoded HTML",
  5. "keywords": ["php", "pdf", "utf-8"],
  6. "homepage": "https://mpdf.github.io",
  7. "license": ["GPL-2.0-only"],
  8. "authors": [
  9. {
  10. "name": "Matěj Humpál",
  11. "role": "Developer, maintainer"
  12. },
  13. {
  14. "name": "Ian Back",
  15. "role": "Developer (retired)"
  16. }
  17. ],
  18. "support": {
  19. "issues": "https://github.com/mpdf/mpdf/issues",
  20. "source": "https://github.com/mpdf/mpdf",
  21. "docs": "http://mpdf.github.io"
  22. },
  23. "require": {
  24. "php": "^5.6 || ^7.0 || ~8.0.0 || ~8.1.0 || ~8.2.0 || ~8.3.0",
  25. "ext-gd": "*",
  26. "ext-mbstring": "*",
  27. "mpdf/psr-http-message-shim": "^1.0 || ^2.0",
  28. "mpdf/psr-log-aware-trait": "^2.0 || ^3.0",
  29. "myclabs/deep-copy": "^1.7",
  30. "paragonie/random_compat": "^1.4|^2.0|^9.99.99",
  31. "psr/http-message": "^1.0 || ^2.0",
  32. "psr/log": "^1.0 || ^2.0 || ^3.0",
  33. "setasign/fpdi": "^2.1"
  34. },
  35. "require-dev": {
  36. "mockery/mockery": "^1.3.0",
  37. "mpdf/qrcode": "^1.1.0",
  38. "squizlabs/php_codesniffer": "^3.5.0",
  39. "tracy/tracy": "~2.5",
  40. "yoast/phpunit-polyfills": "^1.0"
  41. },
  42. "suggest": {
  43. "ext-bcmath": "Needed for generation of some types of barcodes",
  44. "ext-zlib": "Needed for compression of embedded resources, such as fonts",
  45. "ext-xml": "Needed mainly for SVG manipulation"
  46. },
  47. "autoload": {
  48. "psr-4": {
  49. "Mpdf\\": "src/"
  50. },
  51. "files": [
  52. "src/functions.php"
  53. ]
  54. },
  55. "autoload-dev": {
  56. "psr-4": {
  57. "Mpdf\\": "tests/Mpdf"
  58. },
  59. "files": [
  60. "src/functions-dev.php"
  61. ]
  62. },
  63. "scripts": {
  64. "post-install-cmd": [
  65. "php -r \"chmod('./tmp', 0777);\""
  66. ],
  67. "cs": "@php vendor/bin/phpcs -v --report-width=160 --standard=ruleset.xml --severity=1 --warning-severity=0 --extensions=php src utils tests",
  68. "test": "@php vendor/bin/phpunit",
  69. "coverage": "@php vendor/bin/phpunit --coverage-text"
  70. },
  71. "config": {
  72. "sort-packages": true
  73. }
  74. }