Programmers Stack Exchange is a question and answer site for professional programmers interested in conceptual questions about software development. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

just because i think we are not using the full potential of all possibilites here yet: What Pre/Post Commit Hooks (i.e. PHPUnit, PHPDoc) do you people use on your Team Git/SVN Servers? By now we do use a minification script (sadly only removes unneccessary space and comments and merges files), PHPDoc, PHPUnit and that's it already.

Any good ideas that might be usefull as well?

share|improve this question
up vote 2 down vote accepted

We use a Jenkins setup that runs Sebastiann Bergman's default template, including pdepend, phploc, phpmd, to analyse style quality, architecture quality and the likes.

We've already greatly improved the quality of our codebase since we started using it a few weeks ago :)

share|improve this answer
Actually someone over here already started working with Jenkins a day before i posted this question. I too find it very usefull so far. Thanks. – Andresch Serj Aug 15 '11 at 10:02

I use a pre-commit hook that checks for proper indentation and styling.

share|improve this answer
Well this really can't have only one valid answer i guess and i aparently don't have enough reputation for upvoting yet but i'd like to point out that i do thank you for your answer. – Andresch Serj Aug 15 '11 at 10:01

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.