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 }, 147286a40cSGreg Roach "config": { 157286a40cSGreg Roach "platform": { 16ffe6005cSGreg Roach "php" : "7.0.8" 1722acdb08SGreg Roach }, 18425578caSGreg Roach "sort-packages": true, 19425578caSGreg Roach "process-timeout": 3600 207286a40cSGreg Roach }, 21ed285daaSGreg Roach "require": { 227286a40cSGreg Roach "ext-gd": "*", 237286a40cSGreg Roach "ext-iconv": "*", 248ae9e54eSRico Sonntag "ext-json": "*", 257286a40cSGreg Roach "ext-pcre": "*", 267286a40cSGreg Roach "ext-pdo": "*", 277286a40cSGreg Roach "ext-pdo_mysql": "*", 287286a40cSGreg Roach "ext-session": "*", 297286a40cSGreg Roach "ext-simplexml": "*", 307286a40cSGreg Roach "ext-xml": "*", 3104a1fb9aSGreg Roach "filp/whoops": "~2.1", 32d592f2ecSGreg Roach "fisharebest/algorithm": "~1.3", 33d592f2ecSGreg Roach "fisharebest/ext-calendar": "~2.3", 34d592f2ecSGreg Roach "fisharebest/localization": "~1.10", 35cc26b3c3SGreg Roach "guzzlehttp/guzzle": "~6.0", 36e195df77SGreg Roach "league/commonmark": "~0.17", 37d592f2ecSGreg Roach "league/flysystem": "~1.0", 38d592f2ecSGreg Roach "league/flysystem-ziparchive": "~1.0", 393bd6b23eSGreg Roach "league/glide": "~1.2", 40da3508d3SGreg Roach "ramsey/uuid": "~3.6", 4123054811SGreg Roach "swiftmailer/swiftmailer": "~5.0", 425809450fSGreg Roach "symfony/expression-language": "~3.3", 439499ed38SGreg Roach "symfony/http-foundation": "~3.3", 449499ed38SGreg Roach "symfony/http-kernel": "~3.3", 453bd6b23eSGreg Roach "symfony/polyfill-mbstring": "~1.4", 463bd6b23eSGreg Roach "symfony/polyfill-php71": "~1.4", 473bd6b23eSGreg Roach "symfony/polyfill-php72": "~1.4", 4822acdb08SGreg Roach "tecnickcom/tcpdf": "~6.2", 49e195df77SGreg Roach "webuni/commonmark-table-extension": "~0.7" 5010a8d14fSGreg Roach }, 51db7d25eeSGreg Roach "require-dev": { 52bd52fa32SGreg Roach "maximebf/debugbar": "*", 53db7d25eeSGreg Roach "mockery/mockery": "*", 5495d954e1SGreg Roach "phpunit/phpunit": "*", 5595d954e1SGreg Roach "php-coveralls/php-coveralls": "*" 56db7d25eeSGreg Roach }, 57db6a3ae9SGreg Roach "scripts": { 58425578caSGreg Roach "webtrees-build": [ 59f872a3beSGreg Roach "@composer webtrees-mo", 60bcfab406SGreg Roach "git checkout language/en-US.mo", 61f872a3beSGreg Roach "rm -Rf webtrees/", 62f872a3beSGreg Roach "git archive --prefix=webtrees/ HEAD --format=tar | tar -x", 63bcfab406SGreg Roach "cp language/*.mo webtrees/language/", 64bcfab406SGreg Roach "zip --quiet --recurse-paths --move -9 webtrees.zip webtrees" 65f872a3beSGreg Roach ], 66425578caSGreg Roach "webtrees-check": [ 67425578caSGreg Roach "### PHP-CODE-ANALYZER", 68425578caSGreg Roach "phpca --since-version=7.0 app/", 69425578caSGreg Roach "### PHP-CODE-FIXER", 70425578caSGreg Roach "phpcf app/", 71c58d56c4SGreg Roach "### PAHOUT", 72c58d56c4SGreg Roach "pahout --php-version 7.0.8 --ignore-paths=data .", 73771ae10aSGreg Roach "### PHP-PARALLEL-LINT", 74771ae10aSGreg Roach "parallel-lint --no-progress --exclude vendor .", 754686330aSGreg Roach "### PHP-CODE-SNIFFER", 7659f2f229SGreg Roach "phpcs --standard=PSR12 -s --exclude=Generic.Files.LineLength,PSR2.ControlStructures.ControlStructureSpacing,PSR2.ControlStructures.SwitchDeclaration app routes", 77425578caSGreg Roach "### PHAN", 7859f2f229SGreg Roach "phan --directory . --exclude-directory-list data,resources,routes,tests,vendor", 79771ae10aSGreg Roach "### PHPSTAN", 80771ae10aSGreg Roach "phpstan --level=7 analyze app", 81425578caSGreg Roach "### PSALM", 82425578caSGreg Roach "psalm --threads=8" 83425578caSGreg Roach ], 84425578caSGreg Roach "webtrees-tools": [ 85c58d56c4SGreg Roach "### PAHOUT", 86c58d56c4SGreg Roach "@composer global require wata727/pahout=*", 87425578caSGreg Roach "### PHAN", 88425578caSGreg Roach "@composer global require phan/phan=*", 89425578caSGreg Roach "### PHP-CODE-ANALYZER", 90425578caSGreg Roach "@composer global require wapmorgan/php-code-analyzer=*", 91425578caSGreg Roach "### PHP-CODE-FIXER", 92425578caSGreg Roach "@composer global require wapmorgan/php-code-fixer=*", 93425578caSGreg Roach "### PHP-PARALLEL-LINT", 94425578caSGreg Roach "@composer global require jakub-onderka/php-parallel-lint=*", 95425578caSGreg Roach "### PSALM", 96425578caSGreg Roach "@composer global require vimeo/psalm=*" 97425578caSGreg Roach ], 98db6a3ae9SGreg Roach "webtrees-mo": [ 99*869661cfSGreg Roach "for FILE in language/*.po; do msgfmt --output=$(dirname $FILE)/$(basename $FILE .po).mo $FILE; done", 100db6a3ae9SGreg Roach "rm -Rf data/cache/language*" 101cb14bb54SGreg Roach ], 102cb14bb54SGreg Roach "webtrees-po": [ 103cb14bb54SGreg Roach "sed -i.bak -e 's/\\(I18N::[^)]*[)]\\)/<?php echo \\1; ?>/g' modules*/*/*.xml", 104cb14bb54SGreg 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", 105cb14bb54SGreg Roach "find modules*/ -name '*.xml' -exec mv {}.bak {} \\;", 106cb14bb54SGreg Roach "find language -name '*.po' -exec msgmerge --no-wrap --sort-output --no-fuzzy-matching --quiet --output={} {} language/webtrees.pot \\;" 107db6a3ae9SGreg Roach ] 108db6a3ae9SGreg Roach }, 109cb14bb54SGreg Roach "scripts-descriptions": { 110cb14bb54SGreg Roach "webtrees-build": "Create a distribution file (webtrees.zip)", 111cb14bb54SGreg Roach "webtrees-check": "Run various static analysis tools", 112cb14bb54SGreg Roach "webtrees-mo": "Compile the language files (*.mo)", 113cb14bb54SGreg Roach "webtrees-po": "Update the language (webtrees.pot, *.po)", 114cb14bb54SGreg Roach "webtrees-tools": "Install the tools needed to run webtrees-check" 115cb14bb54SGreg Roach }, 11610a8d14fSGreg Roach "extra": { 11710a8d14fSGreg Roach "branch-alias": { 118db6a3ae9SGreg Roach "dev-master": "2.0-dev" 11910a8d14fSGreg Roach } 120ed285daaSGreg Roach } 121ed285daaSGreg Roach} 122