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.4" 26 }, 27 "sort-packages": true, 28 "process-timeout": 3600 29 }, 30 "require": { 31 "php": "7.4 - 8.1", 32 "ext-ctype": "*", 33 "ext-curl": "*", 34 "ext-exif": "*", 35 "ext-fileinfo": "*", 36 "ext-gd": "*", 37 "ext-iconv": "*", 38 "ext-intl": "*", 39 "ext-json": "*", 40 "ext-mbstring": "*", 41 "ext-pcre": "*", 42 "ext-pdo": "*", 43 "ext-session": "*", 44 "ext-simplexml": "*", 45 "ext-xml": "*", 46 "ext-zip": "*", 47 "aura/router": "4.x-dev", 48 "doctrine/dbal": "3.3.2", 49 "ezyang/htmlpurifier": "4.14.0", 50 "fig/http-message-util": "1.1.5", 51 "fisharebest/algorithm": "1.6.0", 52 "fisharebest/ext-calendar": "2.5.0", 53 "fisharebest/flysystem-chroot-adapter": "2.0.0", 54 "fisharebest/localization": "1.15.1", 55 "guzzlehttp/guzzle": "7.4.1", 56 "illuminate/container": "8.82.0", 57 "illuminate/database": "8.82.0", 58 "illuminate/support": "8.82.0", 59 "intervention/image": "2.7.1", 60 "io-developer/php-whois": "4.1.6", 61 "league/commonmark": "2.2.1", 62 "league/flysystem": "2.4.2", 63 "league/flysystem-ziparchive": "2.3.1", 64 "middlewares/client-ip": "2.0.1", 65 "mlocati/ip-lib": "1.18.0", 66 "nesbot/carbon": "2.56.0", 67 "nyholm/psr7": "1.5.0", 68 "nyholm/psr7-server": "1.0.2", 69 "oscarotero/middleland": "1.0.1", 70 "psr/cache": "1.0.1", 71 "psr/http-message": "1.0.1", 72 "psr/http-server-handler": "1.0.1", 73 "psr/http-server-middleware": "1.0.1", 74 "ramsey/uuid": "4.2.3", 75 "sabre/vobject": "4.4.1", 76 "symfony/cache": "5.4.3", 77 "symfony/expression-language": "5.4.3", 78 "symfony/mailer": "5.4.3", 79 "symfony/polyfill-mbstring": "1.24.0", 80 "symfony/polyfill-php80": "1.24.0", 81 "tecnickcom/tcpdf": "6.4.4" 82 }, 83 "require-dev": { 84 "ext-dom": "*", 85 "ext-pdo_sqlite": "*", 86 "ext-sqlite3": "*", 87 "composer/composer": "~2.0", 88 "league/flysystem-memory": "~2.0", 89 "php-coveralls/php-coveralls": "~2.4", 90 "phpunit/phpunit": "~9.5" 91 }, 92 "suggest": { 93 "ext-imagick": "Required to generate thumbnail images", 94 "ext-pdo_mysql": "Required to use MySQL for database storage", 95 "ext-pdo_sqlite": "Required to use SQLite for database storage", 96 "ext-pdo_pgsql": "Required to use PostgreSQL for database storage", 97 "ext-pdo_sqlsvr": "Required to use SQL Server for database storage", 98 "ext-zlib": "Required to compress HTTP responses" 99 }, 100 "scripts": { 101 "webtrees:build": [ 102 "rm -Rf webtrees/", 103 "git archive --prefix=webtrees/ HEAD --format=tar | tar -x", 104 "@composer install --no-dev --quiet", 105 "cp -r vendor/ webtrees/vendor/", 106 "@composer webtrees:lang", 107 "for FILE in resources/lang/*/messages.php; do cp $FILE webtrees/$FILE; done", 108 "zip --quiet --recurse-paths --move -9 webtrees.zip webtrees" 109 ], 110 "webtrees:pre-commit-hook": [ 111 "@composer webtrees:phpcs", 112 "@composer webtrees:phpstan", 113 "@composer webtrees:test" 114 ], 115 "webtrees:check": [ 116 "### PHP-CODE-SNIFFER", 117 "@composer webtrees:phpcs", 118 "### PHPSTAN", 119 "@composer webtrees:phpstan", 120 "### PSALM", 121 "@composer webtrees:psalm" 122 ], 123 "webtrees:phpcs": [ 124 "@composer global require squizlabs/php_codesniffer=* --quiet", 125 "~/.composer/vendor/bin/phpcs --standard=PSR12 --colors --extensions=php --exclude=Generic.Files.LineLength index.php app tests", 126 "~/.composer/vendor/bin/phpcs --colors --extensions=css resources/css" 127 ], 128 "webtrees:phpstan": [ 129 "@composer global require --quiet phpstan/phpstan=*", 130 "@composer global require --quiet phpstan/extension-installer=*", 131 "@composer global require --quiet phpstan/phpstan-deprecation-rules=*", 132 "@composer global require --quiet phpstan/phpstan-strict-rules=*", 133 "@composer global require --quiet phpstan/phpstan-phpunit=*", 134 "@composer install --quiet", 135 "~/.composer/vendor/bin/phpstan analyze --memory-limit=1G --level=max index.php app", 136 "@composer install --no-dev --quiet" 137 ], 138 "webtrees:phpstan-baseline": [ 139 "@composer global require --quiet phpstan/phpstan=*", 140 "@composer global require --quiet phpstan/extension-installer=*", 141 "@composer global require --quiet phpstan/phpstan-deprecation-rules=*", 142 "@composer global require --quiet phpstan/phpstan-strict-rules=*", 143 "@composer global require --quiet phpstan/phpstan-phpunit=*", 144 "@composer install --quiet", 145 "~/.composer/vendor/bin/phpstan analyze --level=max --generate-baseline=phpstan-baseline.neon index.php app", 146 "@composer install --no-dev --quiet" 147 ], 148 "webtrees:psalm": [ 149 "@composer global require --quiet vimeo/psalm", 150 "@composer install --quiet", 151 "~/.composer/vendor/bin/psalm --threads=8 --php-version=8.1", 152 "@composer install --no-dev --quiet" 153 ], 154 "webtrees:test": [ 155 "@composer install --quiet", 156 "@php vendor/bin/phpunit", 157 "@composer install --no-dev --quiet" 158 ], 159 "webtrees:coverage": [ 160 "@composer install --dev --quiet", 161 "vendor/bin/phpunit --coverage-html=tests/coverage", 162 "@composer install --no-dev --quiet" 163 ], 164 "webtrees:lang": [ 165 "Fisharebest\\Webtrees\\Console\\ComposerScripts::languageFiles" 166 ], 167 "webtrees:missing-tests": [ 168 "Fisharebest\\Webtrees\\Console\\ComposerScripts::missingTests" 169 ], 170 "webtrees:po": [ 171 "sed -i.bak -e 's/\\(I18N::[^)]*[)]\\)/<?php echo \\1; ?>/g' resources/xml/reports/*.xml", 172 "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", 173 "find resources/xml/reports/ -name '*.xml' -exec mv {}.bak {} \\;", 174 "find resources/lang -name '*.po' -exec msgmerge --no-wrap --sort-output --no-fuzzy-matching --quiet --output={} {} resources/lang/webtrees.pot \\;" 175 ], 176 "webtrees:png": [ 177 "find resources/css -name *.png -exec pngquant --ext .png --force --skip-if-larger --speed 1 {} \\;", 178 "find resources/css -name *.png -exec pngcrush -rem allb -brute -reduce {} {} \\;", 179 "find resources/css -name *.png -exec optipng -o7 -zm1-9 {} \\;" 180 ] 181 }, 182 "scripts-descriptions": { 183 "webtrees:build": "Create a distribution file (webtrees.zip)", 184 "webtrees:check": "Run various static analysis tools", 185 "webtrees:coverage": "Generate test coverage report", 186 "webtrees:lang": "Compile the language files (messages.php)", 187 "webtrees:po": "Update the language (webtrees.pot, *.po)" 188 } 189} 190