1. Go to this page and download the library: Download basemax/phpas 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/ */
basemax / phpas example snippets
/* Include Class */
with default options */
$autoStyle = new AutoStyle();
/* or with optional configuratoin */
$options = [
'identation' => ' ' // 4 spaces (default Tab)
];
$autoStyle = new AutoStyle($options);
/* Format code from file */
print $AS->loadFile("test.php") ."\n";
/* Format code from string */
print $AS->loadString("\nprint 'hi';\n") ."\n";