1{ 2 "name": "fisharebest/webtrees", 3 "description": "webtrees online genealogy", 4 "keywords": [ 5 "webtrees", 6 "genealogy" 7 ], 8 "license": "GPL-3.0-or-later", 9 "autoload": { 10 "psr-4": { 11 "Fisharebest\\Webtrees\\": "app/" 12 }, 13 "files": [ 14 "app/Helpers/functions.php" 15 ] 16 }, 17 "autoload-dev": { 18 "classmap": [ 19 "tests/TestCase.php", 20 "tests/MockGlobalFunctions.php", 21 "tests/app/Elements/AbstractElementTestCase.php" 22 ] 23 }, 24 "config": { 25 "platform": { 26 "php": "8.2.0" 27 }, 28 "sort-packages": true, 29 "process-timeout": 3600 30 }, 31 "require": { 32 "php": "8.2 - 8.4", 33 "ext-ctype": "*", 34 "ext-curl": "*", 35 "ext-fileinfo": "*", 36 "ext-gd": "*", 37 "ext-iconv": "*", 38 "ext-intl": "*", 39 "ext-json": "*", 40 "ext-mbstring": "*", 41 "ext-pcre": "*", 42 "ext-pdo": "*", 43 "ext-session": "*", 44 "ext-xml": "*", 45 "aura/router": "3.3.0", 46 "doctrine/dbal": "4.0.1", 47 "ezyang/htmlpurifier": "4.17.0", 48 "fig/http-message-util": "1.1.5", 49 "fisharebest/algorithm": "1.6.0", 50 "fisharebest/ext-calendar": "2.6.0", 51 "fisharebest/localization": "1.17.0", 52 "guzzlehttp/guzzle": "7.8.1", 53 "illuminate/database": "11.0.8", 54 "illuminate/support": "11.0.8", 55 "intervention/image": "2.7.2", 56 "io-developer/php-whois": "4.1.10", 57 "league/commonmark": "2.4.2", 58 "league/flysystem": "3.26.0", 59 "league/flysystem-path-prefixing": "3.23.1", 60 "league/flysystem-ziparchive": "3.24.0", 61 "middlewares/client-ip": "2.0.1", 62 "mlocati/ip-lib": "1.18.0", 63 "nesbot/carbon": "3.1.1", 64 "nyholm/psr7": "1.8.1", 65 "nyholm/psr7-server": "1.1.0", 66 "oscarotero/middleland": "1.0.1", 67 "psr/cache": "3.0.0", 68 "psr/http-message": "1.1", 69 "psr/http-server-handler": "1.0.2", 70 "psr/http-server-middleware": "1.0.2", 71 "ramsey/uuid": "4.7.5", 72 "sabre/vobject": "4.5.4", 73 "symfony/cache": "7.0.4", 74 "symfony/console": "7.0.4", 75 "symfony/expression-language": "7.0.3", 76 "symfony/mailer": "7.0.4", 77 "symfony/polyfill-mbstring": "1.29.0", 78 "tecnickcom/tcpdf": "6.7.4" 79 }, 80 "require-dev": { 81 "ext-dom": "*", 82 "ext-libxml": "*", 83 "ext-pdo_sqlite": "*", 84 "ext-sqlite3": "*", 85 "league/flysystem-memory": "3.25.1", 86 "php-coveralls/php-coveralls": "2.7.0", 87 "phpunit/phpunit": "11.0.8" 88 }, 89 "suggest": { 90 "ext-imagick": "Required to generate thumbnail images", 91 "ext-pdo_mysql": "Required to use MySQL for database storage", 92 "ext-pdo_sqlite": "Required to use SQLite for database storage", 93 "ext-pdo_pgsql": "Required to use PostgreSQL for database storage", 94 "ext-pdo_sqlsrv": "Required to use SQL Server for database storage", 95 "ext-zip": "Required to compress downloads and use the upgrade wizard", 96 "ext-zlib": "Required to compress HTTP responses" 97 }, 98 "scripts": { 99 "webtrees:build": [ 100 "rm -Rf webtrees/", 101 "git archive --prefix=webtrees/ HEAD --format=tar | tar -x", 102 "@composer install --no-dev --quiet", 103 "cp -r vendor/ webtrees/vendor/", 104 "php index.php compile-po-files", 105 "for FILE in resources/lang/*/messages.php; do cp $FILE webtrees/$FILE; done", 106 "zip --quiet --recurse-paths --move -9 webtrees-`git describe`.zip webtrees" 107 ], 108 "webtrees:pre-commit-hook": [ 109 "@composer webtrees:phpcs", 110 "@composer webtrees:phpstan", 111 "@composer webtrees:test" 112 ], 113 "webtrees:check": [ 114 "### PHP-CODE-SNIFFER", 115 "@composer webtrees:phpcs", 116 "### PHPSTAN", 117 "@composer webtrees:phpstan", 118 "### PSALM", 119 "@composer webtrees:psalm" 120 ], 121 "webtrees:phpcs": [ 122 "@composer global require squizlabs/php_codesniffer=* --quiet", 123 "~/.composer/vendor/bin/phpcs --colors --extensions=php --standard=PSR12 --exclude=Generic.Files.LineLength index.php app tests", 124 "#~/.composer/vendor/bin/phpcs --colors --extensions=phtml --standard=PSR12 --exclude=Generic.Files.LineLength resources/views", 125 "~/.composer/vendor/bin/phpcs --colors --extensions=css resources/css" 126 ], 127 "webtrees:phpstan": [ 128 "@composer global require --quiet phpstan/phpstan=* phpstan/extension-installer=* phpstan/phpstan-deprecation-rules=* phpstan/phpstan-strict-rules=* phpstan/phpstan-phpunit=*", 129 "@composer install --quiet", 130 "~/.composer/vendor/bin/phpstan analyze --memory-limit=-1", 131 "@composer install --no-dev --quiet" 132 ], 133 "webtrees:phpstan-baseline": [ 134 "@composer global require --quiet phpstan/phpstan=* phpstan/extension-installer=* phpstan/phpstan-deprecation-rules=* phpstan/phpstan-strict-rules=* phpstan/phpstan-phpunit=*", 135 "@composer install --quiet", 136 "~/.composer/vendor/bin/phpstan analyze --memory-limit=-1 --level=max --generate-baseline=phpstan-baseline.php", 137 "sed -i -e 's/\\t/ /' phpstan-baseline.php", 138 "sed -i -e 's/ declare(strict_types = 1)/\\n\\ndeclare(strict_types=1)/' phpstan-baseline.php", 139 "@composer install --no-dev --quiet" 140 ], 141 "webtrees:psalm": [ 142 "@composer global require --quiet vimeo/psalm", 143 "@composer install --quiet", 144 "~/.composer/vendor/bin/psalm --threads=8 --php-version=8.1", 145 "@composer install --no-dev --quiet" 146 ], 147 "webtrees:test": [ 148 "@composer install --quiet", 149 "@php vendor/bin/phpunit", 150 "@composer install --no-dev --quiet" 151 ], 152 "webtrees:coverage": [ 153 "@composer install --dev --quiet", 154 "vendor/bin/phpunit --coverage-html=tests/coverage", 155 "@composer install --no-dev --quiet" 156 ], 157 "webtrees:po": [ 158 "sed -i.bak -e 's/\\(I18N::[^)]*[)]\\)/<?php echo \\1; ?>/g' resources/xml/reports/*.xml", 159 "git grep -I --name-only --fixed-strings -e I18N:: -- '*.php' '*.phtml' '*.xml' | xargs xgettext --package-name=webtrees --package-version=1.0 --output=resources/lang/webtrees.pot --no-wrap --language=PHP --add-comments=I18N --from-code=utf-8 --keyword --keyword=translate:1 --keyword=translateContext:1c,2 --keyword=plural:1,2", 160 "find resources/xml/reports/ -name '*.xml' -exec mv {}.bak {} \\;", 161 "find resources/lang -name '*.po' -exec msgmerge --no-wrap --sort-output --no-fuzzy-matching --quiet --output={} {} resources/lang/webtrees.pot \\;" 162 ], 163 "webtrees:png": [ 164 "find resources/css -name *.png -exec pngquant --ext .png --force --skip-if-larger --speed 1 {} \\;", 165 "find resources/css -name *.png -exec pngcrush -rem allb -brute -reduce {} {} \\;", 166 "find resources/css -name *.png -exec optipng -o7 -zm1-9 {} \\;" 167 ], 168 "ci" : [ 169 "@composer validate", 170 "@composer install --quiet", 171 "@composer global require --quiet icanhazstring/composer-unused=*", 172 "~/.composer/vendor/bin/composer-unused", 173 "@composer global require --quiet maglnet/composer-require-checker=*", 174 "~/.composer/vendor/bin/composer-require-checker check" 175 ] 176 }, 177 "scripts-descriptions": { 178 "webtrees:build": "Create a distribution file (webtrees.zip)", 179 "webtrees:check": "Run various static analysis tools", 180 "webtrees:coverage": "Generate test coverage report", 181 "webtrees:lang": "Compile the language files (messages.php)", 182 "webtrees:po": "Update the language (webtrees.pot, *.po)" 183 } 184} 185