PHP Info at Command Line
Provide PHP Info at command line with the goal of providing most if not all the info you would see using phpinfo() when displayed on a web page.
- PHP Version
- System Info
- Build Date
- Configure Command(s)
- Server Api
- Virtual Directory Support
- Configuration File (php.ini) Path
- Loaded Configuration File
- Scan this dir for additional .ini file
- PHP API
- PHP Extensions
- Zend Extension
- Zend Extension Build
- PHP Extension Build
- Debug Build
- Thread Safety
- Zend Signal Handling
- Zend Memory Manager
- Zend Multibyte Support
- IPv6 Support
- DTrace
- Registered PHP Streams
- Registered Stream Socket Transports
- Registered Stream Filters
Requires phar-builder
Go to the root of the project and execute the following
php -d phar.readonly=0 phar-builder.phar package ./composer.json
chmod 0755 ./bin/phpinfocli.phar
mv ./bin/phpinfocli.phar /usr/local/bin