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