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": { 26f44cff08SGreg Roach "php": "8.1.0" 2722acdb08SGreg Roach }, 28425578caSGreg Roach "sort-packages": true, 29425578caSGreg Roach "process-timeout": 3600 307286a40cSGreg Roach }, 31ed285daaSGreg Roach "require": { 3247fbabfaSGreg Roach "php": "8.1 - 8.3", 33eaab6746SGreg Roach "ext-ctype": "*", 345f9f5f94SRico Sonntag "ext-curl": "*", 357b202fa1SRico Sonntag "ext-fileinfo": "*", 367286a40cSGreg Roach "ext-gd": "*", 377286a40cSGreg Roach "ext-iconv": "*", 385f9f5f94SRico Sonntag "ext-intl": "*", 398ae9e54eSRico Sonntag "ext-json": "*", 407b202fa1SRico Sonntag "ext-mbstring": "*", 417286a40cSGreg Roach "ext-pcre": "*", 427286a40cSGreg Roach "ext-pdo": "*", 437286a40cSGreg Roach "ext-session": "*", 443b3cfeeaSGreg Roach "ext-xml": "*", 45bdbbf7daSGreg Roach "aura/router": "3.3.0", 4698e67f97SGreg Roach "doctrine/dbal": "3.7.2", 4798e67f97SGreg Roach "ezyang/htmlpurifier": "4.17.0", 481f7b3ff5SGreg Roach "fig/http-message-util": "1.1.5", 49d7d5645bSGreg Roach "fisharebest/algorithm": "1.6.0", 5007f1e892SGreg Roach "fisharebest/ext-calendar": "2.6.0", 515b8771b0SGreg Roach "fisharebest/localization": "1.17.0", 52f7faea61SGreg Roach "guzzlehttp/guzzle": "7.8.0", 5398e67f97SGreg Roach "illuminate/database": "10.33.0", 5498e67f97SGreg Roach "illuminate/support": "10.33.0", 55e5a82967SGreg Roach "intervention/image": "2.7.2", 568b9834a2SGreg Roach "io-developer/php-whois": "4.1.10", 570a05ebb4SGreg Roach "league/commonmark": "2.4.1", 5898e67f97SGreg Roach "league/flysystem": "3.21.0", 590a05ebb4SGreg Roach "league/flysystem-path-prefixing": "3.16.0", 6098e67f97SGreg Roach "league/flysystem-ziparchive": "3.21.0", 611f7b3ff5SGreg Roach "middlewares/client-ip": "2.0.1", 62148ebf9dSGreg Roach "mlocati/ip-lib": "1.18.0", 6318bfb4c8SGreg Roach "nesbot/carbon": "2.71.0", 6498e67f97SGreg Roach "nyholm/psr7": "1.8.1", 6598e67f97SGreg Roach "nyholm/psr7-server": "1.1.0", 661f7b3ff5SGreg Roach "oscarotero/middleland": "1.0.1", 679168a53cSGreg Roach "psr/cache": "3.0.0", 6847ba85feSGreg Roach "psr/http-message": "1.1", 69017e6011SGreg Roach "psr/http-server-handler": "1.0.2", 70017e6011SGreg Roach "psr/http-server-middleware": "1.0.2", 7198e67f97SGreg Roach "ramsey/uuid": "4.7.5", 7298e67f97SGreg Roach "sabre/vobject": "4.5.4", 7398e67f97SGreg Roach "symfony/cache": "6.3.8", 7442981a1bSGreg Roach "symfony/expression-language": "6.3.0", 7518bfb4c8SGreg Roach "symfony/mailer": "6.3.5", 76f7faea61SGreg Roach "symfony/polyfill-mbstring": "1.28.0", 770a05ebb4SGreg Roach "tecnickcom/tcpdf": "6.6.5" 7810a8d14fSGreg Roach }, 79db7d25eeSGreg Roach "require-dev": { 805ee0e1c4SGreg Roach "ext-dom": "*", 819f37cd25SGreg Roach "ext-libxml": "*", 82c42d24a9SGreg Roach "ext-pdo_sqlite": "*", 834525f50bSGreg Roach "ext-sqlite3": "*", 8459fa92c2SGreg Roach "composer/composer": "2.6.5", 8598e67f97SGreg Roach "league/flysystem-memory": "3.19.0", 8698e67f97SGreg Roach "php-coveralls/php-coveralls": "2.7.0", 8759fa92c2SGreg Roach "phpunit/phpunit": "10.4.2" 88db7d25eeSGreg Roach }, 89c42d24a9SGreg Roach "suggest": { 906577bfc3SGreg Roach "ext-imagick": "Required to generate thumbnail images", 91c42d24a9SGreg Roach "ext-pdo_mysql": "Required to use MySQL for database storage", 92c42d24a9SGreg Roach "ext-pdo_sqlite": "Required to use SQLite for database storage", 93764facb7SGreg Roach "ext-pdo_pgsql": "Required to use PostgreSQL for database storage", 947a468185SGreg Roach "ext-pdo_sqlsrv": "Required to use SQL Server for database storage", 957a194a1dSGreg Roach "ext-zip": "Required to compress downloads and use the upgrade wizard", 967b202fa1SRico Sonntag "ext-zlib": "Required to compress HTTP responses" 97c42d24a9SGreg Roach }, 98db6a3ae9SGreg Roach "scripts": { 993d9f187dSGreg Roach "webtrees:build": [ 100f872a3beSGreg Roach "rm -Rf webtrees/", 101f872a3beSGreg Roach "git archive --prefix=webtrees/ HEAD --format=tar | tar -x", 102b403ceddSGreg Roach "@composer install --no-dev --quiet", 103b403ceddSGreg Roach "cp -r vendor/ webtrees/vendor/", 104006094b9SGreg Roach "@composer webtrees:lang", 105006094b9SGreg Roach "for FILE in resources/lang/*/messages.php; do cp $FILE webtrees/$FILE; done", 106538cf0f4SGreg Roach "zip --quiet --recurse-paths --move -9 webtrees-`git describe`.zip webtrees" 107f872a3beSGreg Roach ], 108289701c8SGreg Roach "webtrees:pre-commit-hook": [ 109289701c8SGreg Roach "@composer webtrees:phpcs", 1109b152ff9SGreg Roach "@composer webtrees:phpstan", 111289701c8SGreg Roach "@composer webtrees:test" 112289701c8SGreg Roach ], 1133d9f187dSGreg Roach "webtrees:check": [ 1144686330aSGreg Roach "### PHP-CODE-SNIFFER", 115289701c8SGreg Roach "@composer webtrees:phpcs", 1165781ea1fSGreg Roach "### PHPSTAN", 1179b152ff9SGreg Roach "@composer webtrees:phpstan", 1185781ea1fSGreg Roach "### PSALM", 1193df1e584SGreg Roach "@composer webtrees:psalm" 1205781ea1fSGreg Roach ], 121289701c8SGreg Roach "webtrees:phpcs": [ 122*6219ea4cSGreg Roach "@composer global require squizlabs/php_codesniffer=* --quiet", 123bd29d468SGreg Roach "~/.composer/vendor/bin/phpcs --colors --extensions=php --standard=PSR12 --exclude=Generic.Files.LineLength index.php app tests", 124a2b3008fSGreg Roach "#~/.composer/vendor/bin/phpcs --colors --extensions=phtml --standard=PSR12 --exclude=Generic.Files.LineLength resources/views", 125bbae5905SGreg Roach "~/.composer/vendor/bin/phpcs --colors --extensions=css resources/css" 1265781ea1fSGreg Roach ], 127289701c8SGreg Roach "webtrees:phpstan": [ 1280acf1b4bSGreg Roach "@composer global require --quiet phpstan/phpstan=* phpstan/extension-installer=* phpstan/phpstan-deprecation-rules=* phpstan/phpstan-strict-rules=* phpstan/phpstan-phpunit=*", 129dcb3a022SGreg Roach "@composer install --quiet", 1300acf1b4bSGreg Roach "~/.composer/vendor/bin/phpstan analyze --memory-limit=-1", 131dcb3a022SGreg Roach "@composer install --no-dev --quiet" 1325781ea1fSGreg Roach ], 13347ab6ec4SGreg Roach "webtrees:phpstan-baseline": [ 1340acf1b4bSGreg Roach "@composer global require --quiet phpstan/phpstan=* phpstan/extension-installer=* phpstan/phpstan-deprecation-rules=* phpstan/phpstan-strict-rules=* phpstan/phpstan-phpunit=*", 13547ab6ec4SGreg Roach "@composer install --quiet", 136bdbbf7daSGreg Roach "~/.composer/vendor/bin/phpstan analyze --level=max --generate-baseline=phpstan-baseline.php", 1378b08d6b3SGreg Roach "sed -i -e 's/\\t/ /' phpstan-baseline.php", 1388b08d6b3SGreg Roach "sed -i -e 's/ declare(strict_types = 1)/\\n\\ndeclare(strict_types=1)/' phpstan-baseline.php", 13947ab6ec4SGreg Roach "@composer install --no-dev --quiet" 14047ab6ec4SGreg Roach ], 141289701c8SGreg Roach "webtrees:psalm": [ 142dcb3a022SGreg Roach "@composer global require --quiet vimeo/psalm", 1435781ea1fSGreg Roach "@composer install --quiet", 1441c6adce8SGreg Roach "~/.composer/vendor/bin/psalm --threads=8 --php-version=8.1", 1455781ea1fSGreg Roach "@composer install --no-dev --quiet" 146425578caSGreg Roach ], 147289701c8SGreg Roach "webtrees:test": [ 148289701c8SGreg Roach "@composer install --quiet", 149289701c8SGreg Roach "@php vendor/bin/phpunit", 150289701c8SGreg Roach "@composer install --no-dev --quiet" 151289701c8SGreg Roach ], 15286b91143SGreg Roach "webtrees:coverage": [ 1535781ea1fSGreg Roach "@composer install --dev --quiet", 15486b91143SGreg Roach "vendor/bin/phpunit --coverage-html=tests/coverage", 1555781ea1fSGreg Roach "@composer install --no-dev --quiet" 15686b91143SGreg Roach ], 157006094b9SGreg Roach "webtrees:lang": [ 158006094b9SGreg Roach "Fisharebest\\Webtrees\\Console\\ComposerScripts::languageFiles" 159006094b9SGreg Roach ], 1603d9f187dSGreg Roach "webtrees:po": [ 161692edf9aSGreg Roach "sed -i.bak -e 's/\\(I18N::[^)]*[)]\\)/<?php echo \\1; ?>/g' resources/xml/reports/*.xml", 1624072f74fSGreg 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", 163692edf9aSGreg Roach "find resources/xml/reports/ -name '*.xml' -exec mv {}.bak {} \\;", 164362b8464SGreg Roach "find resources/lang -name '*.po' -exec msgmerge --no-wrap --sort-output --no-fuzzy-matching --quiet --output={} {} resources/lang/webtrees.pot \\;" 16597c22350SGreg Roach ], 16697c22350SGreg Roach "webtrees:png": [ 16708362db4SGreg Roach "find resources/css -name *.png -exec pngquant --ext .png --force --skip-if-larger --speed 1 {} \\;", 16808362db4SGreg Roach "find resources/css -name *.png -exec pngcrush -rem allb -brute -reduce {} {} \\;", 16908362db4SGreg Roach "find resources/css -name *.png -exec optipng -o7 -zm1-9 {} \\;" 170598d9504SGreg Roach ], 171598d9504SGreg Roach "ci" : [ 172598d9504SGreg Roach "@composer validate", 173598d9504SGreg Roach "@composer install --quiet", 174598d9504SGreg Roach "@composer global require --quiet icanhazstring/composer-unused=*", 175598d9504SGreg Roach "~/.composer/vendor/bin/composer-unused", 176598d9504SGreg Roach "@composer global require --quiet maglnet/composer-require-checker=*", 177598d9504SGreg Roach "~/.composer/vendor/bin/composer-require-checker check" 178db6a3ae9SGreg Roach ] 179db6a3ae9SGreg Roach }, 180cb14bb54SGreg Roach "scripts-descriptions": { 1813d9f187dSGreg Roach "webtrees:build": "Create a distribution file (webtrees.zip)", 1823d9f187dSGreg Roach "webtrees:check": "Run various static analysis tools", 18386b91143SGreg Roach "webtrees:coverage": "Generate test coverage report", 184006094b9SGreg Roach "webtrees:lang": "Compile the language files (messages.php)", 18574d6dc0eSGreg Roach "webtrees:po": "Update the language (webtrees.pot, *.po)" 186ed285daaSGreg Roach } 187ed285daaSGreg Roach} 188