mahimahi/gitlab-deploy
Larablocks Analysis
mahimahi/gitlab-deploy works with Laravel 5 (latest release v0.3.6, Jul 4, 2017), which reached end of life: no more fixes, even for security.
Recommendation checks
Not advisedNot advised: no release or commit in over 2 years.
- No release or commit in over 2 years
- Supports only Laravel 5, past end of life
- No release in the last 12 months (last: Jul 4, 2017)
- 0 downloads a month (needs 10,000)
- 0 GitHub stars (needs 100)
State
Likely abandoned- No release or commit in over 2 years.
- Last stable release: Jul 4, 2017.
- No releases in the last 12 months.
- First released: Sep 20, 2015.
- 0 open issues on GitHub.
Data from Packagist and GitHub, checked by Larablocks on Nov 28, 2026.
| Install | |
|---|---|
composer require mahimahi/gitlab-deploy |
|
| Latest Version: | v0.3.6 |
| PHP: | >=5.6.4 |
| Laravel: | 5 |
| License: | MIT |
| Last Updated: | Jul 4, 2017 |
| Links: | GitHub · Packagist |
Deployments Laravel projects using Git webhooks
git-deploy-laravel assists deployment by receiving a push event message from your repository's server and automatically pulling project code.
This should work out-of-the-box with Laravel 5.x using with webhooks from GitHub and GitLab servers.
This is an internal tool to help with our common workflow pattern but please feel free to borrow, change and improve.
Installation
Step 1
Add the following to your composer.json file then update your composer as normal:
{
"require" : {
"orphans/git-deploy-laravel" : "dev-master"
}
}
Or run:
composer require orphans/git-deploy-laravel
Step 2
Add the following line to you providers in config/app.php:
Orphans\GitDeploy\GitDeployServiceProvider::class,
Step 3
Add the /git-deploy route to CSRF exceptions so your repo's host can send messages to your project.
In file in app/Http/Middleware/VerifyCsrfToken.php add:
protected $except = [
'git-deploy',
];
Usage
Add a webhook for http://your.website.url/git-deploy to your project in GitHub/GitLab and this package will take care of the rest. The webhook should fire on push-events.
Your website will automatically receive POST messages from the repo manager and perform a Git pull.
Configuration
In most cases the package will find the correct Git repository and Git executable but we advise publishing our config anyway because it will let you enable extra security options and email notifications.
To add custom configuration run:
php artisan vendor:publish --provider="Orphans\GitDeploy\GitDeployServiceProvider"
Then edit /config/gitdeploy.php, which has been well commented.
Future Plans
- Branch management (i.e. only tigger on changes to active branch).
- Email report on code conflicts that prevent a pull.
Related Packages
A Laravel package for syncing with upstream repositories (GitHub, GitLab, Bitbuc...
Version History
| Version | Released | PHP | Laravel | License |
|---|---|---|---|---|
| v0.3.6 | >=5.6.4 | >=5.4 | MIT | |
| v0.3.5 | >=5.6.4 | >=5.4 | MIT | |
| v0.3.4 | >=5.6.4 | >=5.4 | MIT | |
| v0.3.3 | >=5.6.4 | >=5.4 | MIT | |
| v0.3.2 | >=5.6.4 | >=5.4 | MIT | |
| v0.3.1 | >=5.6.4 | >=5.4 | MIT | |
| v0.2.0 | >=5.6.4 | >=5.4 | MIT | |
| 0.1.0 | ~5 | MIT |