mirror of
https://github.com/crazywhalecc/static-php-cli.git
synced 2026-07-25 01:45:35 +08:00
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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user