1ed285daaSGreg Roach{ 2a25f0a04SGreg Roach "name": "fisharebest/webtrees", 3ed285daaSGreg Roach "description": "webtrees online genealogy", 474d6dc0eSGreg Roach "keywords": [ 574d6dc0eSGreg Roach "webtrees", 674d6dc0eSGreg Roach "genealogy" 774d6dc0eSGreg Roach ], 831b7ad55SGreg Roach "license": "GPL-3.0-or-later", 9a25f0a04SGreg Roach "autoload": { 100e62c4b8SGreg Roach "psr-4": { 110e62c4b8SGreg Roach "Fisharebest\\Webtrees\\": "app/" 121f3fb95cSGreg Roach }, 131f3fb95cSGreg Roach "files": [ 141f3fb95cSGreg Roach "app/Helpers/functions.php" 151f3fb95cSGreg Roach ] 16a25f0a04SGreg Roach }, 1784e2cf4eSGreg Roach "autoload-dev": { 1884e2cf4eSGreg Roach "classmap": [ 1974d6dc0eSGreg Roach "tests/TestCase.php", 20b66f5d1aSGreg Roach "tests/MockGlobalFunctions.php", 21b66f5d1aSGreg Roach "tests/app/Elements/AbstractElementTestCase.php" 2284e2cf4eSGreg Roach ] 2384e2cf4eSGreg Roach }, 247286a40cSGreg Roach "config": { 257286a40cSGreg Roach "platform": { 263ba7699eSGreg Roach "php": "8.2.0" 2722acdb08SGreg Roach }, 28425578caSGreg Roach "sort-packages": true, 29425578caSGreg Roach "process-timeout": 3600 307286a40cSGreg Roach }, 31ed285daaSGreg Roach "require": { 323ba7699eSGreg Roach "php": "8.2 - 8.4", 33eaab6746SGreg Roach "ext-ctype": "*", 345f9f5f94SRico Sonntag "ext-curl": "*", 357286a40cSGreg Roach "ext-gd": "*", 367286a40cSGreg Roach "ext-iconv": "*", 375f9f5f94SRico Sonntag "ext-intl": "*", 388ae9e54eSRico Sonntag "ext-json": "*", 397b202fa1SRico Sonntag "ext-mbstring": "*", 407286a40cSGreg Roach "ext-pcre": "*", 417286a40cSGreg Roach "ext-pdo": "*", 427286a40cSGreg Roach "ext-session": "*", 433b3cfeeaSGreg Roach "ext-xml": "*", 44bdbbf7daSGreg Roach "aura/router": "3.3.0", 4598e67f97SGreg Roach "ezyang/htmlpurifier": "4.17.0", 461f7b3ff5SGreg Roach "fig/http-message-util": "1.1.5", 47d7d5645bSGreg Roach "fisharebest/algorithm": "1.6.0", 4807f1e892SGreg Roach "fisharebest/ext-calendar": "2.6.0", 495b8771b0SGreg Roach "fisharebest/localization": "1.17.0", 50b54f46d4SGreg Roach "guzzlehttp/guzzle": "7.9.2", 51b54f46d4SGreg Roach "illuminate/database": "11.21.0", 52b54f46d4SGreg Roach "illuminate/support": "11.21.0", 53b54f46d4SGreg Roach "intervention/image": "3.8.0", 548b9834a2SGreg Roach "io-developer/php-whois": "4.1.10", 55b54f46d4SGreg Roach "league/commonmark": "2.5.3", 56a6cd2948SGreg Roach "league/flysystem": "3.28.0", 57a6cd2948SGreg Roach "league/flysystem-path-prefixing": "3.28.0", 58a6cd2948SGreg Roach "league/flysystem-ziparchive": "3.28.0", 591f7b3ff5SGreg Roach "middlewares/client-ip": "2.0.1", 60148ebf9dSGreg Roach "mlocati/ip-lib": "1.18.0", 61b54f46d4SGreg Roach "nesbot/carbon": "3.8.0", 6298e67f97SGreg Roach "nyholm/psr7": "1.8.1", 6398e67f97SGreg Roach "nyholm/psr7-server": "1.1.0", 641f7b3ff5SGreg Roach "oscarotero/middleland": "1.0.1", 659168a53cSGreg Roach "psr/cache": "3.0.0", 6647ba85feSGreg Roach "psr/http-message": "1.1", 67017e6011SGreg Roach "psr/http-server-handler": "1.0.2", 68017e6011SGreg Roach "psr/http-server-middleware": "1.0.2", 69a6cd2948SGreg Roach "ramsey/uuid": "4.7.6", 70889e3e53SGreg Roach "sabre/vobject": "4.5.5", 7164182e06SGreg Roach "symfony/cache": "7.1.4", 7264182e06SGreg Roach "symfony/console": "7.1.4", 7364182e06SGreg Roach "symfony/expression-language": "7.1.4", 74889e3e53SGreg Roach "symfony/mailer": "7.1.2", 75889e3e53SGreg Roach "symfony/polyfill-mbstring": "1.30.0", 765c7ef78cSGreg Roach "tecnickcom/tcpdf": "6.7.5" 7710a8d14fSGreg Roach }, 78db7d25eeSGreg Roach "require-dev": { 795ee0e1c4SGreg Roach "ext-dom": "*", 809f37cd25SGreg Roach "ext-libxml": "*", 81c42d24a9SGreg Roach "ext-pdo_sqlite": "*", 824525f50bSGreg Roach "ext-sqlite3": "*", 83a6cd2948SGreg Roach "league/flysystem-memory": "3.28.0", 8498e67f97SGreg Roach "php-coveralls/php-coveralls": "2.7.0", 8564182e06SGreg Roach "phpunit/phpunit": "11.3.2" 86db7d25eeSGreg Roach }, 87c42d24a9SGreg Roach "suggest": { 886577bfc3SGreg Roach "ext-imagick": "Required to generate thumbnail images", 89c42d24a9SGreg Roach "ext-pdo_mysql": "Required to use MySQL for database storage", 90c42d24a9SGreg Roach "ext-pdo_sqlite": "Required to use SQLite for database storage", 91764facb7SGreg Roach "ext-pdo_pgsql": "Required to use PostgreSQL for database storage", 927a468185SGreg Roach "ext-pdo_sqlsrv": "Required to use SQL Server for database storage", 937a194a1dSGreg Roach "ext-zip": "Required to compress downloads and use the upgrade wizard", 947b202fa1SRico Sonntag "ext-zlib": "Required to compress HTTP responses" 95c42d24a9SGreg Roach }, 96db6a3ae9SGreg Roach "scripts": { 973d9f187dSGreg Roach "webtrees:build": [ 98f872a3beSGreg Roach "rm -Rf webtrees/", 99f872a3beSGreg Roach "git archive --prefix=webtrees/ HEAD --format=tar | tar -x", 100b403ceddSGreg Roach "@composer install --no-dev --quiet", 101b403ceddSGreg Roach "cp -r vendor/ webtrees/vendor/", 102b9a4a6c6SGreg Roach "php index.php compile-po-files", 103006094b9SGreg Roach "for FILE in resources/lang/*/messages.php; do cp $FILE webtrees/$FILE; done", 104538cf0f4SGreg Roach "zip --quiet --recurse-paths --move -9 webtrees-`git describe`.zip webtrees" 105f872a3beSGreg Roach ], 106289701c8SGreg Roach "webtrees:pre-commit-hook": [ 107289701c8SGreg Roach "@composer webtrees:phpcs", 1089b152ff9SGreg Roach "@composer webtrees:phpstan", 109289701c8SGreg Roach "@composer webtrees:test" 110289701c8SGreg Roach ], 1113d9f187dSGreg Roach "webtrees:check": [ 1124686330aSGreg Roach "### PHP-CODE-SNIFFER", 113289701c8SGreg Roach "@composer webtrees:phpcs", 1145781ea1fSGreg Roach "### PHPSTAN", 1159b152ff9SGreg Roach "@composer webtrees:phpstan", 1165781ea1fSGreg Roach "### PSALM", 1173df1e584SGreg Roach "@composer webtrees:psalm" 1185781ea1fSGreg Roach ], 119289701c8SGreg Roach "webtrees:phpcs": [ 1206219ea4cSGreg Roach "@composer global require squizlabs/php_codesniffer=* --quiet", 121bd29d468SGreg Roach "~/.composer/vendor/bin/phpcs --colors --extensions=php --standard=PSR12 --exclude=Generic.Files.LineLength index.php app tests", 122a2b3008fSGreg Roach "#~/.composer/vendor/bin/phpcs --colors --extensions=phtml --standard=PSR12 --exclude=Generic.Files.LineLength resources/views", 123bbae5905SGreg Roach "~/.composer/vendor/bin/phpcs --colors --extensions=css resources/css" 1245781ea1fSGreg Roach ], 125289701c8SGreg Roach "webtrees:phpstan": [ 1260acf1b4bSGreg Roach "@composer global require --quiet phpstan/phpstan=* phpstan/extension-installer=* phpstan/phpstan-deprecation-rules=* phpstan/phpstan-strict-rules=* phpstan/phpstan-phpunit=*", 127dcb3a022SGreg Roach "@composer install --quiet", 128*73f6d2b5SGreg Roach "~/.composer/vendor/bin/phpstan analyze -v --memory-limit=-1", 129dcb3a022SGreg Roach "@composer install --no-dev --quiet" 1305781ea1fSGreg Roach ], 13147ab6ec4SGreg Roach "webtrees:phpstan-baseline": [ 1320acf1b4bSGreg Roach "@composer global require --quiet phpstan/phpstan=* phpstan/extension-installer=* phpstan/phpstan-deprecation-rules=* phpstan/phpstan-strict-rules=* phpstan/phpstan-phpunit=*", 13347ab6ec4SGreg Roach "@composer install --quiet", 134*73f6d2b5SGreg Roach "~/.composer/vendor/bin/phpstan analyze --memory-limit=-1 --generate-baseline=phpstan-baseline.neon", 13547ab6ec4SGreg Roach "@composer install --no-dev --quiet" 13647ab6ec4SGreg Roach ], 137289701c8SGreg Roach "webtrees:psalm": [ 138dcb3a022SGreg Roach "@composer global require --quiet vimeo/psalm", 1395781ea1fSGreg Roach "@composer install --quiet", 1401c6adce8SGreg Roach "~/.composer/vendor/bin/psalm --threads=8 --php-version=8.1", 1415781ea1fSGreg Roach "@composer install --no-dev --quiet" 142425578caSGreg Roach ], 143289701c8SGreg Roach "webtrees:test": [ 144289701c8SGreg Roach "@composer install --quiet", 145289701c8SGreg Roach "@php vendor/bin/phpunit", 146289701c8SGreg Roach "@composer install --no-dev --quiet" 147289701c8SGreg Roach ], 14886b91143SGreg Roach "webtrees:coverage": [ 1495781ea1fSGreg Roach "@composer install --dev --quiet", 15086b91143SGreg Roach "vendor/bin/phpunit --coverage-html=tests/coverage", 1515781ea1fSGreg Roach "@composer install --no-dev --quiet" 15286b91143SGreg Roach ], 1533d9f187dSGreg Roach "webtrees:po": [ 154692edf9aSGreg Roach "sed -i.bak -e 's/\\(I18N::[^)]*[)]\\)/<?php echo \\1; ?>/g' resources/xml/reports/*.xml", 1554072f74fSGreg Roach "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", 156692edf9aSGreg Roach "find resources/xml/reports/ -name '*.xml' -exec mv {}.bak {} \\;", 157362b8464SGreg Roach "find resources/lang -name '*.po' -exec msgmerge --no-wrap --sort-output --no-fuzzy-matching --quiet --output={} {} resources/lang/webtrees.pot \\;" 15897c22350SGreg Roach ], 15997c22350SGreg Roach "webtrees:png": [ 16008362db4SGreg Roach "find resources/css -name *.png -exec pngquant --ext .png --force --skip-if-larger --speed 1 {} \\;", 16108362db4SGreg Roach "find resources/css -name *.png -exec pngcrush -rem allb -brute -reduce {} {} \\;", 16208362db4SGreg Roach "find resources/css -name *.png -exec optipng -o7 -zm1-9 {} \\;" 163598d9504SGreg Roach ], 164598d9504SGreg Roach "ci" : [ 165598d9504SGreg Roach "@composer validate", 166598d9504SGreg Roach "@composer install --quiet", 1675461de18SGreg Roach "@composer webtrees:test", 1685461de18SGreg Roach "@composer webtrees:phpcs", 1695461de18SGreg Roach "@composer webtrees:phpstan" 170db6a3ae9SGreg Roach ] 171db6a3ae9SGreg Roach }, 172cb14bb54SGreg Roach "scripts-descriptions": { 1733d9f187dSGreg Roach "webtrees:build": "Create a distribution file (webtrees.zip)", 1743d9f187dSGreg Roach "webtrees:check": "Run various static analysis tools", 17586b91143SGreg Roach "webtrees:coverage": "Generate test coverage report", 176006094b9SGreg Roach "webtrees:lang": "Compile the language files (messages.php)", 17774d6dc0eSGreg Roach "webtrees:po": "Update the language (webtrees.pot, *.po)" 178ed285daaSGreg Roach } 179ed285daaSGreg Roach} 180