PHPackages                             salehhashemi/laravel-intelli-git - 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. salehhashemi/laravel-intelli-git

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

salehhashemi/laravel-intelli-git
================================

An intelligent Git helper package for Laravel applications. It utilizes OpenAI's GPT to analyze your Git repository, providing features such as automatic generation of commit messages based on staged changes.

v0.1.0(2y ago)131.5k↑166.7%1MITPHPPHP ^8.1

Since May 16Pushed 2y ago2 watchersCompare

[ Source](https://github.com/salehhashemi1992/laravel-intelli-git)[ Packagist](https://packagist.org/packages/salehhashemi/laravel-intelli-git)[ Docs](https://github.com/salehhashemi1992/laravel-intelli-git)[ RSS](/packages/salehhashemi-laravel-intelli-git/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (2)Dependencies (5)Versions (4)Used By (0)

Laravel IntelliGit
==================

[](#laravel-intelligit)

[![Latest Version on Packagist](https://camo.githubusercontent.com/b5fa8e8d336961715400bc6b15ccde804fa47f1e0ed50d2644980248cf2b5027/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f73616c656868617368656d692f6c61726176656c2d696e74656c6c692d6769742e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/salehhashemi/laravel-intelli-git)[![Total Downloads](https://camo.githubusercontent.com/9240d910c60f7d141f4453cdb79fe59072ec9a43c0be7a54a6ef485d5b58e691/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f73616c656868617368656d692f6c61726176656c2d696e74656c6c692d6769742e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/salehhashemi/laravel-intelli-git)[![GitHub Actions](https://camo.githubusercontent.com/a30a4ecdeed5376162d0d5ec9a354ac15804df4c89ab736155cc9c60631dba9c/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f73616c656868617368656d69313939322f6c61726176656c2d696e74656c6c692d6769742f72756e2d74657374732e796d6c3f6272616e63683d6d61696e266c6162656c3d7465737473)](https://github.com/salehhashemi1992/laravel-intelli-git/actions/workflows/run-tests.yml)[![StyleCI](https://camo.githubusercontent.com/610bf42e8f5c93a88c28c0f02b8ccec2e29c3bc0b00dbf3c407bdc5b4b0af4fb/68747470733a2f2f6769746875622e7374796c6563692e696f2f7265706f732f3634303336363830332f736869656c643f6272616e63683d6d61696e)](https://github.styleci.io/repos/640366803?branch=main)

An intelligent Laravel package to generate git commit messages using OpenAI.

[![Header Image](./assets/header.png)](./assets/header.png)

Features
--------

[](#features)

The following commands are implemented in this package:

- `ai:commit` - Generate a commit message and description using AI

Stay tuned for future updates as we continue to expand the capabilities of the Laravel Intelli Git package.

Installation
------------

[](#installation)

1. Install the package via composer:

    ```
    composer require salehhashemi/laravel-intelli-git

    ```
2. Publish the configuration file:

    ```
    php artisan vendor:publish --provider="Salehhashemi\LaravelIntelliGit\LaravelIntelliGitServiceProvider"

    ```
3. Add your OpenAI API key to the `.env` file:

    ```
    OPEN_AI_KEY=your_openai_key

    ```
4. Optionally, you can change the default model used by OpenAI in the `.env` file:

    ```
    OPEN_AI_MODEL=gpt-4

    ```

Usage
-----

[](#usage)

### ai:commit

[](#aicommit)

```
php artisan ai:commit

```

This command will automatically check for staged and unstaged changes in your git repository. If unstaged changes are found, it will ask you to stage them. Then, it will generate a commit message and description using OpenAI.

Examples
--------

[](#examples)

### ai:commit

[](#aicommit-1)

Here's an example of the command in action:

```
$ php artisan ai:commit
No staged changes found.
There are unstaged changes. Would you like to stage all changes? (yes/no) [no]:
> yes
All changes have been staged.
Generating commit message with AI, please wait...

Here are the AI-generated commit title and description:
Title
Refactor User model and improve validation
Description
This commit refactors the User model, specifically improving the validation logic by adding custom validation rules. It also includes updates to the relevant tests.

```

### Testing

[](#testing)

```
composer test
```

### Changelog

[](#changelog)

Please see [CHANGELOG](CHANGELOG.md) for more information what has changed recently.

Contributing
------------

[](#contributing)

Please see [CONTRIBUTING](CONTRIBUTING.md) for details.

Credits
-------

[](#credits)

- [Saleh Hashemi](https://github.com/salehhashemi1992)
- [All Contributors](../../contributors)

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

###  Health Score

29

—

LowBetter than 60% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity28

Limited adoption so far

Community12

Small or concentrated contributor base

Maturity45

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 85.7% 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 ~1 days

Total

3

Last Release

1091d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/57674418?v=4)[salehhashemi](/maintainers/salehhashemi)[@salehhashemi](https://github.com/salehhashemi)

---

Top Contributors

[![salehhashemi1992](https://avatars.githubusercontent.com/u/81674631?v=4)](https://github.com/salehhashemi1992 "salehhashemi1992 (18 commits)")[![hesami](https://avatars.githubusercontent.com/u/17120377?v=4)](https://github.com/hesami "hesami (2 commits)")[![StyleCIBot](https://avatars.githubusercontent.com/u/11048387?v=4)](https://github.com/StyleCIBot "StyleCIBot (1 commits)")

---

Tags

aicmdgitgptgpt4laravelopenailaravelaiopenaicode analysisgitmachine learningcommitversion controlgpt-4salehhashemigit helpergit automationrepository managementcommit messages

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan

Code StyleLaravel Pint

Type Coverage Yes

### Embed Badge

![Health badge](/badges/salehhashemi-laravel-intelli-git/health.svg)

```
[![Health](https://phpackages.com/badges/salehhashemi-laravel-intelli-git/health.svg)](https://phpackages.com/packages/salehhashemi-laravel-intelli-git)
```

PHPackages © 2026

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