diff options
author | Remi Collet <remi@remirepo.net> | 2021-01-13 16:26:45 +0100 |
---|---|---|
committer | Remi Collet <remi@remirepo.net> | 2021-01-13 16:26:45 +0100 |
commit | 3e48f7848045a708ec61a5914019d028f57ca18c (patch) | |
tree | e43d0fea261e307a2c2ec12c13dae6a45d0b67d2 /composer.json | |
parent | 09511e9a197f0cf429590871cbc4def6658b35cf (diff) |
update to 3.1.0
drop dependency on league/tactician
drop dependency on laminas/laminas-diagnostics
add dependency on doctrine/orm
add dependency on symfony/config
add dependency on symfony/dependency-injection
add dependency on symfony/event-dispatcher
add dependency on symfony/messenger
add dependency on symfony/requirements-checker
switch to phpunit9
Diffstat (limited to 'composer.json')
-rw-r--r-- | composer.json | 57 |
1 files changed, 43 insertions, 14 deletions
diff --git a/composer.json b/composer.json index 4014013..5171be1 100644 --- a/composer.json +++ b/composer.json @@ -4,29 +4,33 @@ "keywords": ["compatibility", "database", "reference"], "type": "library", "license": "BSD-3-Clause", - "homepage": "http://php5.laurent-laville.org/compatinfo/", + "homepage": "http://bartlett.laurent-laville.org/php-compatinfo/", "support": { "source": "https://github.com/llaville/php-compatinfo-db", "issues": "https://github.com/llaville/php-compatinfo-db/issues" }, "require": { - "php": "^7.1", - "composer/semver": "^1.0|^2.0|^3.0", - "ext-curl": "*", - "ext-intl": "*", - "ext-libxml": "*", - "ext-openssl": "*", + "php": "^7.2|^8.0", + "ext-json": "*", "ext-pcre": "*", + "ext-pdo": "*", + "ext-phar": "*", "ext-spl": "*", - "ext-json": "*", - "ext-pdo_sqlite": "*", - "symfony/console": "^4.4|^5.0", "composer/package-versions-deprecated": "^1.8", - "league/tactician": "^1.0", - "laminas/laminas-diagnostics": "^1.3" + "composer/semver": "^1.0|^2.0|^3.0", + "doctrine/orm": "^2.7", + "symfony/config": "^4.4|^5.0", + "symfony/console": "^4.4|^5.0", + "symfony/dependency-injection": "^4.4|^5.0", + "symfony/event-dispatcher": "^4.4|^5.0", + "symfony/messenger": "^4.4|^5.0", + "symfony/requirements-checker": "^2.0", + "symfony/stopwatch": "^4.4|^5.0" }, "require-dev": { - "phpunit/php-timer": "^2.0" + "composer/composer": "^2.0", + "psr/log": "^1.0", + "symfony/phpunit-bridge": "^5.1" }, "authors": [ { @@ -48,7 +52,32 @@ }, "autoload-dev": { "psr-4": { - "Bartlett\\Tests\\CompatInfoDb\\": "tests/" + "Bartlett\\CompatInfoDb\\Tests\\": "tests/" } + }, + "scripts": { + "setup-database": [ + "mkdir -p ${HOME}/.cache/bartlett/ && touch ${HOME}/.cache/bartlett/compatinfo-db.sqlite", + "export DATABASE_URL=sqlite:///${HOME}/.cache/bartlett/compatinfo-db.sqlite", + "vendor/bin/doctrine orm:schema-tool:create", + "bin/compatinfo-db db:init" + ], + "post-install-cmd": [ + "Bartlett\\CompatInfoDb\\ComposerScripts::preparePharMetadata", + "@setup-database" + ], + "post-update-cmd": [ + "Bartlett\\CompatInfoDb\\ComposerScripts::preparePharMetadata", + "@setup-database" + ] + }, + "scripts-descriptions": { + "setup-database": "Initializes SQLite database from JSON files in data directory." + }, + "minimum-stability": "dev", + "prefer-stable": true, + "config": { + "sort-packages": true, + "optimize-autoloader": true } } |