1ed285daaSGreg Roach{ 2a25f0a04SGreg Roach "name": "fisharebest/webtrees", 3ed285daaSGreg Roach "description": "webtrees online genealogy", 4ed285daaSGreg Roach "keywords": ["webtrees", "genealogy"], 531b7ad55SGreg Roach "license": "GPL-3.0-or-later", 6a25f0a04SGreg Roach "autoload": { 70e62c4b8SGreg Roach "psr-4": { 80e62c4b8SGreg Roach "Fisharebest\\Webtrees\\": "app/" 91f3fb95cSGreg Roach }, 101f3fb95cSGreg Roach "files": [ 111f3fb95cSGreg Roach "app/Helpers/functions.php" 121f3fb95cSGreg Roach ] 13a25f0a04SGreg Roach }, 1484e2cf4eSGreg Roach "autoload-dev": { 1584e2cf4eSGreg Roach "classmap": [ 1684e2cf4eSGreg Roach "tests/TestCase.php" 1784e2cf4eSGreg Roach ] 1884e2cf4eSGreg Roach }, 197286a40cSGreg Roach "config": { 207286a40cSGreg Roach "platform": { 21ffe6005cSGreg Roach "php" : "7.0.8" 2222acdb08SGreg Roach }, 23425578caSGreg Roach "sort-packages": true, 24425578caSGreg Roach "process-timeout": 3600 257286a40cSGreg Roach }, 26ed285daaSGreg Roach "require": { 275f9f5f94SRico Sonntag "ext-curl": "*", 287286a40cSGreg Roach "ext-gd": "*", 297286a40cSGreg Roach "ext-iconv": "*", 305f9f5f94SRico Sonntag "ext-intl": "*", 318ae9e54eSRico Sonntag "ext-json": "*", 327286a40cSGreg Roach "ext-pcre": "*", 337286a40cSGreg Roach "ext-pdo": "*", 347286a40cSGreg Roach "ext-pdo_mysql": "*", 357286a40cSGreg Roach "ext-session": "*", 367286a40cSGreg Roach "ext-simplexml": "*", 377286a40cSGreg Roach "ext-xml": "*", 385f9f5f94SRico Sonntag "ext-zip": "*", 3904a1fb9aSGreg Roach "filp/whoops": "~2.1", 40d592f2ecSGreg Roach "fisharebest/algorithm": "~1.3", 4193686a36SGreg Roach "fisharebest/ext-calendar": "~2.5", 4262bb28bdSGreg Roach "fisharebest/localization": "~1.12", 43cc26b3c3SGreg Roach "guzzlehttp/guzzle": "~6.0", 44e195df77SGreg Roach "league/commonmark": "~0.17", 45d592f2ecSGreg Roach "league/flysystem": "~1.0", 46d592f2ecSGreg Roach "league/flysystem-ziparchive": "~1.0", 473bd6b23eSGreg Roach "league/glide": "~1.2", 48da3508d3SGreg Roach "ramsey/uuid": "~3.6", 4923054811SGreg Roach "swiftmailer/swiftmailer": "~5.0", 505809450fSGreg Roach "symfony/expression-language": "~3.3", 519499ed38SGreg Roach "symfony/http-foundation": "~3.3", 529499ed38SGreg Roach "symfony/http-kernel": "~3.3", 533bd6b23eSGreg Roach "symfony/polyfill-mbstring": "~1.4", 543bd6b23eSGreg Roach "symfony/polyfill-php71": "~1.4", 553bd6b23eSGreg Roach "symfony/polyfill-php72": "~1.4", 5622acdb08SGreg Roach "tecnickcom/tcpdf": "~6.2", 57e195df77SGreg Roach "webuni/commonmark-table-extension": "~0.7" 5810a8d14fSGreg Roach }, 59db7d25eeSGreg Roach "require-dev": { 60bd52fa32SGreg Roach "maximebf/debugbar": "*", 61db7d25eeSGreg Roach "mockery/mockery": "*", 6295d954e1SGreg Roach "phpunit/phpunit": "*", 6395d954e1SGreg Roach "php-coveralls/php-coveralls": "*" 64db7d25eeSGreg Roach }, 65db6a3ae9SGreg Roach "scripts": { 66425578caSGreg Roach "webtrees-build": [ 67f872a3beSGreg Roach "@composer webtrees-mo", 68bcfab406SGreg Roach "git checkout language/en-US.mo", 69f872a3beSGreg Roach "rm -Rf webtrees/", 70f872a3beSGreg Roach "git archive --prefix=webtrees/ HEAD --format=tar | tar -x", 71bcfab406SGreg Roach "cp language/*.mo webtrees/language/", 72bcfab406SGreg Roach "zip --quiet --recurse-paths --move -9 webtrees.zip webtrees" 73f872a3beSGreg Roach ], 74425578caSGreg Roach "webtrees-check": [ 75425578caSGreg Roach "### PHP-CODE-ANALYZER", 76425578caSGreg Roach "phpca --since-version=7.0 app/", 77425578caSGreg Roach "### PHP-CODE-FIXER", 78425578caSGreg Roach "phpcf app/", 79c58d56c4SGreg Roach "### PAHOUT", 80a515be7cSGreg Roach "pahout --php-version 7.0.0 --ignore-paths=data .", 81771ae10aSGreg Roach "### PHP-PARALLEL-LINT", 82771ae10aSGreg Roach "parallel-lint --no-progress --exclude vendor .", 834686330aSGreg Roach "### PHP-CODE-SNIFFER", 84c00af032SGreg Roach "phpcs --standard=PSR12 -s --exclude=Generic.Files.LineLength,PSR2.ControlStructures.ControlStructureSpacing app routes", 85425578caSGreg Roach "### PHAN", 86c00af032SGreg Roach "phan --target-php-version=7.0 --processes=64 --directory . --exclude-directory-list data,resources,routes,tests,vendor", 87771ae10aSGreg Roach "### PHPSTAN", 88*08198125SGreg Roach "phpstan --level=7 analyze index.php app", 89425578caSGreg Roach "### PSALM", 90425578caSGreg Roach "psalm --threads=8" 91425578caSGreg Roach ], 92425578caSGreg Roach "webtrees-tools": [ 93c58d56c4SGreg Roach "### PAHOUT", 94c58d56c4SGreg Roach "@composer global require wata727/pahout=*", 95425578caSGreg Roach "### PHAN", 96425578caSGreg Roach "@composer global require phan/phan=*", 97425578caSGreg Roach "### PHP-CODE-ANALYZER", 98425578caSGreg Roach "@composer global require wapmorgan/php-code-analyzer=*", 99425578caSGreg Roach "### PHP-CODE-FIXER", 100425578caSGreg Roach "@composer global require wapmorgan/php-code-fixer=*", 101425578caSGreg Roach "### PHP-PARALLEL-LINT", 102425578caSGreg Roach "@composer global require jakub-onderka/php-parallel-lint=*", 103425578caSGreg Roach "### PSALM", 104425578caSGreg Roach "@composer global require vimeo/psalm=*" 105425578caSGreg Roach ], 106db6a3ae9SGreg Roach "webtrees-mo": [ 107869661cfSGreg Roach "for FILE in language/*.po; do msgfmt --output=$(dirname $FILE)/$(basename $FILE .po).mo $FILE; done", 108db6a3ae9SGreg Roach "rm -Rf data/cache/language*" 109cb14bb54SGreg Roach ], 110cb14bb54SGreg Roach "webtrees-po": [ 111cb14bb54SGreg Roach "sed -i.bak -e 's/\\(I18N::[^)]*[)]\\)/<?php echo \\1; ?>/g' modules*/*/*.xml", 112cb14bb54SGreg Roach "git grep -I --name-only --fixed-strings -e I18N:: -- '*.php' '*.xml' | xargs xgettext --package-name=webtrees --package-version=1.0 --msgid-bugs-address=i18n@webtrees.net --output=language/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", 113cb14bb54SGreg Roach "find modules*/ -name '*.xml' -exec mv {}.bak {} \\;", 114cb14bb54SGreg Roach "find language -name '*.po' -exec msgmerge --no-wrap --sort-output --no-fuzzy-matching --quiet --output={} {} language/webtrees.pot \\;" 115db6a3ae9SGreg Roach ] 116db6a3ae9SGreg Roach }, 117cb14bb54SGreg Roach "scripts-descriptions": { 118cb14bb54SGreg Roach "webtrees-build": "Create a distribution file (webtrees.zip)", 119cb14bb54SGreg Roach "webtrees-check": "Run various static analysis tools", 120cb14bb54SGreg Roach "webtrees-mo": "Compile the language files (*.mo)", 121cb14bb54SGreg Roach "webtrees-po": "Update the language (webtrees.pot, *.po)", 122cb14bb54SGreg Roach "webtrees-tools": "Install the tools needed to run webtrees-check" 123cb14bb54SGreg Roach }, 12410a8d14fSGreg Roach "extra": { 12510a8d14fSGreg Roach "branch-alias": { 126db6a3ae9SGreg Roach "dev-master": "2.0-dev" 12710a8d14fSGreg Roach } 128ed285daaSGreg Roach } 129ed285daaSGreg Roach} 130