1{ 2 "name": "fisharebest/webtrees", 3 "description": "webtrees online genealogy", 4 "keywords": ["webtrees", "genealogy"], 5 "license": "GPL-3.0-or-later", 6 "autoload": { 7 "psr-4": { 8 "Fisharebest\\Webtrees\\": "app/" 9 }, 10 "files": [ 11 "app/Helpers/functions.php" 12 ] 13 }, 14 "autoload-dev": { 15 "classmap": [ 16 "tests/TestCase.php" 17 ] 18 }, 19 "config": { 20 "platform": { 21 "php" : "7.0.8" 22 }, 23 "sort-packages": true, 24 "process-timeout": 3600 25 }, 26 "require": { 27 "ext-curl": "*", 28 "ext-gd": "*", 29 "ext-iconv": "*", 30 "ext-intl": "*", 31 "ext-json": "*", 32 "ext-pcre": "*", 33 "ext-pdo": "*", 34 "ext-pdo_mysql": "*", 35 "ext-session": "*", 36 "ext-simplexml": "*", 37 "ext-xml": "*", 38 "ext-zip": "*", 39 "filp/whoops": "~2.1", 40 "fisharebest/algorithm": "~1.3", 41 "fisharebest/ext-calendar": "~2.5", 42 "fisharebest/localization": "~1.10", 43 "guzzlehttp/guzzle": "~6.0", 44 "league/commonmark": "~0.17", 45 "league/flysystem": "~1.0", 46 "league/flysystem-ziparchive": "~1.0", 47 "league/glide": "~1.2", 48 "ramsey/uuid": "~3.6", 49 "swiftmailer/swiftmailer": "~5.0", 50 "symfony/expression-language": "~3.3", 51 "symfony/http-foundation": "~3.3", 52 "symfony/http-kernel": "~3.3", 53 "symfony/polyfill-mbstring": "~1.4", 54 "symfony/polyfill-php71": "~1.4", 55 "symfony/polyfill-php72": "~1.4", 56 "tecnickcom/tcpdf": "~6.2", 57 "webuni/commonmark-table-extension": "~0.7" 58 }, 59 "require-dev": { 60 "maximebf/debugbar": "*", 61 "mockery/mockery": "*", 62 "phpunit/phpunit": "*", 63 "php-coveralls/php-coveralls": "*" 64 }, 65 "scripts": { 66 "webtrees-build": [ 67 "@composer webtrees-mo", 68 "git checkout language/en-US.mo", 69 "rm -Rf webtrees/", 70 "git archive --prefix=webtrees/ HEAD --format=tar | tar -x", 71 "cp language/*.mo webtrees/language/", 72 "zip --quiet --recurse-paths --move -9 webtrees.zip webtrees" 73 ], 74 "webtrees-check": [ 75 "### PHP-CODE-ANALYZER", 76 "phpca --since-version=7.0 app/", 77 "### PHP-CODE-FIXER", 78 "phpcf app/", 79 "### PAHOUT", 80 "pahout --php-version 7.0.0 --ignore-paths=data .", 81 "### PHP-PARALLEL-LINT", 82 "parallel-lint --no-progress --exclude vendor .", 83 "### PHP-CODE-SNIFFER", 84 "phpcs --standard=PSR12 -s --exclude=Generic.Files.LineLength,PSR2.ControlStructures.ControlStructureSpacing,PSR2.ControlStructures.SwitchDeclaration app routes", 85 "### PHAN", 86 "phan --directory . --exclude-directory-list data,resources,routes,tests,vendor", 87 "### PHPSTAN", 88 "phpstan --level=7 analyze app", 89 "### PSALM", 90 "psalm --threads=8" 91 ], 92 "webtrees-tools": [ 93 "### PAHOUT", 94 "@composer global require wata727/pahout=*", 95 "### PHAN", 96 "@composer global require phan/phan=*", 97 "### PHP-CODE-ANALYZER", 98 "@composer global require wapmorgan/php-code-analyzer=*", 99 "### PHP-CODE-FIXER", 100 "@composer global require wapmorgan/php-code-fixer=*", 101 "### PHP-PARALLEL-LINT", 102 "@composer global require jakub-onderka/php-parallel-lint=*", 103 "### PSALM", 104 "@composer global require vimeo/psalm=*" 105 ], 106 "webtrees-mo": [ 107 "for FILE in language/*.po; do msgfmt --output=$(dirname $FILE)/$(basename $FILE .po).mo $FILE; done", 108 "rm -Rf data/cache/language*" 109 ], 110 "webtrees-po": [ 111 "sed -i.bak -e 's/\\(I18N::[^)]*[)]\\)/<?php echo \\1; ?>/g' modules*/*/*.xml", 112 "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", 113 "find modules*/ -name '*.xml' -exec mv {}.bak {} \\;", 114 "find language -name '*.po' -exec msgmerge --no-wrap --sort-output --no-fuzzy-matching --quiet --output={} {} language/webtrees.pot \\;" 115 ] 116 }, 117 "scripts-descriptions": { 118 "webtrees-build": "Create a distribution file (webtrees.zip)", 119 "webtrees-check": "Run various static analysis tools", 120 "webtrees-mo": "Compile the language files (*.mo)", 121 "webtrees-po": "Update the language (webtrees.pot, *.po)", 122 "webtrees-tools": "Install the tools needed to run webtrees-check" 123 }, 124 "extra": { 125 "branch-alias": { 126 "dev-master": "2.0-dev" 127 } 128 } 129} 130