Closed ricomonster closed 5 years ago
What do you mean by implementation of composer packages?
PIB is just a PHP interpreter running inside a browser. If you want to use compose packages, you can package or load dynamically the entire vendor folder into emscripten filesystem and include vendor/autoload.php
as usual.
I assume by you saying including to emscripten filesystem is by using the flag --preload-file
?
Yeah, --preload-file
or load the file in JavaScript.
i have it loaded but after i included include('vendor/autoload.php');
in the code, the succeeding code below it doesn't seem to run.
i set the assertions flag to 1 and when i run the code, it show this message: Calling stub instead of sigaction()
What composer packages are you using?
@oraoto
Is it also possible to include files and directories (composer's vendor directory) dynamically after building? Or to dynamically build them? What do you mean with "load the file in JavaScript"?
Also, is it possible to preload directory (instead of --preload-file
)?
Does pib supports implementation of composer packages?