Most use grunt, Webpack and then Yeoman as an example to create a scaffolding, but you can do that with all Languages here with PHP.
You can also Scaffolden with Grunt and Webpack PHP projects and vice versa too. In addition, here comes more later on my repos.
This repo here is a prepared template from PHP MVC Advanced, you can either clone it in a folder of your choice.
If we have this, almost everything is done, we just have to clone the templates here, so download so we can use them.
/path/what/you/want/
git clone https://github.com/prod3v3loper/php-scaffold-template.git /path/what/you/want/php-scaffold-templates
Switch to the projects folder.
username$ cd /Users/username/projects/
Now we can add our template to our project by executing the following command.
/path/what/you/want/
projects$ php /path/what/you/want/php-scaffold-templates/php-scaffold-template/index.php
When we start then we get asked with which we can still adjust our project. If all questions are answered they will be considered and the files will be created.
prod3v3loper:netbeans tarim$ cd /Users/username/Sites/netbeans/your-project-folder
prod3v3loper:your-project-folder tarim$ php /Users/username/Projects/externTools/php-templates/php-scaffold-template/index.php
Welcome to PHP Scaffold, create your scaffold in seconds to start.
Your PHP Version: 7.1.16
Customer ? (php-scaffold-template) php-mvc
Project year ? (2019)
Project name ? (newsletter)
Installation complete!
That's it!
Now open the folder you have created in your Browser in the PHP envoirement.
Please an issue if you think something could be improved. Please submit Pull Requests when ever possible.
Samet Tarim prod3v3loper - All works