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 "tests/app/Elements/AbstractElementTestCase.php" 22 ] 23 }, 24 "config": { 25 "platform": { 26 "php": "8.1.0" 27 }, 28 "sort-packages": true, 29 "process-timeout": 3600 30 }, 31 "require": { 32 "php": "8.1 - 8.3", 33 "ext-ctype": "*", 34 "ext-curl": "*", 35 "ext-exif": "*", 36 "ext-fileinfo": "*", 37 "ext-gd": "*", 38 "ext-iconv": "*", 39 "ext-intl": "*", 40 "ext-json": "*", 41 "ext-mbstring": "*", 42 "ext-pcre": "*", 43 "ext-pdo": "*", 44 "ext-session": "*", 45 "ext-simplexml": "*", 46 "ext-xml": "*", 47 "aura/router": "3.3.0", 48 "doctrine/dbal": "3.6.6", 49 "ezyang/htmlpurifier": "4.16.0", 50 "fig/http-message-util": "1.1.5", 51 "fisharebest/algorithm": "1.6.0", 52 "fisharebest/ext-calendar": "2.6.0", 53 "fisharebest/localization": "1.17.0", 54 "guzzlehttp/guzzle": "7.8.0", 55 "illuminate/database": "10.20.", 56 "illuminate/support": "10.20.0", 57 "intervention/image": "2.7.2", 58 "io-developer/php-whois": "4.1.10", 59 "league/commonmark": "2.4.0", 60 "league/flysystem": "3.15.1", 61 "league/flysystem-path-prefixing": "3.15.0", 62 "league/flysystem-ziparchive": "3.15.0", 63 "middlewares/client-ip": "2.0.1", 64 "mlocati/ip-lib": "1.18.0", 65 "nesbot/carbon": "2.69.0", 66 "nyholm/psr7": "1.8.0", 67 "nyholm/psr7-server": "1.0.2", 68 "oscarotero/middleland": "1.0.1", 69 "psr/cache": "3.0.0", 70 "psr/http-message": "1.1", 71 "psr/http-server-handler": "1.0.2", 72 "psr/http-server-middleware": "1.0.2", 73 "ramsey/uuid": "4.7.4", 74 "sabre/vobject": "4.5.3", 75 "symfony/cache": "6.3.4", 76 "symfony/expression-language": "6.3.0", 77 "symfony/mailer": "6.3.0", 78 "symfony/polyfill-mbstring": "1.28.0", 79 "tecnickcom/tcpdf": "6.6.2" 80 }, 81 "require-dev": { 82 "ext-dom": "*", 83 "ext-libxml": "*", 84 "ext-pdo_sqlite": "*", 85 "ext-sqlite3": "*", 86 "composer/composer": "2.5.8", 87 "league/flysystem-memory": "3.15.0", 88 "php-coveralls/php-coveralls": "2.6.0", 89 "phpunit/phpunit": "10.3.2" 90 }, 91 "suggest": { 92 "ext-imagick": "Required to generate thumbnail images", 93 "ext-pdo_mysql": "Required to use MySQL for database storage", 94 "ext-pdo_sqlite": "Required to use SQLite for database storage", 95 "ext-pdo_pgsql": "Required to use PostgreSQL for database storage", 96 "ext-pdo_sqlsrv": "Required to use SQL Server for database storage", 97 "ext-zip": "Required to compress downloads and use the upgrade wizard", 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-`git describe`.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 --colors --extensions=php --standard=PSR12 --exclude=Generic.Files.LineLength index.php app tests", 126 "#~/.composer/vendor/bin/phpcs --colors --extensions=phtml --standard=PSR12 --exclude=Generic.Files.LineLength resources/views", 127 "~/.composer/vendor/bin/phpcs --colors --extensions=css resources/css" 128 ], 129 "webtrees:phpstan": [ 130 "@composer global require --quiet phpstan/phpstan=* phpstan/extension-installer=* phpstan/phpstan-deprecation-rules=* phpstan/phpstan-strict-rules=* phpstan/phpstan-phpunit=*", 131 "@composer install --quiet", 132 "~/.composer/vendor/bin/phpstan analyze --memory-limit=-1", 133 "@composer install --no-dev --quiet" 134 ], 135 "webtrees:phpstan-baseline": [ 136 "@composer global require --quiet phpstan/phpstan=* phpstan/extension-installer=* phpstan/phpstan-deprecation-rules=* phpstan/phpstan-strict-rules=* phpstan/phpstan-phpunit=*", 137 "@composer install --quiet", 138 "~/.composer/vendor/bin/phpstan analyze --level=max --generate-baseline=phpstan-baseline.php", 139 "sed -i -e 's/\\t/ /' phpstan-baseline.php", 140 "sed -i -e 's/ declare(strict_types = 1)/\\n\\ndeclare(strict_types=1)/' phpstan-baseline.php", 141 "@composer install --no-dev --quiet" 142 ], 143 "webtrees:psalm": [ 144 "@composer global require --quiet vimeo/psalm", 145 "@composer install --quiet", 146 "~/.composer/vendor/bin/psalm --threads=8 --php-version=8.1", 147 "@composer install --no-dev --quiet" 148 ], 149 "webtrees:test": [ 150 "@composer install --quiet", 151 "@php vendor/bin/phpunit", 152 "@composer install --no-dev --quiet" 153 ], 154 "webtrees:coverage": [ 155 "@composer install --dev --quiet", 156 "vendor/bin/phpunit --coverage-html=tests/coverage", 157 "@composer install --no-dev --quiet" 158 ], 159 "webtrees:lang": [ 160 "Fisharebest\\Webtrees\\Console\\ComposerScripts::languageFiles" 161 ], 162 "webtrees:po": [ 163 "sed -i.bak -e 's/\\(I18N::[^)]*[)]\\)/<?php echo \\1; ?>/g' resources/xml/reports/*.xml", 164 "git grep -I --name-only --fixed-strings -e I18N:: -- '*.php' '*.phtml' '*.xml' | xargs xgettext --package-name=webtrees --package-version=1.0 --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", 165 "find resources/xml/reports/ -name '*.xml' -exec mv {}.bak {} \\;", 166 "find resources/lang -name '*.po' -exec msgmerge --no-wrap --sort-output --no-fuzzy-matching --quiet --output={} {} resources/lang/webtrees.pot \\;" 167 ], 168 "webtrees:png": [ 169 "find resources/css -name *.png -exec pngquant --ext .png --force --skip-if-larger --speed 1 {} \\;", 170 "find resources/css -name *.png -exec pngcrush -rem allb -brute -reduce {} {} \\;", 171 "find resources/css -name *.png -exec optipng -o7 -zm1-9 {} \\;" 172 ] 173 }, 174 "scripts-descriptions": { 175 "webtrees:build": "Create a distribution file (webtrees.zip)", 176 "webtrees:check": "Run various static analysis tools", 177 "webtrees:coverage": "Generate test coverage report", 178 "webtrees:lang": "Compile the language files (messages.php)", 179 "webtrees:po": "Update the language (webtrees.pot, *.po)" 180 } 181} 182