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 "aura/router": "~3.1", 43 "doctrine/dbal": "~2.9", 44 "ezyang/htmlpurifier": "~4.10", 45 "fig/http-message-util": "^1.1", 46 "fisharebest/algorithm": "~1.3", 47 "fisharebest/ext-calendar": "~2.5", 48 "fisharebest/flysystem-chroot-adapter": "~1.0", 49 "fisharebest/localization": "~1.15", 50 "guzzlehttp/guzzle": "~6.0", 51 "illuminate/cache": "~5.8", 52 "illuminate/container": "~5.8", 53 "illuminate/database": "~5.8", 54 "illuminate/support": "~5.8", 55 "league/commonmark": "~1.0", 56 "league/commonmark-ext-table": "*", 57 "league/flysystem": "~1.0", 58 "league/flysystem-cached-adapter": "~1.0", 59 "league/flysystem-ziparchive": "~1.0", 60 "league/glide": "~1.3", 61 "nesbot/carbon": "~2.14", 62 "nyholm/psr7": "~1.1", 63 "nyholm/psr7-server": "~0.3", 64 "oscarotero/middleland": "~1.0", 65 "psr/http-message": "~1.0", 66 "psr/http-server-handler": "~1.0", 67 "psr/http-server-middleware": "~1.0", 68 "ramsey/uuid": "~3.8", 69 "swiftmailer/swiftmailer": "~6.1", 70 "symfony/expression-language": "~4.2", 71 "symfony/http-foundation": "~4.2", 72 "symfony/http-kernel": "~4.2", 73 "symfony/polyfill-mbstring": "~1.11", 74 "symfony/polyfill-php72": "~1.11", 75 "tecnickcom/tcpdf": "~6.2" 76 }, 77 "require-dev": { 78 "ext-pdo_sqlite": "*", 79 "ext-sqlite3": "*", 80 "composer/composer": "~1.8", 81 "league/flysystem-memory": "~1.0", 82 "maximebf/debugbar": "~1.15", 83 "php-coveralls/php-coveralls": "~2.1", 84 "phpunit/phpunit": "~7.0|~8.0" 85 }, 86 "suggest": { 87 "ext-pdo_mysql": "Required to use MySQL for database storage", 88 "ext-pdo_sqlite": "Required to use SQLite for database storage", 89 "ext-pdo_pgsql": "Required to use PostgreSQL for database storage", 90 "ext-pdo_sqlsvr": "Required to use SQL Server for database storage" 91 }, 92 "scripts": { 93 "webtrees:build": [ 94 "rm -Rf webtrees/", 95 "git archive --prefix=webtrees/ HEAD --format=tar | tar -x", 96 "@composer webtrees:lang", 97 "for FILE in resources/lang/*/messages.php; do cp $FILE webtrees/$FILE; done", 98 "zip --quiet --recurse-paths --move -9 webtrees.zip webtrees" 99 ], 100 "webtrees:check": [ 101 "### PHP-CODE-SNIFFER", 102 "@composer webtrees:check-phpcs", 103 "### PHAN", 104 "@composer webtrees:check-phan", 105 "### PHPSTAN", 106 "@composer webtrees:check-phpstan", 107 "### PSALM", 108 "@composer webtrees:check-phpstan" 109 ], 110 "webtrees:check-phpcs": [ 111 "@composer global require squizlabs/php_codesniffer=* --quiet", 112 "@composer global update squizlabs/php_codesniffer --quiet", 113 "phpcs --standard=PSR12 -p -s --exclude=Generic.Files.LineLength,PSR2.ControlStructures.ControlStructureSpacing index.php app modules_v4 routes tests/app tests/feature" 114 ], 115 "webtrees:check-phan": [ 116 "@composer global require phan/phan=*", 117 "@composer global update phan/phan", 118 "@composer install --quiet", 119 "PHAN_DISABLE_XDEBUG_WARN=1 phan --color --dead-code-detection --target-php-version=7.1 --progress-bar --signature-compatibility --strict-type-checking --directory app --directory vendor --exclude-directory-list vendor index.php", 120 "@composer install --no-dev --quiet" 121 ], 122 "webtrees:check-phpstan": [ 123 "@composer global require phpstan/phpstan=*", 124 "@composer global update phpstan/phpstan", 125 "phpstan --level=7 analyze index.php app" 126 ], 127 "webtrees:check-psalm": [ 128 "@composer global update vimeo/psalm", 129 "@composer install --quiet", 130 "psalm", 131 "@composer install --no-dev --quiet" 132 ], 133 "webtrees:coverage": [ 134 "@composer install --dev --quiet", 135 "vendor/bin/phpunit --coverage-html=tests/coverage", 136 "@composer install --no-dev --quiet" 137 ], 138 "webtrees:lang": [ 139 "Fisharebest\\Webtrees\\Console\\ComposerScripts::languageFiles" 140 ], 141 "webtrees:po": [ 142 "sed -i.bak -e 's/\\(I18N::[^)]*[)]\\)/<?php echo \\1; ?>/g' resources/xml/reports/*.xml", 143 "git grep -I --name-only --fixed-strings -e I18N:: -- '*.php' '*.phtml' '*.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", 144 "find resources/xml/reports/ -name '*.xml' -exec mv {}.bak {} \\;", 145 "find resources/lang -name '*.po' -exec msgmerge --no-wrap --sort-output --no-fuzzy-matching --quiet --output={} {} resources/lang/webtrees.pot \\;" 146 ], 147 "webtrees:png": [ 148 "find resources/css -name *.png -exec pngquant --ext .png --force --skip-if-larger --speed 1 {} \\;" 149 ] 150 }, 151 "scripts-descriptions": { 152 "webtrees:build": "Create a distribution file (webtrees.zip)", 153 "webtrees:check": "Run various static analysis tools", 154 "webtrees:coverage": "Generate test coverage report", 155 "webtrees:lang": "Compile the language files (messages.php)", 156 "webtrees:po": "Update the language (webtrees.pot, *.po)" 157 }, 158 "extra": { 159 "branch-alias": { 160 "dev-master": "2.0-dev" 161 } 162 } 163} 164