PHPackages                             hungthai1401/laravel-pre-commit - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. hungthai1401/laravel-pre-commit

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

hungthai1401/laravel-pre-commit
===============================

A git pre-commit hook to Laravel apps.

1.0.0(5y ago)310MITPHPPHP &gt;=7.0.0CI failing

Since May 23Pushed 5y ago1 watchersCompare

[ Source](https://github.com/hungthai1401/laravel-pre-commit)[ Packagist](https://packagist.org/packages/hungthai1401/laravel-pre-commit)[ RSS](/packages/hungthai1401-laravel-pre-commit/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (1)Dependencies (9)Versions (2)Used By (0)

Laravel GIT pre-commit hook
---------------------------

[](#laravel-git-pre-commit-hook)

[![GitHub release (latest by date)](https://camo.githubusercontent.com/800fe91d3e4565a0d1773623dfb53dc4e6d3bc8f1a41a9baf4c025b9570be68c/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f762f72656c656173652f68756e6774686169313430312f6c61726176656c2d7072652d636f6d6d6974)](https://camo.githubusercontent.com/800fe91d3e4565a0d1773623dfb53dc4e6d3bc8f1a41a9baf4c025b9570be68c/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f762f72656c656173652f68756e6774686169313430312f6c61726176656c2d7072652d636f6d6d6974)[![Build Status](https://camo.githubusercontent.com/acef08e3606df83f4eb3e7a04ee75d327b6dd9418134273c911d46c81bd91201/68747470733a2f2f7472617669732d63692e6f72672f68756e6774686169313430312f6c61726176656c2d7072652d636f6d6d69742e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/hungthai1401/laravel-pre-commit)[![GitHub issues](https://camo.githubusercontent.com/4c1e59215f219c34cb660e1e4469a9f52e54542487c8aefefbfa12462231832d/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6973737565732f68756e6774686169313430312f6c61726176656c2d7072652d636f6d6d6974)](https://camo.githubusercontent.com/4c1e59215f219c34cb660e1e4469a9f52e54542487c8aefefbfa12462231832d/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6973737565732f68756e6774686169313430312f6c61726176656c2d7072652d636f6d6d6974)[![Packagist Stars](https://camo.githubusercontent.com/58126010c5049b82452f797b4074f49405f548cdb68d1014cc7f047f1e61e385/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f73746172732f68756e6774686169313430312f6c61726176656c2d7072652d636f6d6d6974)](https://camo.githubusercontent.com/58126010c5049b82452f797b4074f49405f548cdb68d1014cc7f047f1e61e385/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f73746172732f68756e6774686169313430312f6c61726176656c2d7072652d636f6d6d6974)[![GitHub All Releases](https://camo.githubusercontent.com/9b8ca1064bad579484dfacc8d8f98d5df04c874441e476ab132fe3eadaf6234f/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f646f776e6c6f6164732f68756e6774686169313430312f6c61726176656c2d7072652d636f6d6d69742f746f74616c)](https://camo.githubusercontent.com/9b8ca1064bad579484dfacc8d8f98d5df04c874441e476ab132fe3eadaf6234f/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f646f776e6c6f6164732f68756e6774686169313430312f6c61726176656c2d7072652d636f6d6d69742f746f74616c)

### Installation

[](#installation)

To install through Composer, by run the following command:

```
composer require hungthai1401/laravel-pre-commit --dev

```

The package will automatically register a service provider and alias.

Optionally, publish the package's configuration file by running:

```
php artisan vendor:publish --provider="HT\PreCommit\Providers\PreCommitServiceProvider" --tag=config

```

### Usage

[](#usage)

- Install git pre-commit hook:

```
php artisan git:pre-commit-hook:install

```

- Publish default PSR config (It will be create phpcs.xml in your root project.).

```
php artisan git:publish-phpcs

```

- Run test manually (made sure that you've added all changed files to git stage)

```
php artisan git:pre-commit

```

###  Health Score

23

—

LowBetter than 27% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community7

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

Unknown

Total

1

Last Release

2177d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/d5f59d09234e607b58b41512746b2cc9ba697d85486d9012a762aaf739aa30da?d=identicon)[hungthai1401](/maintainers/hungthai1401)

---

Top Contributors

[![hungthai1401](https://avatars.githubusercontent.com/u/22017922?v=4)](https://github.com/hungthai1401 "hungthai1401 (2 commits)")

---

Tags

laravelgitcommitpre-commit

###  Code Quality

TestsPHPUnit

Code StylePHP CS Fixer

### Embed Badge

![Health badge](/badges/hungthai1401-laravel-pre-commit/health.svg)

```
[![Health](https://phpackages.com/badges/hungthai1401-laravel-pre-commit/health.svg)](https://phpackages.com/packages/hungthai1401-laravel-pre-commit)
```

###  Alternatives

[barryvdh/laravel-ide-helper

Laravel IDE Helper, generates correct PHPDocs for all Facade classes, to improve auto-completion.

14.9k123.0M682](/packages/barryvdh-laravel-ide-helper)[wnx/laravel-stats

Get insights about your Laravel Project

1.8k1.8M7](/packages/wnx-laravel-stats)[livewire/flux

The official UI component library for Livewire.

9385.0M85](/packages/livewire-flux)[glhd/conveyor-belt

14797.0k](/packages/glhd-conveyor-belt)[igorsgm/laravel-git-hooks

🪝• Efficiently manage Git hooks in Laravel projects. Enhance code quality, save time on reviews, and prevent bugs from entering your repository.

2931.7k1](/packages/igorsgm-laravel-git-hooks)[getsolaris/laravel-make-service

A MVCS pattern create a service command for Laravel 5+

81161.3k](/packages/getsolaris-laravel-make-service)

PHPackages © 2026

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