Download the PHP package jubeki/orbit-git without Composer
On this page you can find all versions of the php package jubeki/orbit-git. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download jubeki/orbit-git
More information about jubeki/orbit-git
Files in jubeki/orbit-git
Package orbit-git
Short Description Provide git features for the flat-file eloquent driver orbit
License MIT
Homepage https://github.com/Jubeki/orbit-git
Informations about the package orbit-git
Orbit Git Integration
Installation
Require this package with composer.
The service provider will be automatically registered using package discovery.
If you don't use auto-discovery you should add the service provider to the providers array in config/app.php
.
Customisation
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:
Customizing the commit message
The default is [AUTO] {event} {model} {primary_key}
. You can also change the commit message with the OrbitGit::resolveMessageUsing
method.
You can also overwrite messages for specific events which has a higher priority than the default OrbitGit::resolveMessageUsing
method:
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.
Change log
Please see CHANGELOG for more information on what has changed recently.
Contributing
Please see CONTRIBUTING for details.
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
- Julius Kiekbusch
- Ryan Chandler (Implemented Orbit and the original Git Integration)
- All Contributors
License
The MIT License (MIT). Please see License File for more information.