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", 2074d6dc0eSGreg Roach "tests/MockGlobalFunctions.php" 2184e2cf4eSGreg Roach ] 2284e2cf4eSGreg Roach }, 237286a40cSGreg Roach "config": { 247286a40cSGreg Roach "platform": { 25ea27dd66SGreg Roach "php": "7.4" 2622acdb08SGreg Roach }, 27425578caSGreg Roach "sort-packages": true, 28425578caSGreg Roach "process-timeout": 3600 297286a40cSGreg Roach }, 30ed285daaSGreg Roach "require": { 31f0cc62bdSGreg Roach "php": "7.4 - 8.1", 32eaab6746SGreg Roach "ext-ctype": "*", 335f9f5f94SRico Sonntag "ext-curl": "*", 347286a40cSGreg Roach "ext-gd": "*", 357286a40cSGreg Roach "ext-iconv": "*", 365f9f5f94SRico Sonntag "ext-intl": "*", 378ae9e54eSRico Sonntag "ext-json": "*", 387286a40cSGreg Roach "ext-pcre": "*", 397286a40cSGreg Roach "ext-pdo": "*", 407286a40cSGreg Roach "ext-session": "*", 413b3cfeeaSGreg Roach "ext-xml": "*", 425f9f5f94SRico Sonntag "ext-zip": "*", 431f7b3ff5SGreg Roach "aura/router": "3.1.0", 44*97bc5a01SGreg Roach "doctrine/dbal": "3.2.0", 451f7b3ff5SGreg Roach "ezyang/htmlpurifier": "4.13.0", 461f7b3ff5SGreg Roach "fig/http-message-util": "1.1.5", 47d7d5645bSGreg Roach "fisharebest/algorithm": "1.6.0", 481f7b3ff5SGreg Roach "fisharebest/ext-calendar": "2.5.0", 491f7b3ff5SGreg Roach "fisharebest/flysystem-chroot-adapter": "2.0.0", 501f7b3ff5SGreg Roach "fisharebest/localization": "1.15.1", 51*97bc5a01SGreg Roach "guzzlehttp/guzzle": "7.4.1", 52*97bc5a01SGreg Roach "illuminate/container": "8.76.2", 53*97bc5a01SGreg Roach "illuminate/database": "8.76.2", 54*97bc5a01SGreg Roach "illuminate/support": "8.76.2", 55*97bc5a01SGreg Roach "intervention/image": "2.7.1", 56d7d5645bSGreg Roach "io-developer/php-whois": "4.1.3", 5708b2f88aSGreg Roach "league/commonmark": "1.6.0", 58*97bc5a01SGreg Roach "league/flysystem": "2.3.2", 5973c15bedSGreg Roach "league/flysystem-ziparchive": "2.3.1", 601f7b3ff5SGreg Roach "middlewares/client-ip": "2.0.1", 6173c15bedSGreg Roach "mlocati/ip-lib": "1.17.1", 62*97bc5a01SGreg Roach "nesbot/carbon": "2.55.2", 631f7b3ff5SGreg Roach "nyholm/psr7": "1.4.1", 641f7b3ff5SGreg Roach "nyholm/psr7-server": "1.0.2", 651f7b3ff5SGreg Roach "oscarotero/middleland": "1.0.1", 661f7b3ff5SGreg Roach "psr/cache": "1.0.1", 671f7b3ff5SGreg Roach "psr/http-message": "1.0.1", 681f7b3ff5SGreg Roach "psr/http-server-handler": "1.0.1", 691f7b3ff5SGreg Roach "psr/http-server-middleware": "1.0.1", 703c88589eSGreg Roach "ramsey/uuid": "4.2.3", 71*97bc5a01SGreg Roach "sabre/vobject": "4.4.1", 72*97bc5a01SGreg Roach "symfony/cache": "5.4.0", 73*97bc5a01SGreg Roach "symfony/expression-language": "5.4.0", 74*97bc5a01SGreg Roach "symfony/mailer": "5.4.0", 75f74962deSGreg Roach "symfony/polyfill-mbstring": "1.23.1", 76f74962deSGreg Roach "symfony/polyfill-php80": "1.23.1", 771f7b3ff5SGreg Roach "tecnickcom/tcpdf": "6.4.2" 7810a8d14fSGreg Roach }, 79db7d25eeSGreg Roach "require-dev": { 805ee0e1c4SGreg Roach "ext-dom": "*", 81c42d24a9SGreg Roach "ext-pdo_sqlite": "*", 824525f50bSGreg Roach "ext-sqlite3": "*", 83f7cf8a15SGreg Roach "composer/composer": "~2.0", 84f7cf8a15SGreg Roach "league/flysystem-memory": "~2.0", 855cbc95c5SGreg Roach "maximebf/debugbar": "~1.17", 861346bcc6SGreg Roach "php-coveralls/php-coveralls": "~2.4", 87f7cf8a15SGreg Roach "phpunit/phpunit": "~9.5" 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", 94179fae31SGreg Roach "ext-pdo_sqlsvr": "Required to use SQL Server for database storage", 95179fae31SGreg Roach "ext-zlib": "Required to compress HTTP respnses" 96c42d24a9SGreg Roach }, 97db6a3ae9SGreg Roach "scripts": { 983d9f187dSGreg Roach "webtrees:build": [ 99f872a3beSGreg Roach "rm -Rf webtrees/", 100f872a3beSGreg Roach "git archive --prefix=webtrees/ HEAD --format=tar | tar -x", 101b403ceddSGreg Roach "@composer install --no-dev --quiet", 102b403ceddSGreg Roach "cp -r vendor/ webtrees/vendor/", 103006094b9SGreg Roach "@composer webtrees:lang", 104006094b9SGreg Roach "for FILE in resources/lang/*/messages.php; do cp $FILE webtrees/$FILE; done", 105bcfab406SGreg Roach "zip --quiet --recurse-paths --move -9 webtrees.zip webtrees" 106f872a3beSGreg Roach ], 107289701c8SGreg Roach "webtrees:pre-commit-hook": [ 108289701c8SGreg Roach "@composer webtrees:phpcs", 1099b152ff9SGreg Roach "@composer webtrees:phpstan", 110289701c8SGreg Roach "@composer webtrees:test" 111289701c8SGreg Roach ], 1123d9f187dSGreg Roach "webtrees:check": [ 1134686330aSGreg Roach "### PHP-CODE-SNIFFER", 114289701c8SGreg Roach "@composer webtrees:phpcs", 1155781ea1fSGreg Roach "### PHPSTAN", 1169b152ff9SGreg Roach "@composer webtrees:phpstan", 1175781ea1fSGreg Roach "### PSALM", 1183df1e584SGreg Roach "@composer webtrees:psalm" 1195781ea1fSGreg Roach ], 120289701c8SGreg Roach "webtrees:phpcs": [ 12174d6dc0eSGreg Roach "@composer global require squizlabs/php_codesniffer=* --quiet", 12230e63383SGreg Roach "~/.composer/vendor/bin/phpcs --standard=PSR12 --colors --extensions=php --exclude=Generic.Files.LineLength index.php app tests", 123bbae5905SGreg Roach "~/.composer/vendor/bin/phpcs --colors --extensions=css resources/css" 1245781ea1fSGreg Roach ], 125289701c8SGreg Roach "webtrees:phpstan": [ 126289701c8SGreg Roach "@composer global require --quiet phpstan/phpstan=*", 127289701c8SGreg Roach "@composer global require --quiet phpstan/extension-installer=*", 128289701c8SGreg Roach "@composer global require --quiet phpstan/phpstan-deprecation-rules=*", 129289701c8SGreg Roach "@composer global require --quiet phpstan/phpstan-strict-rules=*", 130289701c8SGreg Roach "@composer global require --quiet phpstan/phpstan-phpunit=*", 131dcb3a022SGreg Roach "@composer install --quiet", 13230e63383SGreg Roach "~/.composer/vendor/bin/phpstan analyze --level=max index.php app", 133dcb3a022SGreg Roach "@composer install --no-dev --quiet" 1345781ea1fSGreg Roach ], 13547ab6ec4SGreg Roach "webtrees:phpstan-baseline": [ 13647ab6ec4SGreg Roach "@composer global require --quiet phpstan/phpstan=*", 13747ab6ec4SGreg Roach "@composer global require --quiet phpstan/extension-installer=*", 13847ab6ec4SGreg Roach "@composer global require --quiet phpstan/phpstan-deprecation-rules=*", 13947ab6ec4SGreg Roach "@composer global require --quiet phpstan/phpstan-strict-rules=*", 14047ab6ec4SGreg Roach "@composer global require --quiet phpstan/phpstan-phpunit=*", 14147ab6ec4SGreg Roach "@composer install --quiet", 14247ab6ec4SGreg Roach "~/.composer/vendor/bin/phpstan analyze --level=max --generate-baseline=phpstan-baseline.neon index.php app", 14347ab6ec4SGreg Roach "@composer install --no-dev --quiet" 14447ab6ec4SGreg Roach ], 145289701c8SGreg Roach "webtrees:psalm": [ 146dcb3a022SGreg Roach "@composer global require --quiet vimeo/psalm", 1475781ea1fSGreg Roach "@composer install --quiet", 14861f22e38SGreg Roach "~/.composer/vendor/bin/psalm", 1495781ea1fSGreg Roach "@composer install --no-dev --quiet" 150425578caSGreg Roach ], 151289701c8SGreg Roach "webtrees:test": [ 152289701c8SGreg Roach "@composer install --quiet", 153289701c8SGreg Roach "@php vendor/bin/phpunit", 154289701c8SGreg Roach "@composer install --no-dev --quiet" 155289701c8SGreg Roach ], 15686b91143SGreg Roach "webtrees:coverage": [ 1575781ea1fSGreg Roach "@composer install --dev --quiet", 15886b91143SGreg Roach "vendor/bin/phpunit --coverage-html=tests/coverage", 1595781ea1fSGreg Roach "@composer install --no-dev --quiet" 16086b91143SGreg Roach ], 161006094b9SGreg Roach "webtrees:lang": [ 162006094b9SGreg Roach "Fisharebest\\Webtrees\\Console\\ComposerScripts::languageFiles" 163006094b9SGreg Roach ], 164a192be9bSGreg Roach "webtrees:missing-tests": [ 165a192be9bSGreg Roach "Fisharebest\\Webtrees\\Console\\ComposerScripts::missingTests" 166a192be9bSGreg Roach ], 1673d9f187dSGreg Roach "webtrees:po": [ 168692edf9aSGreg Roach "sed -i.bak -e 's/\\(I18N::[^)]*[)]\\)/<?php echo \\1; ?>/g' resources/xml/reports/*.xml", 169f7fac239SGreg Roach "git grep -I --name-only --fixed-strings -e I18N:: -- '*.php' '*.phtml' '*.xml' | xargs xgettext --package-name=webtrees --package-version=1.0 --msgid-bugs-address=i18n@webtrees.net --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", 170692edf9aSGreg Roach "find resources/xml/reports/ -name '*.xml' -exec mv {}.bak {} \\;", 171362b8464SGreg Roach "find resources/lang -name '*.po' -exec msgmerge --no-wrap --sort-output --no-fuzzy-matching --quiet --output={} {} resources/lang/webtrees.pot \\;" 17297c22350SGreg Roach ], 17397c22350SGreg Roach "webtrees:png": [ 17408362db4SGreg Roach "find resources/css -name *.png -exec pngquant --ext .png --force --skip-if-larger --speed 1 {} \\;", 17508362db4SGreg Roach "find resources/css -name *.png -exec pngcrush -rem allb -brute -reduce {} {} \\;", 17608362db4SGreg Roach "find resources/css -name *.png -exec optipng -o7 -zm1-9 {} \\;" 177db6a3ae9SGreg Roach ] 178db6a3ae9SGreg Roach }, 179cb14bb54SGreg Roach "scripts-descriptions": { 1803d9f187dSGreg Roach "webtrees:build": "Create a distribution file (webtrees.zip)", 1813d9f187dSGreg Roach "webtrees:check": "Run various static analysis tools", 18286b91143SGreg Roach "webtrees:coverage": "Generate test coverage report", 183006094b9SGreg Roach "webtrees:lang": "Compile the language files (messages.php)", 18474d6dc0eSGreg Roach "webtrees:po": "Update the language (webtrees.pot, *.po)" 185ed285daaSGreg Roach } 186ed285daaSGreg Roach} 187