DEV Community

Cover image for Automation — PHP Code Formatting before(pre) git commit
Raksha for Canopas Software

Posted on

1 1

Automation — PHP Code Formatting before(pre) git commit

Who cares about code formatting and comments? Humans...

Imagine yourself fixing code style issues day after day. Wouldn't you want to do something more interesting by formatting code before committing?

Want to learn how to format code in PHP before committing to git repository?

Git hooks are scripts that will run when a certain event occurs in git like git push, git pull, git commit, etc…We can find git hooks at .git/hooks in a particular git repository.

Pre-commit is a git hook, that triggers custom scripts or commands during the execution of a git commit.

Here Automation - PHP Code Formatting before(pre) git commit to check out.

AWS GenAI LIVE image

Real challenges. Real solutions. Real talk.

From technical discussions to philosophical debates, AWS and AWS Partners examine the impact and evolution of gen AI.

Learn more

Top comments (0)

A Workflow Copilot. Tailored to You.

Pieces.app image

Our desktop app, with its intelligent copilot, streamlines coding by generating snippets, extracting code from screenshots, and accelerating problem-solving.

Read the docs

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay