PHP code example of crazywhalecc / static-php-cli
1. Go to this page and download the library: Download crazywhalecc/static-php-cli library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
crazywhalecc / static-php-cli example snippets
# php-cli
buildroot/bin/php -v
# phpmicro
echo ' echo "Hello world!\n";' > a.php
./spc micro:combine a.php -O my-app
./my-app
# php-fpm
buildroot/bin/php-fpm -v