PHP code example of lkrms / pretty-php

1. Go to this page and download the library: Download lkrms/pretty-php 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/ */

    

lkrms / pretty-php example snippets

shell
wget -O pretty-php.phar https://github.com/lkrms/pretty-php/releases/latest/download/pretty-php.phar
shell
php pretty-php.phar --version
shell
chmod +x pretty-php.phar
shell
./pretty-php.phar --version
shell
wget -O pretty-php.phar https://github.com/lkrms/pretty-php/releases/latest/download/pretty-php.phar
wget -O pretty-php.phar.asc https://github.com/lkrms/pretty-php/releases/latest/download/pretty-php.phar.asc
gpg --recv-keys 0xE8CC5BC780B581F2
gpg --verify pretty-php.phar.asc pretty-php.phar
shell
phive install lkrms/pretty-php
shell
./tools/pretty-php --version
shell
yay -S pretty-php
shell
brew install lkrms/misc/pretty-php
shell
pretty-php bootstrap.php src
shell
pretty-php --diff bootstrap.php src
shell
pretty-php --help