{ "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" ] }, "config": { "platform": { "php": "7.1.8" }, "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": "~2.9", "ezyang/htmlpurifier": "~4.10", "fig/http-message-util": "^1.1", "fisharebest/algorithm": "~1.3", "fisharebest/ext-calendar": "~2.5", "fisharebest/flysystem-chroot-adapter": "~1.0", "fisharebest/localization": "~1.15", "guzzlehttp/guzzle": "~6.0", "illuminate/cache": "~5.8", "illuminate/container": "~5.8", "illuminate/database": "~5.8", "illuminate/support": "~5.8", "league/commonmark": "~1.0", "league/commonmark-ext-table": "*", "league/flysystem": "~1.0", "league/flysystem-cached-adapter": "~1.0", "league/flysystem-ziparchive": "~1.0", "league/glide": "~1.3", "nesbot/carbon": "~2.14", "nyholm/psr7": "~1.1", "nyholm/psr7-server": "~0.3", "oscarotero/middleland": "~1.0", "psr/http-message": "~1.0", "psr/http-server-handler": "~1.0", "psr/http-server-middleware": "~1.0", "ramsey/uuid": "~3.8", "swiftmailer/swiftmailer": "~6.1", "symfony/expression-language": "~4.2", "symfony/http-foundation": "~4.2", "symfony/http-kernel": "~4.2", "symfony/polyfill-mbstring": "~1.11", "symfony/polyfill-php72": "~1.11", "tecnickcom/tcpdf": "~6.2" }, "require-dev": { "ext-pdo_sqlite": "*", "ext-sqlite3": "*", "composer/composer": "~1.8", "league/flysystem-memory": "~1.0", "maximebf/debugbar": "~1.15", "php-coveralls/php-coveralls": "~2.1", "phpunit/phpunit": "~7.0|~8.0" }, "suggest": { "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" }, "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:check": [ "### PHP-CODE-SNIFFER", "@composer webtrees:check-phpcs", "### PHAN", "@composer webtrees:check-phan", "### PHPSTAN", "@composer webtrees:check-phpstan", "### PSALM", "@composer webtrees:check-phpstan" ], "webtrees:check-phpcs": [ "@composer global require squizlabs/php_codesniffer=* --quiet", "@composer global update squizlabs/php_codesniffer --quiet", "phpcs --standard=PSR12 -p -s --exclude=Generic.Files.LineLength,PSR2.ControlStructures.ControlStructureSpacing index.php app modules_v4 routes tests/app tests/feature" ], "webtrees:check-phan": [ "@composer global require phan/phan=*", "@composer global update phan/phan", "@composer install --quiet", "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", "@composer install --no-dev --quiet" ], "webtrees:check-phpstan": [ "@composer global require phpstan/phpstan=*", "@composer global update phpstan/phpstan", "phpstan --level=7 analyze index.php app" ], "webtrees:check-psalm": [ "@composer global update vimeo/psalm", "@composer install --quiet", "psalm", "@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: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 {} \\;" ] }, "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)" }, "extra": { "branch-alias": { "dev-master": "2.0-dev" } } }