Skip to content

Supercharge your PHP projects with Booster - automated setup for code quality tools, formatting, and development workflows. Seamless integration, supports DDEV

License

Notifications You must be signed in to change notification settings

TerrorSquad/php-booster

Repository files navigation

Booster

Integration Tests

A curated collection of tools and best practices for PHP development.

Key Features

  • 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.

Requirements

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.

Documentation

Adding to an Existing PHP Project

To integrate the booster into your existing PHP project:

  1. In your PHP project root, check out a new branch and make sure you have no uncommitted changes.

  2. 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
  3. Follow the instructions on the screen.

  4. Commit the changes and push the branch to your repository.

🤖 Automatic Code Fixing with GitHub Actions

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!

What It Does

  • 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

How It Works

  1. Push code or create a pull request
  2. GitHub Actions automatically runs Rector and ECS on changed PHP files
  3. If fixes are needed, a new commit is automatically created
  4. You get consistently formatted and modernized code without any manual work

Skip Auto-Fix

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.

License

This repository is licensed under the MIT License. See LICENSE.md for details.

About

Supercharge your PHP projects with Booster - automated setup for code quality tools, formatting, and development workflows. Seamless integration, supports DDEV

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 2

  •  
  •