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": [ 19915db8c4SGreg Roach "modules_v4/", 2074d6dc0eSGreg Roach "tests/TestCase.php", 2174d6dc0eSGreg Roach "tests/MockGlobalFunctions.php" 2284e2cf4eSGreg Roach ] 2384e2cf4eSGreg Roach }, 247286a40cSGreg Roach "config": { 257286a40cSGreg Roach "platform": { 264459dc9aSGreg Roach "php": "7.1.8" 2722acdb08SGreg Roach }, 28425578caSGreg Roach "sort-packages": true, 29425578caSGreg Roach "process-timeout": 3600 307286a40cSGreg Roach }, 31ed285daaSGreg Roach "require": { 325f9f5f94SRico Sonntag "ext-curl": "*", 337286a40cSGreg Roach "ext-gd": "*", 347286a40cSGreg Roach "ext-iconv": "*", 355f9f5f94SRico Sonntag "ext-intl": "*", 368ae9e54eSRico Sonntag "ext-json": "*", 377286a40cSGreg Roach "ext-pcre": "*", 387286a40cSGreg Roach "ext-pdo": "*", 397286a40cSGreg Roach "ext-session": "*", 407286a40cSGreg Roach "ext-simplexml": "*", 413b3cfeeaSGreg Roach "ext-xml": "*", 425f9f5f94SRico Sonntag "ext-zip": "*", 43ee4364daSGreg Roach "aura/router": "~3.1", 44362be83aSGreg Roach "doctrine/dbal": "~2.9", 458e8a9008SGreg Roach "ezyang/htmlpurifier": "~4.12", 466ccdf4f0SGreg Roach "fig/http-message-util": "^1.1", 478e8a9008SGreg Roach "fisharebest/algorithm": "~1.5", 4893686a36SGreg Roach "fisharebest/ext-calendar": "~2.5", 49d1315a43SGreg Roach "fisharebest/flysystem-chroot-adapter": "~1.0", 5050b23b0dSGreg Roach "fisharebest/localization": "~1.15", 518e8a9008SGreg Roach "guzzlehttp/guzzle": "~6.5", 524525f50bSGreg Roach "illuminate/container": "~5.8", 534525f50bSGreg Roach "illuminate/database": "~5.8", 544525f50bSGreg Roach "illuminate/support": "~5.8", 558e8a9008SGreg Roach "io-developer/php-whois": "~3.5", 568e8a9008SGreg Roach "league/commonmark": "~1.4", 57d592f2ecSGreg Roach "league/flysystem": "~1.0", 58d1315a43SGreg Roach "league/flysystem-cached-adapter": "~1.0", 59d592f2ecSGreg Roach "league/flysystem-ziparchive": "~1.0", 608e8a9008SGreg Roach "league/glide": "~1.5", 614874f72dSGreg Roach "middlewares/client-ip": "~1.3", 62089dadacSGreg Roach "mlocati/ip-lib": "~1.9", 63e6149aa2SGreg Roach "nesbot/carbon": "~2.35", 64e6149aa2SGreg Roach "nyholm/psr7": "~1.3", 65666268ebSGreg Roach "nyholm/psr7-server": "~1.0", 666ccdf4f0SGreg Roach "oscarotero/middleland": "~1.0", 67c692965aSGreg Roach "psr/cache": "~1.0", 686ccdf4f0SGreg Roach "psr/http-message": "~1.0", 696ccdf4f0SGreg Roach "psr/http-server-handler": "~1.0", 706ccdf4f0SGreg Roach "psr/http-server-middleware": "~1.0", 718e8a9008SGreg Roach "ramsey/uuid": "~3.9", 728e8a9008SGreg Roach "swiftmailer/swiftmailer": "~6.2", 73c692965aSGreg Roach "symfony/cache": "~4.4", 74d501c45dSGreg Roach "symfony/expression-language": "~4.4", 758e8a9008SGreg Roach "symfony/polyfill-mbstring": "~1.17", 76*dec352c1SGreg Roach "symfony/polyfill-php80": "^1.17", 778e8a9008SGreg Roach "tecnickcom/tcpdf": "^6.3.5" 7810a8d14fSGreg Roach }, 79db7d25eeSGreg Roach "require-dev": { 80c42d24a9SGreg Roach "ext-pdo_sqlite": "*", 814525f50bSGreg Roach "ext-sqlite3": "*", 828e8a9008SGreg Roach "composer/composer": "~1.10", 834525f50bSGreg Roach "league/flysystem-memory": "~1.0", 848e8a9008SGreg Roach "maximebf/debugbar": "~1.16", 858e8a9008SGreg Roach "php-coveralls/php-coveralls": "~2.2", 868e8a9008SGreg Roach "phpunit/phpunit": "~7.5|~8.0" 87db7d25eeSGreg Roach }, 88c42d24a9SGreg Roach "suggest": { 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", 92c42d24a9SGreg Roach "ext-pdo_sqlsvr": "Required to use SQL Server for database storage" 93c42d24a9SGreg Roach }, 94db6a3ae9SGreg Roach "scripts": { 953d9f187dSGreg Roach "webtrees:build": [ 96f872a3beSGreg Roach "rm -Rf webtrees/", 97f872a3beSGreg Roach "git archive --prefix=webtrees/ HEAD --format=tar | tar -x", 98006094b9SGreg Roach "@composer webtrees:lang", 99006094b9SGreg Roach "for FILE in resources/lang/*/messages.php; do cp $FILE webtrees/$FILE; done", 100bcfab406SGreg Roach "zip --quiet --recurse-paths --move -9 webtrees.zip webtrees" 101f872a3beSGreg Roach ], 102289701c8SGreg Roach "webtrees:pre-commit-hook": [ 103289701c8SGreg Roach "@composer webtrees:phpcs", 1049b152ff9SGreg Roach "@composer webtrees:phpstan", 105289701c8SGreg Roach "@composer webtrees:test" 106289701c8SGreg Roach ], 1073d9f187dSGreg Roach "webtrees:check": [ 1084686330aSGreg Roach "### PHP-CODE-SNIFFER", 109289701c8SGreg Roach "@composer webtrees:phpcs", 1105781ea1fSGreg Roach "### PHPSTAN", 1119b152ff9SGreg Roach "@composer webtrees:phpstan", 1125781ea1fSGreg Roach "### PSALM", 1133df1e584SGreg Roach "@composer webtrees:psalm" 1145781ea1fSGreg Roach ], 115289701c8SGreg Roach "webtrees:phpcs": [ 11674d6dc0eSGreg Roach "@composer global require squizlabs/php_codesniffer=* --quiet", 1179b152ff9SGreg Roach "~/.composer/vendor/bin/phpcs --standard=PSR12 --colors --extensions=php --exclude=Generic.Files.LineLength index.php app modules_v4 tests", 118bbae5905SGreg Roach "~/.composer/vendor/bin/phpcs --colors --extensions=css resources/css" 1195781ea1fSGreg Roach ], 120289701c8SGreg Roach "webtrees:phpstan": [ 121289701c8SGreg Roach "@composer global require --quiet phpstan/phpstan=*", 122289701c8SGreg Roach "@composer global require --quiet phpstan/extension-installer=*", 123289701c8SGreg Roach "@composer global require --quiet phpstan/phpstan-deprecation-rules=*", 124289701c8SGreg Roach "@composer global require --quiet phpstan/phpstan-strict-rules=*", 125289701c8SGreg Roach "@composer global require --quiet phpstan/phpstan-phpunit=*", 126dcb3a022SGreg Roach "@composer install --quiet", 1279b152ff9SGreg Roach "~/.composer/vendor/bin/phpstan analyze --level=max app modules_v4 index.php", 128dcb3a022SGreg Roach "@composer install --no-dev --quiet" 1295781ea1fSGreg Roach ], 130289701c8SGreg Roach "webtrees:psalm": [ 131dcb3a022SGreg Roach "@composer global require --quiet vimeo/psalm", 1325781ea1fSGreg Roach "@composer install --quiet", 13361f22e38SGreg Roach "~/.composer/vendor/bin/psalm", 1345781ea1fSGreg Roach "@composer install --no-dev --quiet" 135425578caSGreg Roach ], 136289701c8SGreg Roach "webtrees:test": [ 137289701c8SGreg Roach "@composer install --quiet", 138289701c8SGreg Roach "@php vendor/bin/phpunit", 139289701c8SGreg Roach "@composer install --no-dev --quiet" 140289701c8SGreg Roach ], 14186b91143SGreg Roach "webtrees:coverage": [ 1425781ea1fSGreg Roach "@composer install --dev --quiet", 14386b91143SGreg Roach "vendor/bin/phpunit --coverage-html=tests/coverage", 1445781ea1fSGreg Roach "@composer install --no-dev --quiet" 14586b91143SGreg Roach ], 146006094b9SGreg Roach "webtrees:lang": [ 147006094b9SGreg Roach "Fisharebest\\Webtrees\\Console\\ComposerScripts::languageFiles" 148006094b9SGreg Roach ], 1493d9f187dSGreg Roach "webtrees:po": [ 150692edf9aSGreg Roach "sed -i.bak -e 's/\\(I18N::[^)]*[)]\\)/<?php echo \\1; ?>/g' resources/xml/reports/*.xml", 151f7fac239SGreg 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", 152692edf9aSGreg Roach "find resources/xml/reports/ -name '*.xml' -exec mv {}.bak {} \\;", 153362b8464SGreg Roach "find resources/lang -name '*.po' -exec msgmerge --no-wrap --sort-output --no-fuzzy-matching --quiet --output={} {} resources/lang/webtrees.pot \\;" 15497c22350SGreg Roach ], 15597c22350SGreg Roach "webtrees:png": [ 15608362db4SGreg Roach "find resources/css -name *.png -exec pngquant --ext .png --force --skip-if-larger --speed 1 {} \\;", 15708362db4SGreg Roach "find resources/css -name *.png -exec pngcrush -rem allb -brute -reduce {} {} \\;", 15808362db4SGreg Roach "find resources/css -name *.png -exec optipng -o7 -zm1-9 {} \\;" 159db6a3ae9SGreg Roach ] 160db6a3ae9SGreg Roach }, 161cb14bb54SGreg Roach "scripts-descriptions": { 1623d9f187dSGreg Roach "webtrees:build": "Create a distribution file (webtrees.zip)", 1633d9f187dSGreg Roach "webtrees:check": "Run various static analysis tools", 16486b91143SGreg Roach "webtrees:coverage": "Generate test coverage report", 165006094b9SGreg Roach "webtrees:lang": "Compile the language files (messages.php)", 16674d6dc0eSGreg Roach "webtrees:po": "Update the language (webtrees.pot, *.po)" 167ed285daaSGreg Roach } 168ed285daaSGreg Roach} 169