2017 © Pedro Peláez
 

library git-php-lint

Easily lint PHP files when commiting

image

m1ke/git-php-lint

Easily lint PHP files when commiting

  • Tuesday, August 5, 2014
  • by m1ke
  • Repository
  • 1 Watchers
  • 2 Stars
  • 46 Installations
  • Shell
  • 4 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 3 Versions
  • 0 % Grown

The README.md

Git PHP Lint

Require this with composer:, (*1)

php composer.phar require --dev m1ke/git-php-lint:1.0.0

Unfortunately this uses the post-install-cmd script in composer, which doesn't trigger for required dependencies. Once you've updated your packages run:, (*2)

./vendor/m1ke/git-php-lint/shell/setup

It will add a git pre-commit script to lint PHP files, via a symlink into the package., (*3)

Security Note

Symlinking to a shell script in a package which auto-upates could obviously be a risk. For this reason only install this package with a set version constraint; that way you'll get a fixed release which you can eyeball for security before you run it., (*4)

The Versions

05/08 2014

dev-master

9999999-dev

Easily lint PHP files when commiting

  Sources   Download

MIT

05/08 2014

1.0.2

1.0.2.0

Easily lint PHP files when commiting

  Sources   Download

MIT

29/07 2014

1.0.0

1.0.0.0

Easily lint PHP files when commiting

  Sources   Download

MIT