A simple PHP project scaffolder that quickly sets up a structured PHP project with Composer autoload, clean routing, and optional Git integration. The scaffolded project is ready for development right out of the box.
- Root
index.phpbootstrap forwards all requests topublic/index.php - Central
.htaccessblocks access to non-public folders and routes requests cleanly - Custom
403.phppage to block access to non-public folders - Composer PSR-4 autoload support for your
src/folder - Optional Git initialization and first commit
- Self-delete option after scaffolding to keep your workspace clean
bin/ # CLI scripts
config/ # Configuration files
docs/ # Project documentation
public/ # Public web-accessible files (entrypoint here)
resources/ # Images, translations, and other assets
src/ # PHP source files
tests/ # PHPUnit tests
CHANGELOG.md # Changelog for project updates
CONTRIBUTING.md
LICENSE
README.md
composer.json Clone this repository or download scaffold.php and run:
php scaffold.php- Create the standard project folders and files
- Generate composer.json and Composer autoload
- Optionally initialize a Git repository and make the first commit
- Remove itself automatically after execution
- Install Composer dependencies (if any):
composer install- Start a local development server:
php -S localhost:8000 -t public- Open http://localhost:8000 in your browser to see the scaffold in action.
This scaffolder uses semantic versioning . Each release is tagged in Git for easy reference.
Please see CONTRIBUTING.md for guidelines on contributing to this project.
MIT License — see LICENSEfor details.