summaryrefslogtreecommitdiffstats
path: root/composer.json
diff options
context:
space:
mode:
Diffstat (limited to 'composer.json')
-rw-r--r--composer.json57
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
}
}