{ "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": [ "modules_v4/", "tests/TestCase.php", "tests/MockGlobalFunctions.php" ] }, "config": { "platform": { "php": "7.3" }, "sort-packages": true, "process-timeout": 3600 }, "require": { "ext-curl": "*", "ext-gd": "*", "ext-iconv": "*", "ext-intl": "*", "ext-json": "*", "ext-pcre": "*", "ext-pdo": "*", "ext-session": "*", "ext-simplexml": "*", "ext-xml": "*", "ext-zip": "*", "aura/router": "~3.1", "doctrine/dbal": "~3.0", "ezyang/htmlpurifier": "~4.12", "fig/http-message-util": "^1.1", "fisharebest/algorithm": "~1.5", "fisharebest/ext-calendar": "~2.5", "fisharebest/flysystem-chroot-adapter": "~2.0", "fisharebest/localization": "~1.15", "guzzlehttp/guzzle": "~7.1", "illuminate/container": "~8.20", "illuminate/database": "~8.20", "illuminate/support": "~8.20", "intervention/image": "^2.5", "io-developer/php-whois": "~4.0", "league/commonmark": "~1.4", "league/flysystem": "~2.0", "league/flysystem-ziparchive": "~2.0", "middlewares/client-ip": "~2.0", "mlocati/ip-lib": "~1.9", "nesbot/carbon": "~2.35", "nyholm/psr7": "~1.3", "nyholm/psr7-server": "~1.0", "oscarotero/middleland": "~1.0", "psr/cache": "~1.0", "psr/http-message": "~1.0", "psr/http-server-handler": "~1.0", "psr/http-server-middleware": "~1.0", "ramsey/uuid": "~4.1", "swiftmailer/swiftmailer": "~6.2", "symfony/cache": "~5.2", "symfony/expression-language": "~5.2", "symfony/polyfill-mbstring": "~1.17", "symfony/polyfill-php80": "^1.17", "tecnickcom/tcpdf": "dev-main" }, "require-dev": { "ext-dom": "*", "ext-pdo_sqlite": "*", "ext-sqlite3": "*", "composer/composer": "~2.0", "league/flysystem-memory": "~2.0", "maximebf/debugbar": "~1.16", "php-coveralls/php-coveralls": "~2.2", "phpunit/phpunit": "~9.5" }, "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_sqlsvr": "Required to use SQL Server for database storage", "ext-zlib": "Required to compress HTTP respnses" }, "scripts": { "webtrees:build": [ "rm -Rf webtrees/", "git archive --prefix=webtrees/ HEAD --format=tar | tar -x", "@composer webtrees:lang", "for FILE in resources/lang/*/messages.php; do cp $FILE webtrees/$FILE; done", "zip --quiet --recurse-paths --move -9 webtrees.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 --standard=PSR12 --colors --extensions=php --exclude=Generic.Files.LineLength index.php app modules_v4/example* tests", "~/.composer/vendor/bin/phpcs --colors --extensions=css resources/css" ], "webtrees:phpstan": [ "@composer global require --quiet phpstan/phpstan=*", "@composer global require --quiet phpstan/extension-installer=*", "@composer global require --quiet phpstan/phpstan-deprecation-rules=*", "@composer global require --quiet phpstan/phpstan-strict-rules=*", "@composer global require --quiet phpstan/phpstan-phpunit=*", "@composer install --quiet", "~/.composer/vendor/bin/phpstan analyze --level=max app modules_v4/example* index.php", "@composer install --no-dev --quiet" ], "webtrees:psalm": [ "@composer global require --quiet vimeo/psalm", "@composer install --quiet", "~/.composer/vendor/bin/psalm", "@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:lang": [ "Fisharebest\\Webtrees\\Console\\ComposerScripts::languageFiles" ], "webtrees:missing-tests": [ "Fisharebest\\Webtrees\\Console\\ComposerScripts::missingTests" ], "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 --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", "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 {} \\;" ] }, "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)" } }