diff options
author | dgw <dgw@technobabbl.es> | 2022-05-17 19:37:48 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-05-17 19:37:48 +0300 |
commit | 2b693172bd2c739d64110bcbff16f2a5bb4d64a6 (patch) | |
tree | 7f857f968c7c38611abdf2d86fea87ed785be840 | |
parent | faeec44c166ac83e07c31e9860de41bd705980e3 (diff) |
List required/suggested PHP extensions in composer.json (#3339)
* List required/suggested PHP extensions in composer.json
Best-effort attempt to declare all extensions used by YOURLS.
Based on the output of https://github.com/RogerGee/php-ext-depends
`composer check-platform-reqs` will show the status of all except those
in "suggest", which is a limitation to sort out later.
* Update composer.json extension requirements after further research
Co-authored-by: ྅༻ Ǭɀħ ༄༆ཉ <ozh@ozh.org>
-rw-r--r-- | composer.json | 17 |
1 files changed, 16 insertions, 1 deletions
diff --git a/composer.json b/composer.json index 41898271..5b41af07 100644 --- a/composer.json +++ b/composer.json @@ -17,7 +17,12 @@ }, "require": { "php": ">=7.4", + "ext-dom": "*", + "ext-filter": "*", + "ext-hash": "*", + "ext-pcre": "*", "ext-pdo": "*", + "ext-pdo_mysql": "*", "ozh/bookmarkletgen": "^1.2", "rmccue/requests" : "^2.0", "pomo/pomo" : "^1.4", @@ -28,6 +33,9 @@ "symfony/polyfill-intl-idn": "^1.17", "spatie/array-to-xml": "^2.14" }, + "require-dev": { + "ext-ctype": "*" + }, "config": { "vendor-dir": "includes/vendor", "platform": { @@ -40,8 +48,15 @@ } }, "suggest": { + "ext-bcmath": "May be needed to read GeoIP database (or ext-gmp)", + "ext-curl": "Required for API usage", + "ext-gmp": "May be needed to read GeoIP database (or ext-bcmath)", + "ext-iconv": "For safer input handling", + "ext-json": "For faster API performance", "ext-mbstring": "For best performance", - "ext-curl": "Required for API usage" + "ext-openssl": "To fetch titles from HTTPS sites", + "ext-posix": "May be needed on certain PHP versions", + "ext-zlib": "For best performance" }, "scripts": { "post-update-cmd": "bash ./includes/vendor/build-script/yourls-build.sh ./includes/vendor" |