Open-Awesome
CategoriesAlternativesStacksSelf-HostedExplore
Open-Awesome

© 2026 Open-Awesome. Curated for the developer elite.

TermsPrivacyAboutGitHubRSS
  1. Home
  2. GitHub Actions
  3. PHP Coding Standards Fixer Action

PHP Coding Standards Fixer Action

Dockerfile3.26.0

A GitHub Action that runs PHP-CS-Fixer to automatically fix PHP code style issues in your CI/CD pipeline.

GitHubGitHub
193 stars36 forks0 contributors

What is PHP Coding Standards Fixer Action?

php-cs-fixer-ga is a GitHub Action that runs PHP-CS-Fixer to automatically fix PHP code style issues in CI/CD pipelines. It integrates PHP-CS-Fixer into GitHub workflows, allowing developers to enforce consistent coding standards automatically on every push or pull request. The action simplifies setup with Docker-based execution and supports custom configurations.

Target Audience

PHP developers and teams using GitHub for version control who want to automate code style enforcement in their CI/CD pipelines.

Value Proposition

It provides a zero-configuration way to run PHP-CS-Fixer in GitHub Actions, with built-in support for caching, changed-file optimization, and custom arguments. Developers choose it for its simplicity and seamless integration with existing GitHub workflows.

Overview

GithubAction for PHP-CS-Fixer

Use Cases

Best For

  • Automatically fixing PHP code style violations in CI/CD pipelines
  • Enforcing consistent coding standards across PHP projects
  • Integrating PHP-CS-Fixer with GitHub Actions workflows
  • Running code style checks only on changed files to save time
  • Setting up automated linting for PHP repositories on GitHub
  • Using Docker-based PHP-CS-Fixer execution in CI environments

Not Ideal For

  • Projects using CI/CD platforms other than GitHub Actions, such as GitLab CI or Jenkins
  • Teams that prefer running PHP-CS-Fixer locally via Composer scripts without Docker overhead
  • Environments with security policies restricting Docker container execution
  • Small or solo projects where manual code style checks suffice and CI setup is unnecessary

Pros & Cons

Pros

Docker Consistency

Runs as a Docker container, ensuring identical PHP-CS-Fixer execution across all GitHub Actions workflows, eliminating environment discrepancies.

Easy Integration

Provides copy/paste YAML examples for common use cases, allowing quick setup with minimal configuration overhead.

Cache Support

Integrates with GitHub Actions cache to store .php-cs-fixer.cache, speeding up subsequent runs as demonstrated in the README.

Changed Files Optimization

Configurable to run only on changed files using --path-mode=intersection, saving CI time for large codebases.

Cons

Prior Configuration Required

Requires an existing .php-cs-fixer.dist.php file, adding initial setup steps before the action can be used effectively.

Docker Overhead

Running as a Docker container introduces additional resource usage and slower startup compared to native PHP execution.

Complex Advanced Setup

Implementing changed files optimization requires integrating with third-party actions and custom shell scripts, increasing configuration complexity.

Frequently Asked Questions

Quick Stats

Stars193
Forks36
Contributors0
Open Issues4
Last commit7 days ago
CreatedSince 2018

Tags

#automated-fixes#php-cs-fixer#workflow-automation#ci-cd#code-quality#docker#php#linting#github-actions

Built With

G
GitHub Actions
D
Docker

Included in

GitHub Actions27.6k
Auto-fetched 11 hours ago

Related Projects

wemake-python-styleguidewemake-python-styleguide

The strictest and most opinionated python linter ever!

Stars2,898
Forks429
Last commit1 day ago
Show and auto-fix linting errors for many programming languagesShow and auto-fix linting errors for many programming languages

✨ GitHub Action for detecting and auto-fixing lint errors

Stars608
Forks145
Last commit23 hours ago
Lint Pull Request commits with commitlintLint Pull Request commits with commitlint

Lints Pull Request commits with commitlint

Stars402
Forks67
Last commit6 months ago
Run dotenv-linter - Lints your .env files like a charm, with optional reviewdog output on the PRRun dotenv-linter - Lints your .env files like a charm, with optional reviewdog output on the PR

:relaxed: Linting dotenv files like a charm!

Stars304
Forks12
Last commit20 hours ago
Community-curated · Updated weekly · 100% open source

Found a gem we're missing?

Open-Awesome is built by the community, for the community. Submit a project, suggest an awesome list, or help improve the catalog on GitHub.

Submit a projectStar on GitHub