{ "name": "fisharebest/webtrees", "description": "webtrees online genealogy", "keywords": ["webtrees", "genealogy"], "license": "GPL-3.0-or-later", "autoload": { "psr-4": { "Fisharebest\\Webtrees\\": "app/" }, "files": [ "app/Helpers/functions.php" ] }, "autoload-dev": { "classmap": [ "tests/TestCase.php" ] }, "config": { "platform": { "php" : "7.0.8" }, "sort-packages": true, "process-timeout": 3600 }, "require": { "ext-curl": "*", "ext-gd": "*", "ext-iconv": "*", "ext-intl": "*", "ext-json": "*", "ext-pcre": "*", "ext-pdo": "*", "ext-pdo_mysql": "*", "ext-session": "*", "ext-simplexml": "*", "ext-xml": "*", "ext-zip": "*", "filp/whoops": "~2.1", "fisharebest/algorithm": "~1.3", "fisharebest/ext-calendar": "~2.5", "fisharebest/localization": "~1.12", "guzzlehttp/guzzle": "~6.0", "league/commonmark": "~0.17", "league/flysystem": "~1.0", "league/flysystem-ziparchive": "~1.0", "league/glide": "~1.2", "ramsey/uuid": "~3.6", "swiftmailer/swiftmailer": "~5.0", "symfony/expression-language": "~3.3", "symfony/http-foundation": "~3.3", "symfony/http-kernel": "~3.3", "symfony/polyfill-mbstring": "~1.4", "symfony/polyfill-php71": "~1.4", "symfony/polyfill-php72": "~1.4", "tecnickcom/tcpdf": "~6.2", "webuni/commonmark-table-extension": "~0.7" }, "require-dev": { "maximebf/debugbar": "*", "mockery/mockery": "*", "phpunit/phpunit": "*", "php-coveralls/php-coveralls": "*" }, "scripts": { "webtrees-build": [ "@composer webtrees-mo", "git checkout language/en-US.mo", "rm -Rf webtrees/", "git archive --prefix=webtrees/ HEAD --format=tar | tar -x", "cp language/*.mo webtrees/language/", "zip --quiet --recurse-paths --move -9 webtrees.zip webtrees" ], "webtrees-check": [ "### PHP-CODE-ANALYZER", "phpca --since-version=7.0 app/", "### PHP-CODE-FIXER", "phpcf app/", "### PAHOUT", "pahout --php-version 7.0.0 --ignore-paths=data .", "### PHP-PARALLEL-LINT", "parallel-lint --no-progress --exclude vendor .", "### PHP-CODE-SNIFFER", "phpcs --standard=PSR12 -s --exclude=Generic.Files.LineLength,PSR2.ControlStructures.ControlStructureSpacing,PSR2.ControlStructures.SwitchDeclaration app routes", "### PHAN", "phan --directory . --exclude-directory-list data,resources,routes,tests,vendor", "### PHPSTAN", "phpstan --level=7 analyze app", "### PSALM", "psalm --threads=8" ], "webtrees-tools": [ "### PAHOUT", "@composer global require wata727/pahout=*", "### PHAN", "@composer global require phan/phan=*", "### PHP-CODE-ANALYZER", "@composer global require wapmorgan/php-code-analyzer=*", "### PHP-CODE-FIXER", "@composer global require wapmorgan/php-code-fixer=*", "### PHP-PARALLEL-LINT", "@composer global require jakub-onderka/php-parallel-lint=*", "### PSALM", "@composer global require vimeo/psalm=*" ], "webtrees-mo": [ "for FILE in language/*.po; do msgfmt --output=$(dirname $FILE)/$(basename $FILE .po).mo $FILE; done", "rm -Rf data/cache/language*" ], "webtrees-po": [ "sed -i.bak -e 's/\\(I18N::[^)]*[)]\\)//g' modules*/*/*.xml", "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", "find modules*/ -name '*.xml' -exec mv {}.bak {} \\;", "find language -name '*.po' -exec msgmerge --no-wrap --sort-output --no-fuzzy-matching --quiet --output={} {} language/webtrees.pot \\;" ] }, "scripts-descriptions": { "webtrees-build": "Create a distribution file (webtrees.zip)", "webtrees-check": "Run various static analysis tools", "webtrees-mo": "Compile the language files (*.mo)", "webtrees-po": "Update the language (webtrees.pot, *.po)", "webtrees-tools": "Install the tools needed to run webtrees-check" }, "extra": { "branch-alias": { "dev-master": "2.0-dev" } } }