Add command to dump required PHP extensions based on vendor/composer/… (#599)

* Add command to dump required PHP extensions based on vendor/composer/installed.json, composer.lock, composer.json (in this order)

* remove unused use

* missing translation

* Adjust dump-extensions

* Add docs for dump-extension command

---------

Co-authored-by: crazywhalecc <jesse2061@outlook.com>
This commit is contained in:
Alexander Over
2025-03-07 03:46:07 +01:00
committed by GitHub
parent 34934368a2
commit 6b227d88ac
6 changed files with 220 additions and 5 deletions

View File

@@ -194,6 +194,8 @@ Basic usage for building php with some extensions:
# fetch all libraries
./bin/spc download --all
# dump a list of extensions required by your project
./bin/spc dump-extensions
# only fetch necessary sources by needed extensions (recommended)
./bin/spc download --for-extensions="openssl,pcntl,mbstring,pdo_sqlite"
# download pre-built libraries first (save time for compiling dependencies)