A curated collection of tools and best practices for PHP development.
- Streamlined local development (optionally with DDEV).
- Static analysis with PHPStan and Psalm.
- Automated code formatting with EasyCodingStandard.
- Automatic refactoring with Rector.
- Git hooks for quality enforcement.
- GitHub Actions for automatic code fixing - Move formatting and modernization to the cloud!
- IDE configuration for VS Code and PhpStorm.
You can use this booster with or without DDEV.
If you wish to use DDEV for local development, please install it by following their installation instructions.
- Site: https://terrorsquad.github.io/php-booster/
- Copilot repository guidance: .github/copilot-instructions.md
To integrate the booster into your existing PHP project:
-
In your PHP project root, check out a new branch and make sure you have no uncommitted changes.
-
Run the following command to integrate the booster into your project:
curl -sSL https://raw.githubusercontent.com/TerrorSquad/php-booster/main/booster/integrate_booster.sh | bash
-
Follow the instructions on the screen.
-
Commit the changes and push the branch to your repository.
The booster includes powerful GitHub Actions that automatically fix your PHP code style and apply modernizations on every push and pull request. This moves the code quality burden from local development machines to the cloud!
- Automatic Rector processing - Modernizes PHP code patterns and applies refactoring
- Automatic ECS fixes - Standardizes code style across your entire codebase
- Smart file detection - Only processes files that were actually changed
- Auto-commits fixes - Creates clean commits with applied changes
- PR integration - Comments on pull requests when fixes are applied
- Push code or create a pull request
- GitHub Actions automatically runs Rector and ECS on changed PHP files
- If fixes are needed, a new commit is automatically created
- You get consistently formatted and modernized code without any manual work
Include [skip auto-fix]
in your commit message to skip automatic processing:
git commit -m "feat: add new feature [skip auto-fix]"
For more details, see the Auto-Fix Documentation.
This repository is licensed under the MIT License. See LICENSE.md for details.