A boilerplate for modern PHP libraries. This repository provides a clean, opinionated starting point for building, testing, and maintaining PHP packages.
- PHP 8.2+
- Pre-configured testing (PHPUnit)
- Static analysis (PHPStan)
- Code style (Laravel Pint)
- Automated refactoring (Rector)
- GitHub Actions workflow for CI
- Use as a GitHub template:
Click "Use this template" on the repository page to create your new package with this setup.
- Use Composer to scaffold a new package:
composer create-project cndrsdrmn/php-scaffold --prefer-source my-package
Contributions are welcome! Please read the contribution guidelines first.
PHP Scaffold was created by Candra Sudirman under the MIT license.