This repository is a demostration of changes in the crazywhalecc/static-php-cli
project
for a custom project without forking.
Example php extension: pdo_snowflake
Question: crazywhalecc/static-php-cli#687 PR: crazywhalecc/static-php-cli#691
git clone [email protected]:yoramdelangen/vendored-static-php-cli-custom-project.git
cd vendored-static-php-cli-custom-project
composer install
# of course all other commands beforehand needs to be ran.
# my Macbook is prepared, therefore i dont need to setup static-php-cli envrionment
# Download all necessary sources
bin/spc download --for-extensions "snowflake" --shallow-clone
# start compiling
bin/spc build --build-cli "pdo,snowflake" --debug
- After successfull compiling it failes to run
php -ri pdo_snowflake
due to pdo_snowflake extension is a dynamic linked object. - I made a "custom" spc binary. It would be nice todo it without, and it would be possible.
- Allow for changes in the BuilderProvider to manually
builder->addLib
andbuilder->addExt
with manual instances. - Allow for custom commands (custom
spc
argument). - Allow to extend ext.json, lib.json, source.json etc.
- Dynamic load anything in the namespace (
App\builder\xxxx
and folderssrc/builder/extension
andsrc/builder/(linux|macos|unix|windows)/library/*