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

This commit is contained in:
Alexander Over
2025-02-06 08:44:39 +01:00
parent 21de1a2291
commit 9b809a074f
3 changed files with 75 additions and 0 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)