Ion Icon Ionnet.dev

PHPAuto Generator

Category: Utility

PHPAuto is a small cli tool for generating an PHP autoload.php file for your namespace utilizing project. All you need to do is run this tool in your php root and import the new `autoload.php` file in your php endpoints. For Single page applications you can easily import it in the start of your `index.php`. Example: ``` cd /var/www/html/mywebsite ``` phpauto -d # -d is used for dumping the result into an autoload.php file. Add the following to the top of your `index.php` ``` require(__DIR__ . "/autoload.php"); ```