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.1.3" 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 "doctrine/dbal": "~2.9", 40 "filp/whoops": "~2.3", 41 "fisharebest/algorithm": "~1.3", 42 "fisharebest/ext-calendar": "~2.5", 43 "fisharebest/localization": "~1.12", 44 "guzzlehttp/guzzle": "~6.0", 45 "illuminate/container": "^5.7.17", 46 "illuminate/database": "^5.7.17", 47 "illuminate/support": "^5.7.17", 48 "league/commonmark": "~0.18", 49 "league/flysystem": "~1.0", 50 "league/flysystem-ziparchive": "~1.0", 51 "league/glide": "~1.3", 52 "ramsey/uuid": "~3.8", 53 "swiftmailer/swiftmailer": "~6.1", 54 "symfony/expression-language": "~4.2", 55 "symfony/http-foundation": "~4.2", 56 "symfony/http-kernel": "~4.2", 57 "symfony/polyfill-mbstring": "~1.10", 58 "symfony/polyfill-php71": "~1.10", 59 "symfony/polyfill-php72": "~1.10", 60 "tecnickcom/tcpdf": "~6.2", 61 "webuni/commonmark-table-extension": "~0.9" 62 }, 63 "require-dev": { 64 "ext-pdo_sqlite": "*", 65 "maximebf/debugbar": "*", 66 "mockery/mockery": "*", 67 "phpunit/phpunit": "*", 68 "php-coveralls/php-coveralls": "*" 69 }, 70 "scripts": { 71 "webtrees:build": [ 72 "@composer webtrees:mo", 73 "git checkout language/en-US.mo", 74 "rm -Rf webtrees/", 75 "git archive --prefix=webtrees/ HEAD --format=tar | tar -x", 76 "cp language/*.mo webtrees/language/", 77 "zip --quiet --recurse-paths --move -9 webtrees.zip webtrees" 78 ], 79 "webtrees:check": [ 80 "### PHP-CODE-ANALYZER", 81 "phpca --since-version=7.1 app/", 82 "### PHP-CODE-FIXER", 83 "phpcf app/", 84 "### PAHOUT", 85 "pahout --php-version 7.1.3 --ignore-paths=data .", 86 "### PHP-PARALLEL-LINT", 87 "parallel-lint --no-progress --exclude vendor .", 88 "### PHP-CODE-SNIFFER", 89 "phpcs --standard=PSR12 -s --exclude=Generic.Files.LineLength,PSR2.ControlStructures.ControlStructureSpacing app routes", 90 "### PHAN", 91 "PHAN_DISABLE_XDEBUG_WARN=1 phan --target-php-version=7.1 --progress-bar --directory . --exclude-directory-list data,resources,routes,tests,vendor", 92 "### PHPSTAN", 93 "phpstan --level=7 analyze index.php app", 94 "### PSALM", 95 "psalm" 96 ], 97 "webtrees:tools": [ 98 "### PAHOUT", 99 "@composer global require wata727/pahout=*", 100 "### PHAN", 101 "@composer global require phan/phan=*", 102 "### PHP-CODE-ANALYZER", 103 "@composer global require wapmorgan/php-code-analyzer=*", 104 "### PHP-CODE-FIXER", 105 "@composer global require wapmorgan/php-code-fixer=*", 106 "### PHP-PARALLEL-LINT", 107 "@composer global require jakub-onderka/php-parallel-lint=*", 108 "### PSALM", 109 "@composer global require vimeo/psalm=*" 110 ], 111 "webtrees:mo": [ 112 "for FILE in language/*.po; do msgfmt --output=$(dirname $FILE)/$(basename $FILE .po).mo $FILE; done", 113 "rm -Rf data/cache/language*" 114 ], 115 "webtrees:po": [ 116 "sed -i.bak -e 's/\\(I18N::[^)]*[)]\\)/<?php echo \\1; ?>/g' modules*/*/*.xml", 117 "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", 118 "find modules*/ -name '*.xml' -exec mv {}.bak {} \\;", 119 "find language -name '*.po' -exec msgmerge --no-wrap --sort-output --no-fuzzy-matching --quiet --output={} {} language/webtrees.pot \\;" 120 ] 121 }, 122 "scripts-descriptions": { 123 "webtrees:build": "Create a distribution file (webtrees.zip)", 124 "webtrees:check": "Run various static analysis tools", 125 "webtrees:mo": "Compile the language files (*.mo)", 126 "webtrees:po": "Update the language (webtrees.pot, *.po)", 127 "webtrees:tools": "Install the tools needed to run webtrees-check" 128 } 129} 130