dunglas / frankenphp

🧟 The modern PHP app server
https://frankenphp.dev
MIT License
6.64k stars 218 forks source link

phpinfo command #702

Open shyim opened 5 months ago

shyim commented 5 months ago

Describe you feature request

Is your feature request related to a problem? Please describe. It would be nice to have frankenphp php-info and then see the same as creating a file with <?php phpinfo(); and running on it frankenphp php-cli <file>

It's just for

Describe the solution you'd like Create the file manually and run frankenphp php-cli

Describe alternatives you've considered A clear and concise description of any alternative solutions or features you've considered.

dunglas commented 5 months ago

What would be even better is to support the same flags as the official PHP CLI for frankenphp php-cli. So we would do frankenphp php-cli -i.

This should be a (somewhat) easy pick, as frankenphp php-cli is basically a copy/paste/adapt of the official PHP CLI SAPI.

kkovacs commented 5 months ago

Seconded: it would be awesome to be able to use the frankenphp binary in lieu of a php binary -- maybe when it is softlinked to the name php (like busybox does)?

That would allow one to run php artisan ... commands, use composer, etc with only the frankenphp binary...