{ "name": "fisharebest/webtrees", "description": "webtrees online genealogy", "keywords": [ "webtrees", "genealogy" ], "license": "GPL-3.0-or-later", "autoload": { "psr-4": { "Fisharebest\\Webtrees\\": "app/" }, "files": [ "app/Helpers/functions.php" ] }, "autoload-dev": { "classmap": [ "tests/TestCase.php", "tests/MockGlobalFunctions.php", "tests/app/Elements/AbstractElementTestCase.php" ] }, "config": { "platform": { "php": "8.3.0" }, "sort-packages": true, "process-timeout": 3600 }, "require": { "php": "8.3 - 8.4", "ext-ctype": "*", "ext-curl": "*", "ext-gd": "*", "ext-iconv": "*", "ext-intl": "*", "ext-json": "*", "ext-mbstring": "*", "ext-pcre": "*", "ext-pdo": "*", "ext-session": "*", "ext-xml": "*", "aura/router": "3.3.0", "ezyang/htmlpurifier": "4.18.0", "fig/http-message-util": "1.1.5", "fisharebest/algorithm": "1.6.0", "fisharebest/ext-calendar": "2.6.0", "fisharebest/localization": "1.17.0", "guzzlehttp/guzzle": "7.9.2", "illuminate/database": "11.33.2", "illuminate/support": "11.33.2", "intervention/image": "3.9.1", "io-developer/php-whois": "4.1.10", "league/commonmark": "2.5.3", "league/flysystem": "3.29.1", "league/flysystem-path-prefixing": "3.28.0", "league/flysystem-ziparchive": "3.29.0", "middlewares/client-ip": "2.0.1", "mlocati/ip-lib": "1.18.1", "nesbot/carbon": "3.8.2", "nyholm/psr7": "1.8.2", "nyholm/psr7-server": "1.1.0", "oscarotero/middleland": "1.0.1", "psr/cache": "3.0.0", "psr/http-message": "1.1", "psr/http-server-handler": "1.0.2", "psr/http-server-middleware": "1.0.2", "ramsey/uuid": "4.7.6", "sabre/vobject": "4.5.6", "symfony/cache": "7.1.7", "symfony/console": "7.1.8", "symfony/expression-language": "7.1.6", "symfony/mailer": "7.1.6", "symfony/polyfill-mbstring": "1.31.0", "tecnickcom/tcpdf": "6.7.7" }, "require-dev": { "ext-dom": "*", "ext-libxml": "*", "ext-pdo_sqlite": "*", "ext-sqlite3": "*", "league/flysystem-memory": "3.29.0", "php-coveralls/php-coveralls": "2.7.0", "phpunit/phpunit": "11.4.3" }, "suggest": { "ext-imagick": "Required to generate thumbnail images", "ext-pdo_mysql": "Required to use MySQL for database storage", "ext-pdo_sqlite": "Required to use SQLite for database storage", "ext-pdo_pgsql": "Required to use PostgreSQL for database storage", "ext-pdo_sqlsrv": "Required to use SQL Server for database storage", "ext-zip": "Required to compress downloads and use the upgrade wizard", "ext-zlib": "Required to compress HTTP responses" }, "scripts": { "webtrees:build": [ "rm -Rf webtrees/", "git archive --prefix=webtrees/ HEAD --format=tar | tar -x", "@composer install --no-dev --quiet", "cp -r vendor/ webtrees/vendor/", "php index.php compile-po-files", "for FILE in resources/lang/*/messages.php; do cp $FILE webtrees/$FILE; done", "zip --quiet --recurse-paths --move -9 webtrees-`git describe`.zip webtrees" ], "webtrees:pre-commit-hook": [ "@composer webtrees:phpcs", "@composer webtrees:phpstan", "@composer webtrees:test" ], "webtrees:check": [ "### PHP-CODE-SNIFFER", "@composer webtrees:phpcs", "### PHPSTAN", "@composer webtrees:phpstan", "### PSALM", "@composer webtrees:psalm" ], "webtrees:phpcs": [ "@composer global require squizlabs/php_codesniffer=* --quiet", "~/.composer/vendor/bin/phpcs --colors --extensions=php --standard=PSR12 --exclude=Generic.Files.LineLength index.php app tests", "#~/.composer/vendor/bin/phpcs --colors --extensions=phtml --standard=PSR12 --exclude=Generic.Files.LineLength resources/views", "~/.composer/vendor/bin/phpcs --colors --extensions=css resources/css" ], "webtrees:phpstan": [ "@composer global require --quiet phpstan/phpstan=* phpstan/extension-installer=* phpstan/phpstan-deprecation-rules=* phpstan/phpstan-strict-rules=* phpstan/phpstan-phpunit=*", "@composer install --quiet", "~/.composer/vendor/bin/phpstan analyze -v --memory-limit=-1", "@composer install --no-dev --quiet" ], "webtrees:phpstan-baseline": [ "@composer global require --quiet phpstan/phpstan=* phpstan/extension-installer=* phpstan/phpstan-deprecation-rules=* phpstan/phpstan-strict-rules=* phpstan/phpstan-phpunit=*", "@composer install --quiet", "~/.composer/vendor/bin/phpstan analyze --memory-limit=-1 --generate-baseline=phpstan-baseline.neon", "@composer install --no-dev --quiet" ], "webtrees:psalm": [ "@composer global require --quiet vimeo/psalm", "@composer install --quiet", "~/.composer/vendor/bin/psalm --threads=8 --php-version=8.1", "@composer install --no-dev --quiet" ], "webtrees:test": [ "@composer install --quiet", "@php vendor/bin/phpunit", "@composer install --no-dev --quiet" ], "webtrees:coverage": [ "@composer install --dev --quiet", "vendor/bin/phpunit --coverage-html=tests/coverage", "@composer install --no-dev --quiet" ], "webtrees:po": [ "sed -i.bak -e 's/\\(I18N::[^)]*[)]\\)//g' resources/xml/reports/*.xml", "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", "find resources/xml/reports/ -name '*.xml' -exec mv {}.bak {} \\;", "find resources/lang -name '*.po' -exec msgmerge --no-wrap --sort-output --no-fuzzy-matching --quiet --output={} {} resources/lang/webtrees.pot \\;" ], "webtrees:png": [ "find resources/css -name *.png -exec pngquant --ext .png --force --skip-if-larger --speed 1 {} \\;", "find resources/css -name *.png -exec pngcrush -rem allb -brute -reduce {} {} \\;", "find resources/css -name *.png -exec optipng -o7 -zm1-9 {} \\;" ], "ci" : [ "@composer validate", "@composer install --quiet", "@composer webtrees:test", "@composer webtrees:phpcs", "@composer webtrees:phpstan" ] }, "scripts-descriptions": { "webtrees:build": "Create a distribution file (webtrees.zip)", "webtrees:check": "Run various static analysis tools", "webtrees:coverage": "Generate test coverage report", "webtrees:lang": "Compile the language files (messages.php)", "webtrees:po": "Update the language (webtrees.pot, *.po)" } }