PHPackages                             jubeki/orbit-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. jubeki/orbit-git

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

jubeki/orbit-git
================

Provide git features for the flat-file eloquent driver orbit

0.1.0(4y ago)169MITPHPPHP ^8.0

Since Mar 21Pushed 4y ago1 watchersCompare

[ Source](https://github.com/Jubeki/orbit-git)[ Packagist](https://packagist.org/packages/jubeki/orbit-git)[ Docs](https://github.com/Jubeki/orbit-git)[ RSS](/packages/jubeki-orbit-git/feed)WikiDiscussions main Synced 1mo ago

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

Orbit Git Integration
---------------------

[](#orbit-git-integration)

[![Packagist License](https://camo.githubusercontent.com/7928f3b44512cc60030a917065045ef4068a98893131667642c55079b754621a/68747470733a2f2f706f7365722e707567782e6f72672f4a7562656b692f6f726269742d6769742f6c6963656e73652e706e67)](http://choosealicense.com/licenses/mit/)[![Latest Stable Version](https://camo.githubusercontent.com/523fc9616e3170e44cdd764ed24976258cd47b231c0614aadb0f96fab64701fd/68747470733a2f2f706f7365722e707567782e6f72672f4a7562656b692f6f726269742d6769742f76657273696f6e2e706e67)](https://packagist.org/packages/jubeki/orbit-git)

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

[](#installation)

Require this package with composer.

```
composer require jubeki/orbit-git
```

The service provider will be automatically registered using [package discovery](https://laravel.com/docs/5.8/packages#package-discovery).

If you don't use auto-discovery you should add the service provider to the providers array in `config/app.php`.

```
// existing providers...
Jubeki\OrbitGit\OrbitGitServiceProvider::class,
```

Customisation
-------------

[](#customisation)

### Customising the author name and email

[](#customising-the-author-name-and-email)

By default, Orbit will use the system's name and email address when making commits to your repository. If you wish to change the name, use the `ORBIT_GIT_NAME` and `ORBIT_GIT_EMAIL` environment variables.

If you would like to use a more dynamic name and email address, you can use the `OrbitGit::resolveNameUsing` and `Orbit::resolveEmailUsing` methods instead:

```
use Jubeki\OrbitGit\Facades\OrbitGit;

public function boot()
{
    OrbitGit::resolveNameUsing(function () {
        return Auth::user()->name;
    });

    OrbitGit::resolveEmailUsing(function () {
        return Auth::user()->email;
    });
}
```

### Customizing the commit message

[](#customizing-the-commit-message)

The default is `[AUTO] {event} {model} {primary_key}`. You can also change the commit message with the `OrbitGit::resolveMessageUsing` method.

```
use Jubeki\OrbitGit\Facades\OrbitGit;

public function boot()
{
    OrbitGit::resolveMessageUsing(function ($event) {
        return (string) Str::of(config('orbit-git.message_template'))
                ->replace('{event}', $this->getTypeOfEvent($event))
                ->replace('{model}', class_basename($event->model))
                ->replace('{primary_key}', $event->model->getKey());
    });
}
```

You can also overwrite messages for specific events which has a higher priority than the default `OrbitGit::resolveMessageUsing` method:

```
use Jubeki\OrbitGit\Facades\OrbitGit;

public function boot()
{
    OrbitGit::resolveCreatedMessageUsing(function ($event) {
        return '...',
    });

    OrbitGit::resolveDeletedMessageUsing(function ($event) {
        return '...',
    });

    OrbitGit::resolveForceDeletedMessageUsing(function ($event) {
        return '...',
    });

    OrbitGit::resolveUpdatedMessageUsing(function ($event) {
        return '...',
    });
}
```

### Deploy with Laravel Forge

[](#deploy-with-laravel-forge)

You can add the following to the top of your deployment script to skip the deployment from commits made using Orbit on the production system.

```
if [[ $FORGE_DEPLOY_MESSAGE =~ ^\[AUTO\](.*)$ ]]; then
    echo "AUTOMATED COMMIT FROM THE SERVER DO NOT DEPLOY!!!"
    exit 0
fi
```

Change log
----------

[](#change-log)

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

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

[](#contributing)

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

### TODO

[](#todo)

- Commit only changed file by event instead of complete path
- Only push if wanted
- Allow queuing of Git commits (possible risk of timing issued if multiple people update the same model at the same time)

Credits
-------

[](#credits)

- [Julius Kiekbusch](https://github.com/Jubeki)
- [Ryan Chandler](http://github.com/ryangjchandler) (Implemented Orbit and the original Git Integration)
- [All Contributors](../../contributors)

License
-------

[](#license)

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

###  Health Score

22

—

LowBetter than 22% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity10

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity43

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

1519d ago

### Community

Maintainers

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

---

Top Contributors

[![Jubeki](https://avatars.githubusercontent.com/u/15707543?v=4)](https://github.com/Jubeki "Jubeki (7 commits)")

---

Tags

laravelgitorbit

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/jubeki-orbit-git/health.svg)

```
[![Health](https://phpackages.com/badges/jubeki-orbit-git/health.svg)](https://phpackages.com/packages/jubeki-orbit-git)
```

###  Alternatives

[gitscrum-community-edition/laravel-gitscrum

GitScrum is a project to help developer team. Git + Scrum = Team More Productive

2.9k2.0k](/packages/gitscrum-community-edition-laravel-gitscrum)[amphibee/laravel-pint-pre-commit

Laravel Pint pre-commit hook allow you to analyse your code with the awesome Laravel Pint.

1943.9k](/packages/amphibee-laravel-pint-pre-commit)[laravelplus/laravel-updater

A Laravel package for syncing with upstream repositories (GitHub, GitLab, Bitbucket, etc.)

201.7k](/packages/laravelplus-laravel-updater)[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.

131.5k](/packages/salehhashemi-laravel-intelli-git)

PHPackages © 2026

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