1{ 2 "name": "fisharebest/webtrees", 3 "description": "webtrees online genealogy", 4 "keywords": [ 5 "webtrees", 6 "genealogy" 7 ], 8 "license": "GPL-3.0-or-later", 9 "autoload": { 10 "psr-4": { 11 "Fisharebest\\Webtrees\\": "app/" 12 }, 13 "files": [ 14 "app/Helpers/functions.php" 15 ] 16 }, 17 "autoload-dev": { 18 "classmap": [ 19 "tests/TestCase.php", 20 "tests/MockGlobalFunctions.php" 21 ] 22 }, 23 "config": { 24 "platform": { 25 "php": "7.1.8" 26 }, 27 "sort-packages": true, 28 "process-timeout": 3600 29 }, 30 "require": { 31 "ext-curl": "*", 32 "ext-gd": "*", 33 "ext-iconv": "*", 34 "ext-intl": "*", 35 "ext-json": "*", 36 "ext-pcre": "*", 37 "ext-pdo": "*", 38 "ext-session": "*", 39 "ext-simplexml": "*", 40 "ext-xml": "*", 41 "ext-zip": "*", 42 "doctrine/dbal": "~2.9", 43 "fig/http-message-util": "^1.1", 44 "fisharebest/algorithm": "~1.3", 45 "fisharebest/ext-calendar": "~2.5", 46 "fisharebest/flysystem-chroot-adapter": "~1.0", 47 "fisharebest/localization": "~1.13", 48 "guzzlehttp/guzzle": "~6.0", 49 "illuminate/cache": "~5.8", 50 "illuminate/container": "~5.8", 51 "illuminate/database": "~5.8", 52 "illuminate/support": "~5.8", 53 "league/commonmark": "~0.18", 54 "league/flysystem": "~1.0", 55 "league/flysystem-cached-adapter": "~1.0", 56 "league/flysystem-ziparchive": "~1.0", 57 "league/glide": "~1.3", 58 "nesbot/carbon": "~2.14", 59 "nyholm/psr7": "~1.1", 60 "nyholm/psr7-server": "~0.3", 61 "oscarotero/middleland": "~1.0", 62 "psr/http-message": "~1.0", 63 "psr/http-server-handler": "~1.0", 64 "psr/http-server-middleware": "~1.0", 65 "ramsey/uuid": "~3.8", 66 "swiftmailer/swiftmailer": "~6.1", 67 "symfony/expression-language": "~4.2", 68 "symfony/http-foundation": "~4.2", 69 "symfony/http-kernel": "~4.2", 70 "symfony/polyfill-mbstring": "~1.11", 71 "symfony/polyfill-php72": "~1.11", 72 "tecnickcom/tcpdf": "~6.2", 73 "webuni/commonmark-table-extension": "~0.9" 74 }, 75 "require-dev": { 76 "ext-pdo_sqlite": "*", 77 "ext-sqlite3": "*", 78 "league/flysystem-memory": "~1.0", 79 "maximebf/debugbar": "~1.15", 80 "php-coveralls/php-coveralls": "~2.1", 81 "phpunit/phpunit": "~7.0|~8.0" 82 }, 83 "suggest": { 84 "ext-pdo_mysql": "Required to use MySQL for database storage", 85 "ext-pdo_sqlite": "Required to use SQLite for database storage", 86 "ext-pdo_pgsql": "Required to use PostgreSQL for database storage", 87 "ext-pdo_sqlsvr": "Required to use SQL Server for database storage" 88 }, 89 "scripts": { 90 "webtrees:build": [ 91 "rm -Rf webtrees/", 92 "git archive --prefix=webtrees/ HEAD --format=tar | tar -x", 93 "for FILE in resources/lang/*/messages.po; do msgfmt --output=webtrees/$(dirname $FILE)/$(basename $FILE .po).mo $FILE; done", 94 "zip --quiet --recurse-paths --move -9 webtrees.zip webtrees" 95 ], 96 "webtrees:check": [ 97 "### PHP-CODE-SNIFFER", 98 "@composer global require squizlabs/php_codesniffer=* --quiet", 99 "@composer global update squizlabs/php_codesniffer --quiet", 100 "phpcs --standard=PSR12 -p -s --exclude=Generic.Files.LineLength,PSR2.ControlStructures.ControlStructureSpacing app modules_v4 routes tests/app tests/feature", 101 "### PHAN", 102 "@composer global require phan/phan=*", 103 "@composer global update phan/phan", 104 "@composer install --quiet", 105 "PHAN_DISABLE_XDEBUG_WARN=1 phan --target-php-version=7.1 --progress-bar --directory app --directory vendor --exclude-directory-list vendor", 106 "@composer install --no-dev --quiet", 107 "### PHPSTAN", 108 "@composer global require phpstan/phpstan=*", 109 "@composer global update phpstan/phpstan", 110 "phpstan --level=7 analyze index.php app", 111 "### PSALM", 112 "psalm" 113 ], 114 "webtrees:coverage": [ 115 "composer install --dev --quiet", 116 "vendor/bin/phpunit --coverage-html=tests/coverage", 117 "composer install --no-dev --quiet" 118 ], 119 "webtrees:mo": [ 120 "for FILE in resources/lang/*/messages.po; do msgfmt --output=$(dirname $FILE)/$(basename $FILE .po).mo $FILE; done", 121 "rm -Rf data/cache/language*" 122 ], 123 "webtrees:po": [ 124 "sed -i.bak -e 's/\\(I18N::[^)]*[)]\\)/<?php echo \\1; ?>/g' resources/xml/reports/*.xml", 125 "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=resources/lang/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", 126 "find resources/xml/reports/ -name '*.xml' -exec mv {}.bak {} \\;", 127 "find resources/lang -name '*.po' -exec msgmerge --no-wrap --sort-output --no-fuzzy-matching --quiet --output={} {} resources/lang/webtrees.pot \\;" 128 ], 129 "webtrees:png": [ 130 "find resources/css -name *.png -exec pngquant --ext .png --force --skip-if-larger --speed 1 {} \\;" 131 ] 132 }, 133 "scripts-descriptions": { 134 "webtrees:build": "Create a distribution file (webtrees.zip)", 135 "webtrees:check": "Run various static analysis tools", 136 "webtrees:coverage": "Generate test coverage report", 137 "webtrees:mo": "Compile the language files (*.mo)", 138 "webtrees:po": "Update the language (webtrees.pot, *.po)" 139 }, 140 "extra": { 141 "branch-alias": { 142 "dev-master": "2.0-dev" 143 } 144 } 145} 146