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": { 254459dc9aSGreg Roach "php": "7.1.8" 2622acdb08SGreg Roach }, 27425578caSGreg Roach "sort-packages": true, 28425578caSGreg Roach "process-timeout": 3600 297286a40cSGreg Roach }, 30ed285daaSGreg Roach "require": { 315f9f5f94SRico Sonntag "ext-curl": "*", 327286a40cSGreg Roach "ext-gd": "*", 337286a40cSGreg Roach "ext-iconv": "*", 345f9f5f94SRico Sonntag "ext-intl": "*", 358ae9e54eSRico Sonntag "ext-json": "*", 367286a40cSGreg Roach "ext-pcre": "*", 377286a40cSGreg Roach "ext-pdo": "*", 387286a40cSGreg Roach "ext-session": "*", 397286a40cSGreg Roach "ext-simplexml": "*", 403b3cfeeaSGreg Roach "ext-xml": "*", 415f9f5f94SRico Sonntag "ext-zip": "*", 42362be83aSGreg Roach "doctrine/dbal": "~2.9", 436ccdf4f0SGreg Roach "fig/http-message-util": "^1.1", 44d592f2ecSGreg Roach "fisharebest/algorithm": "~1.3", 4593686a36SGreg Roach "fisharebest/ext-calendar": "~2.5", 46d1315a43SGreg Roach "fisharebest/flysystem-chroot-adapter": "~1.0", 475bfba019SGreg Roach "fisharebest/localization": "~1.13", 48cc26b3c3SGreg Roach "guzzlehttp/guzzle": "~6.0", 494525f50bSGreg Roach "illuminate/cache": "~5.8", 504525f50bSGreg Roach "illuminate/container": "~5.8", 514525f50bSGreg Roach "illuminate/database": "~5.8", 524525f50bSGreg Roach "illuminate/support": "~5.8", 53e70f282eSGreg Roach "league/commonmark": "~0.18", 54d592f2ecSGreg Roach "league/flysystem": "~1.0", 55d1315a43SGreg Roach "league/flysystem-cached-adapter": "~1.0", 56d592f2ecSGreg Roach "league/flysystem-ziparchive": "~1.0", 57e70f282eSGreg Roach "league/glide": "~1.3", 584459dc9aSGreg Roach "nesbot/carbon": "~2.14", 596ccdf4f0SGreg Roach "nyholm/psr7": "~1.1", 606ccdf4f0SGreg Roach "nyholm/psr7-server": "~0.3", 616ccdf4f0SGreg Roach "oscarotero/middleland": "~1.0", 626ccdf4f0SGreg Roach "psr/http-message": "~1.0", 636ccdf4f0SGreg Roach "psr/http-server-handler": "~1.0", 646ccdf4f0SGreg Roach "psr/http-server-middleware": "~1.0", 65e70f282eSGreg Roach "ramsey/uuid": "~3.8", 668b04670aSGreg Roach "swiftmailer/swiftmailer": "~6.1", 67e70f282eSGreg Roach "symfony/expression-language": "~4.2", 68e70f282eSGreg Roach "symfony/http-foundation": "~4.2", 69e70f282eSGreg Roach "symfony/http-kernel": "~4.2", 7008738c04SGreg Roach "symfony/polyfill-mbstring": "~1.11", 7108738c04SGreg Roach "symfony/polyfill-php72": "~1.11", 7222acdb08SGreg Roach "tecnickcom/tcpdf": "~6.2", 73e70f282eSGreg Roach "webuni/commonmark-table-extension": "~0.9" 7410a8d14fSGreg Roach }, 75db7d25eeSGreg Roach "require-dev": { 76c42d24a9SGreg Roach "ext-pdo_sqlite": "*", 774525f50bSGreg Roach "ext-sqlite3": "*", 784525f50bSGreg Roach "league/flysystem-memory": "~1.0", 794525f50bSGreg Roach "maximebf/debugbar": "~1.15", 804525f50bSGreg Roach "php-coveralls/php-coveralls": "~2.1", 814525f50bSGreg Roach "phpunit/phpunit": "~7.0|~8.0" 82db7d25eeSGreg Roach }, 83c42d24a9SGreg Roach "suggest": { 84c42d24a9SGreg Roach "ext-pdo_mysql": "Required to use MySQL for database storage", 85c42d24a9SGreg Roach "ext-pdo_sqlite": "Required to use SQLite for database storage", 86764facb7SGreg Roach "ext-pdo_pgsql": "Required to use PostgreSQL for database storage", 87c42d24a9SGreg Roach "ext-pdo_sqlsvr": "Required to use SQL Server for database storage" 88c42d24a9SGreg Roach }, 89db6a3ae9SGreg Roach "scripts": { 903d9f187dSGreg Roach "webtrees:build": [ 91f872a3beSGreg Roach "rm -Rf webtrees/", 92f872a3beSGreg Roach "git archive --prefix=webtrees/ HEAD --format=tar | tar -x", 9382f8fca5SGreg Roach "for FILE in resources/lang/*/messages.po; do msgfmt --output=webtrees/$(dirname $FILE)/$(basename $FILE .po).mo $FILE; done", 94bcfab406SGreg Roach "zip --quiet --recurse-paths --move -9 webtrees.zip webtrees" 95f872a3beSGreg Roach ], 963d9f187dSGreg Roach "webtrees:check": [ 974686330aSGreg Roach "### PHP-CODE-SNIFFER", 9874d6dc0eSGreg Roach "@composer global require squizlabs/php_codesniffer=* --quiet", 9974d6dc0eSGreg Roach "@composer global update squizlabs/php_codesniffer --quiet", 10074d6dc0eSGreg Roach "phpcs --standard=PSR12 -p -s --exclude=Generic.Files.LineLength,PSR2.ControlStructures.ControlStructureSpacing app modules_v4 routes tests/app tests/feature", 101425578caSGreg Roach "### PHAN", 10274d6dc0eSGreg Roach "@composer global require phan/phan=*", 10374d6dc0eSGreg Roach "@composer global update phan/phan", 10474d6dc0eSGreg Roach "@composer install --quiet", 10574d6dc0eSGreg Roach "PHAN_DISABLE_XDEBUG_WARN=1 phan --target-php-version=7.1 --progress-bar --directory app --directory vendor --exclude-directory-list vendor", 10674d6dc0eSGreg Roach "@composer install --no-dev --quiet", 107771ae10aSGreg Roach "### PHPSTAN", 10874d6dc0eSGreg Roach "@composer global require phpstan/phpstan=*", 10974d6dc0eSGreg Roach "@composer global update phpstan/phpstan", 11008198125SGreg Roach "phpstan --level=7 analyze index.php app", 111425578caSGreg Roach "### PSALM", 11203bd29eaSGreg Roach "psalm" 113425578caSGreg Roach ], 11486b91143SGreg Roach "webtrees:coverage": [ 11586b91143SGreg Roach "composer install --dev --quiet", 11686b91143SGreg Roach "vendor/bin/phpunit --coverage-html=tests/coverage", 11786b91143SGreg Roach "composer install --no-dev --quiet" 11886b91143SGreg Roach ], 1193d9f187dSGreg Roach "webtrees:mo": [ 120362b8464SGreg Roach "for FILE in resources/lang/*/messages.po; do msgfmt --output=$(dirname $FILE)/$(basename $FILE .po).mo $FILE; done", 121db6a3ae9SGreg Roach "rm -Rf data/cache/language*" 122cb14bb54SGreg Roach ], 1233d9f187dSGreg Roach "webtrees:po": [ 124692edf9aSGreg Roach "sed -i.bak -e 's/\\(I18N::[^)]*[)]\\)/<?php echo \\1; ?>/g' resources/xml/reports/*.xml", 125*f7fac239SGreg 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", 126692edf9aSGreg Roach "find resources/xml/reports/ -name '*.xml' -exec mv {}.bak {} \\;", 127362b8464SGreg Roach "find resources/lang -name '*.po' -exec msgmerge --no-wrap --sort-output --no-fuzzy-matching --quiet --output={} {} resources/lang/webtrees.pot \\;" 12897c22350SGreg Roach ], 12997c22350SGreg Roach "webtrees:png": [ 13097c22350SGreg Roach "find resources/css -name *.png -exec pngquant --ext .png --force --skip-if-larger --speed 1 {} \\;" 131db6a3ae9SGreg Roach ] 132db6a3ae9SGreg Roach }, 133cb14bb54SGreg Roach "scripts-descriptions": { 1343d9f187dSGreg Roach "webtrees:build": "Create a distribution file (webtrees.zip)", 1353d9f187dSGreg Roach "webtrees:check": "Run various static analysis tools", 13686b91143SGreg Roach "webtrees:coverage": "Generate test coverage report", 1373d9f187dSGreg Roach "webtrees:mo": "Compile the language files (*.mo)", 13874d6dc0eSGreg Roach "webtrees:po": "Update the language (webtrees.pot, *.po)" 13908b342ecSGreg Roach }, 14008b342ecSGreg Roach "extra": { 14108b342ecSGreg Roach "branch-alias": { 14208b342ecSGreg Roach "dev-master": "2.0-dev" 14308b342ecSGreg Roach } 144ed285daaSGreg Roach } 145ed285daaSGreg Roach} 146