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