2017 © Pedro Peláez
 

library laravel_precommit

A git pre-commit hook to Laravel apps.

image

zabaala/laravel_precommit

A git pre-commit hook to Laravel apps.

  • Friday, November 24, 2017
  • by zabaala
  • Repository
  • 2 Watchers
  • 44 Stars
  • 257 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 4 Forks
  • 1 Open issues
  • 4 Versions
  • 1 % Grown

The README.md

Laravel pre-commit

A Laravel package to analyze your PHP code and check your PHPUnit tests before commit your code., (*1)

Requirements

  • PHP >= 7.0.0
  • phpunit/phpunit ~6.0
  • squizlabs/php_codesniffer ~6.0

How to install

1. Include package dependencie into composer.json:

composer require zabaala/laravel-pre-commit

2. Discover the package Service Provider

If you're using Laravel 5.5 version, this package will be auto-discovered. But if you're using any other Laravel 5 version, you will need add the PreCommitServiceProvider inside of your config/app.php file:, (*2)

// ...
\Zabaala\PreCommit\PreCommitServiceProvider::class,

3. Create the pre-commit file

Create a pre-commit file in: .git/hooks/pre-commit with the content below:, (*3)

#!/bin/bash

./artisan git:pre-commit

Usage

Modify and commit any file., (*4)

License

MIT, (*5)

The Versions

24/11 2017

0.1.2.x-dev

0.1.2.9999999-dev

A git pre-commit hook to Laravel apps.

  Sources   Download

MIT

The Requires

 

16/11 2017

dev-master

9999999-dev

A git pre-commit hook to Laravel apps.

  Sources   Download

MIT

The Requires

 

16/11 2017

v0.1.1

0.1.1.0

A git pre-commit hook to Laravel apps.

  Sources   Download

MIT

The Requires

 

16/11 2017

v0.1.0

0.1.0.0

A git pre-commit hook to Laravel apps.

  Sources   Download

MIT

The Requires