git404hub

what is git-phpcs-hooks fr?

yesmeck/git-phpcs-hooks — explained in plain English

Analysis updated 2026-07-07 · repo last pushed 2012-06-26

2ShellAudience · developerComplexity · 2/5DormantSetup · moderate

tl;dr

Shell scripts that automatically check your PHP code for style errors before you commit, blocking bad code from entering your project.

vibe map

mindmap
  root((repo))
    What it does
      Checks PHP style
      Blocks bad commits
      Runs PHPCS linter
    Tech stack
      Shell scripts
      Git hooks
      PHP CodeSniffer
    Use cases
      Enforce code style
      Catch formatting errors
      Reduce manual review
    Audience
      PHP dev teams
      Senior developers
    Limitations
      No README
      Minimal docs

Code map

Detail Auto

An interactive map of this repo's files and how they connect — its source is parsed live in your browser. Click Visualize to build it.

filefunction / class

what do people make with this?

VIBE 1

Enforce PHP coding standards automatically before any code is committed to version control.

VIBE 2

Stop developers from committing code with formatting violations or style issues.

VIBE 3

Free up senior developers to focus on logic and architecture instead of style nitpicks in code reviews.

what's the stack?

ShellGit HooksPHP CodeSniffer

how it stacks up fr

yesmeck/git-phpcs-hookschrisor-dev/claude-autosyncdangerousyams/muxer
Stars222
LanguageShellShellShell
Last pushed2012-06-26
MaintenanceDormant
Setup difficultymoderatemoderatemoderate
Complexity2/53/53/5
Audiencedeveloperdeveloperdeveloper

Figures from each repo's GitHub metadata at analysis time.

how do i run it?

Difficulty · moderate time til it works · 30min

Requires PHP CodeSniffer (PHPCS) to be installed and configured on your machine before the hooks will work.

in plain english

This project, git-phpcs-hooks, is a set of tools that automatically checks your PHP code for style violations and common errors right before you commit it to your version control system. It helps developers catch sloppy formatting or potential bugs early, so the codebase stays clean and consistent without anyone having to manually review basic style issues. In everyday terms, it acts like a helpful gatekeeper. When a developer tries to save their work using Git, these scripts step in and run an automated linter called PHPCS (PHP Code Sniffer) on the changed files. If the code doesn't follow the established formatting rules, the scripts will stop the commit and point out exactly what needs to be fixed. Once the developer corrects the issues, they can try committing again. This would be used by PHP development teams who want to maintain a certain level of code quality with minimal friction. For example, if a team agrees that all PHP files should use a specific indentation style or naming convention, this tool enforces that rule automatically. It saves a senior developer from having to leave comments on a pull request asking a teammate to fix their spacing, letting the human review focus on the actual logic and architecture instead. Because the repository does not include a detailed README, there is no further documentation on installation steps, specific configuration options, or how to customize the underlying rules. However, based on the project's name and primary language, it is clear that these are simple shell scripts designed to integrate seamlessly with Git's built-in hook system, automating the quality check process locally on a developer's own machine before the code is ever shared with the rest of the team.

prompts (copy fr)

prompt 1
Set up git-phpcs-hooks in my PHP project so that PHPCS runs automatically before every Git commit and blocks commits with style violations.
prompt 2
Configure these Git hook shell scripts to use a specific PHPCS coding standard, like PSR-12, when checking my PHP files before commit.
prompt 3
Help me troubleshoot why my Git pre-commit hook from git-phpcs-hooks is not running PHPCS on staged PHP files.

Frequently asked questions

what is git-phpcs-hooks fr?

Shell scripts that automatically check your PHP code for style errors before you commit, blocking bad code from entering your project.

What language is git-phpcs-hooks written in?

Mainly Shell. The stack also includes Shell, Git Hooks, PHP CodeSniffer.

Is git-phpcs-hooks actively maintained?

Dormant — no commits in 2+ years (last push 2012-06-26).

How hard is git-phpcs-hooks to set up?

Setup difficulty is rated moderate, with roughly 30min to a first successful run.

Who is git-phpcs-hooks for?

Mainly developer.

peek the repo → explain another one

This repo across BitVibe Labs

double-check against the repo, no cap.