PHPackages                             zabaala/laravel\_precommit - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. zabaala/laravel\_precommit

ActiveLibrary

zabaala/laravel\_precommit
==========================

A git pre-commit hook to Laravel apps.

v0.1.1(8y ago)464153MITPHPPHP &gt;=7.0.0

Since Nov 16Pushed 8y ago3 watchersCompare

[ Source](https://github.com/zabaala/laravel-pre-commit)[ Packagist](https://packagist.org/packages/zabaala/laravel_precommit)[ RSS](/packages/zabaala-laravel-precommit/feed)WikiDiscussions master Synced 3d ago

READMEChangelogDependencies (2)Versions (4)Used By (0)

Laravel pre-commit
==================

[](#laravel-pre-commit)

A Laravel package to analyze your PHP code and check your PHPUnit tests before commit your code.

Requirements
------------

[](#requirements)

- PHP &gt;= 7.0.0
- phpunit/phpunit ~6.0
- squizlabs/php\_codesniffer ~6.0

How to install
--------------

[](#how-to-install)

### 1. Include package dependencie into composer.json:

[](#1-include-package-dependencie-into-composerjson)

```
composer require zabaala/laravel-pre-commit

```

### 2. Discover the package Service Provider

[](#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:

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

### 3. Create the pre-commit file

[](#3-create-the-pre-commit-file)

Create a pre-commit file in: `.git/hooks/pre-commit` with the content below:

```
#!/bin/bash

./artisan git:pre-commit

```

Usage
-----

[](#usage)

Modify and commit any file.

License
-------

[](#license)

MIT

###  Health Score

29

—

LowBetter than 59% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity24

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity50

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~4 days

Total

3

Last Release

3094d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/43bb7eab4b1fcac5055f49b8c171503be94442ebeb9aa4322bfeafe04e6f636c?d=identicon)[zabaala](/maintainers/zabaala)

---

Top Contributors

[![zabaala](https://avatars.githubusercontent.com/u/4934492?v=4)](https://github.com/zabaala "zabaala (5 commits)")

### Embed Badge

![Health badge](/badges/zabaala-laravel-precommit/health.svg)

```
[![Health](https://phpackages.com/badges/zabaala-laravel-precommit/health.svg)](https://phpackages.com/packages/zabaala-laravel-precommit)
```

###  Alternatives

[drupal/coder

Coder is a library to review Drupal code.

3043.6M461](/packages/drupal-coder)[webmozarts/strict-phpunit

Enables type-safe comparisons of objects in PHPUnit

31252.7k5](/packages/webmozarts-strict-phpunit)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
