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": "*", 347b202fa1SRico Sonntag "ext-exif": "*", 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": "*", 447b202fa1SRico Sonntag "ext-simplexml": "*", 453b3cfeeaSGreg Roach "ext-xml": "*", 465f9f5f94SRico Sonntag "ext-zip": "*", 470f98129dSGreg Roach "aura/router": "4.x-dev", 48*6191ab59SGreg Roach "doctrine/dbal": "3.3.2", 49148ebf9dSGreg Roach "ezyang/htmlpurifier": "4.14.0", 501f7b3ff5SGreg Roach "fig/http-message-util": "1.1.5", 51d7d5645bSGreg Roach "fisharebest/algorithm": "1.6.0", 521f7b3ff5SGreg Roach "fisharebest/ext-calendar": "2.5.0", 531f7b3ff5SGreg Roach "fisharebest/flysystem-chroot-adapter": "2.0.0", 541f7b3ff5SGreg Roach "fisharebest/localization": "1.15.1", 5597bc5a01SGreg Roach "guzzlehttp/guzzle": "7.4.1", 56324121fbSGreg Roach "illuminate/container": "8.82.0", 57324121fbSGreg Roach "illuminate/database": "8.82.0", 58324121fbSGreg Roach "illuminate/support": "8.82.0", 5997bc5a01SGreg Roach "intervention/image": "2.7.1", 60148ebf9dSGreg Roach "io-developer/php-whois": "4.1.6", 616f595250SGreg Roach "league/commonmark": "2.2.1", 626467f700SGreg Roach "league/flysystem": "2.4.2", 6373c15bedSGreg Roach "league/flysystem-ziparchive": "2.3.1", 641f7b3ff5SGreg Roach "middlewares/client-ip": "2.0.1", 65148ebf9dSGreg Roach "mlocati/ip-lib": "1.18.0", 66148ebf9dSGreg Roach "nesbot/carbon": "2.56.0", 67*6191ab59SGreg Roach "nyholm/psr7": "1.5.0", 681f7b3ff5SGreg Roach "nyholm/psr7-server": "1.0.2", 691f7b3ff5SGreg Roach "oscarotero/middleland": "1.0.1", 701f7b3ff5SGreg Roach "psr/cache": "1.0.1", 711f7b3ff5SGreg Roach "psr/http-message": "1.0.1", 721f7b3ff5SGreg Roach "psr/http-server-handler": "1.0.1", 731f7b3ff5SGreg Roach "psr/http-server-middleware": "1.0.1", 743c88589eSGreg Roach "ramsey/uuid": "4.2.3", 7597bc5a01SGreg Roach "sabre/vobject": "4.4.1", 766467f700SGreg Roach "symfony/cache": "5.4.3", 776467f700SGreg Roach "symfony/expression-language": "5.4.3", 786467f700SGreg Roach "symfony/mailer": "5.4.3", 79148ebf9dSGreg Roach "symfony/polyfill-mbstring": "1.24.0", 80148ebf9dSGreg Roach "symfony/polyfill-php80": "1.24.0", 81148ebf9dSGreg Roach "tecnickcom/tcpdf": "6.4.4" 8210a8d14fSGreg Roach }, 83db7d25eeSGreg Roach "require-dev": { 845ee0e1c4SGreg Roach "ext-dom": "*", 85c42d24a9SGreg Roach "ext-pdo_sqlite": "*", 864525f50bSGreg Roach "ext-sqlite3": "*", 87f7cf8a15SGreg Roach "composer/composer": "~2.0", 88f7cf8a15SGreg Roach "league/flysystem-memory": "~2.0", 891346bcc6SGreg Roach "php-coveralls/php-coveralls": "~2.4", 90f7cf8a15SGreg Roach "phpunit/phpunit": "~9.5" 91db7d25eeSGreg Roach }, 92c42d24a9SGreg Roach "suggest": { 936577bfc3SGreg Roach "ext-imagick": "Required to generate thumbnail images", 94c42d24a9SGreg Roach "ext-pdo_mysql": "Required to use MySQL for database storage", 95c42d24a9SGreg Roach "ext-pdo_sqlite": "Required to use SQLite for database storage", 96764facb7SGreg Roach "ext-pdo_pgsql": "Required to use PostgreSQL for database storage", 97179fae31SGreg Roach "ext-pdo_sqlsvr": "Required to use SQL Server for database storage", 987b202fa1SRico Sonntag "ext-zlib": "Required to compress HTTP responses" 99c42d24a9SGreg Roach }, 100db6a3ae9SGreg Roach "scripts": { 1013d9f187dSGreg Roach "webtrees:build": [ 102f872a3beSGreg Roach "rm -Rf webtrees/", 103f872a3beSGreg Roach "git archive --prefix=webtrees/ HEAD --format=tar | tar -x", 104b403ceddSGreg Roach "@composer install --no-dev --quiet", 105b403ceddSGreg Roach "cp -r vendor/ webtrees/vendor/", 106006094b9SGreg Roach "@composer webtrees:lang", 107006094b9SGreg Roach "for FILE in resources/lang/*/messages.php; do cp $FILE webtrees/$FILE; done", 108bcfab406SGreg Roach "zip --quiet --recurse-paths --move -9 webtrees.zip webtrees" 109f872a3beSGreg Roach ], 110289701c8SGreg Roach "webtrees:pre-commit-hook": [ 111289701c8SGreg Roach "@composer webtrees:phpcs", 1129b152ff9SGreg Roach "@composer webtrees:phpstan", 113289701c8SGreg Roach "@composer webtrees:test" 114289701c8SGreg Roach ], 1153d9f187dSGreg Roach "webtrees:check": [ 1164686330aSGreg Roach "### PHP-CODE-SNIFFER", 117289701c8SGreg Roach "@composer webtrees:phpcs", 1185781ea1fSGreg Roach "### PHPSTAN", 1199b152ff9SGreg Roach "@composer webtrees:phpstan", 1205781ea1fSGreg Roach "### PSALM", 1213df1e584SGreg Roach "@composer webtrees:psalm" 1225781ea1fSGreg Roach ], 123289701c8SGreg Roach "webtrees:phpcs": [ 12474d6dc0eSGreg Roach "@composer global require squizlabs/php_codesniffer=* --quiet", 12530e63383SGreg Roach "~/.composer/vendor/bin/phpcs --standard=PSR12 --colors --extensions=php --exclude=Generic.Files.LineLength index.php app tests", 126bbae5905SGreg Roach "~/.composer/vendor/bin/phpcs --colors --extensions=css resources/css" 1275781ea1fSGreg Roach ], 128289701c8SGreg Roach "webtrees:phpstan": [ 129289701c8SGreg Roach "@composer global require --quiet phpstan/phpstan=*", 130289701c8SGreg Roach "@composer global require --quiet phpstan/extension-installer=*", 131289701c8SGreg Roach "@composer global require --quiet phpstan/phpstan-deprecation-rules=*", 132289701c8SGreg Roach "@composer global require --quiet phpstan/phpstan-strict-rules=*", 133289701c8SGreg Roach "@composer global require --quiet phpstan/phpstan-phpunit=*", 134dcb3a022SGreg Roach "@composer install --quiet", 13530e63383SGreg Roach "~/.composer/vendor/bin/phpstan analyze --level=max index.php app", 136dcb3a022SGreg Roach "@composer install --no-dev --quiet" 1375781ea1fSGreg Roach ], 13847ab6ec4SGreg Roach "webtrees:phpstan-baseline": [ 13947ab6ec4SGreg Roach "@composer global require --quiet phpstan/phpstan=*", 14047ab6ec4SGreg Roach "@composer global require --quiet phpstan/extension-installer=*", 14147ab6ec4SGreg Roach "@composer global require --quiet phpstan/phpstan-deprecation-rules=*", 14247ab6ec4SGreg Roach "@composer global require --quiet phpstan/phpstan-strict-rules=*", 14347ab6ec4SGreg Roach "@composer global require --quiet phpstan/phpstan-phpunit=*", 14447ab6ec4SGreg Roach "@composer install --quiet", 14547ab6ec4SGreg Roach "~/.composer/vendor/bin/phpstan analyze --level=max --generate-baseline=phpstan-baseline.neon index.php app", 14647ab6ec4SGreg Roach "@composer install --no-dev --quiet" 14747ab6ec4SGreg Roach ], 148289701c8SGreg Roach "webtrees:psalm": [ 149dcb3a022SGreg Roach "@composer global require --quiet vimeo/psalm", 1505781ea1fSGreg Roach "@composer install --quiet", 15161f22e38SGreg Roach "~/.composer/vendor/bin/psalm", 1525781ea1fSGreg Roach "@composer install --no-dev --quiet" 153425578caSGreg Roach ], 154289701c8SGreg Roach "webtrees:test": [ 155289701c8SGreg Roach "@composer install --quiet", 156289701c8SGreg Roach "@php vendor/bin/phpunit", 157289701c8SGreg Roach "@composer install --no-dev --quiet" 158289701c8SGreg Roach ], 15986b91143SGreg Roach "webtrees:coverage": [ 1605781ea1fSGreg Roach "@composer install --dev --quiet", 16186b91143SGreg Roach "vendor/bin/phpunit --coverage-html=tests/coverage", 1625781ea1fSGreg Roach "@composer install --no-dev --quiet" 16386b91143SGreg Roach ], 164006094b9SGreg Roach "webtrees:lang": [ 165006094b9SGreg Roach "Fisharebest\\Webtrees\\Console\\ComposerScripts::languageFiles" 166006094b9SGreg Roach ], 167a192be9bSGreg Roach "webtrees:missing-tests": [ 168a192be9bSGreg Roach "Fisharebest\\Webtrees\\Console\\ComposerScripts::missingTests" 169a192be9bSGreg Roach ], 1703d9f187dSGreg Roach "webtrees:po": [ 171692edf9aSGreg Roach "sed -i.bak -e 's/\\(I18N::[^)]*[)]\\)/<?php echo \\1; ?>/g' resources/xml/reports/*.xml", 172f7fac239SGreg 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", 173692edf9aSGreg Roach "find resources/xml/reports/ -name '*.xml' -exec mv {}.bak {} \\;", 174362b8464SGreg Roach "find resources/lang -name '*.po' -exec msgmerge --no-wrap --sort-output --no-fuzzy-matching --quiet --output={} {} resources/lang/webtrees.pot \\;" 17597c22350SGreg Roach ], 17697c22350SGreg Roach "webtrees:png": [ 17708362db4SGreg Roach "find resources/css -name *.png -exec pngquant --ext .png --force --skip-if-larger --speed 1 {} \\;", 17808362db4SGreg Roach "find resources/css -name *.png -exec pngcrush -rem allb -brute -reduce {} {} \\;", 17908362db4SGreg Roach "find resources/css -name *.png -exec optipng -o7 -zm1-9 {} \\;" 180db6a3ae9SGreg Roach ] 181db6a3ae9SGreg Roach }, 182cb14bb54SGreg Roach "scripts-descriptions": { 1833d9f187dSGreg Roach "webtrees:build": "Create a distribution file (webtrees.zip)", 1843d9f187dSGreg Roach "webtrees:check": "Run various static analysis tools", 18586b91143SGreg Roach "webtrees:coverage": "Generate test coverage report", 186006094b9SGreg Roach "webtrees:lang": "Compile the language files (messages.php)", 18774d6dc0eSGreg Roach "webtrees:po": "Update the language (webtrees.pot, *.po)" 188ed285daaSGreg Roach } 189ed285daaSGreg Roach} 190