PHPackages                             konstantinn/laravel-github-deploy - 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. [DevOps &amp; Deployment](/categories/devops)
4. /
5. konstantinn/laravel-github-deploy

ActiveLibrary[DevOps &amp; Deployment](/categories/devops)

konstantinn/laravel-github-deploy
=================================

Easy deploy laravel project to github.

0.1.1(6y ago)09MITPHPPHP ^7.2CI failing

Since Jan 27Pushed 6y ago1 watchersCompare

[ Source](https://github.com/k0nstantin777/laravel-github-deploy)[ Packagist](https://packagist.org/packages/konstantinn/laravel-github-deploy)[ RSS](/packages/konstantinn-laravel-github-deploy/feed)WikiDiscussions master Synced today

READMEChangelog (2)Dependencies (3)Versions (7)Used By (0)

Laravel GitHub Deploy
=====================

[](#laravel-github-deploy)

[![Latest Version on Packagist](https://camo.githubusercontent.com/aa3982fe3bc9e2ca9b69314bab84855d75fb6678c91e5c29d32c0f79fd742eb4/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6b6f6e7374616e74696e6e2f6c61726176656c2d6769746875622d6465706c6f793f7374796c653d666c61742d737175617265)](https://packagist.org/packages/konstantinn/laravel-github-deploy)[![MIT Licensed](https://camo.githubusercontent.com/55c0218c8f8009f06ad4ddae837ddd05301481fcf0dff8e0ed9dadda8780713e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265)](LICENSE.md)[![Total Downloads](https://camo.githubusercontent.com/9054d858b078ca076f9217190d575be30dbea6d5cd445d8b053010898d1188d9/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6b6f6e7374616e74696e6e2f6c61726176656c2d6769746875622d6465706c6f793f7374796c653d666c61742d737175617265)](https://packagist.org/packages/konstantinn/laravel-github-deploy)

About
-----

[](#about)

This package allows you to automate the publication of updates to your server, after publishing them to Github.

Install
-------

[](#install)

```
composer require konstantinn/laravel-github-deploy
```

Go to your remote server and set url git origin repository with user and pass:

```
git remote set-url origin https://USERNAME:PASSWORD@github.com/USERNAME/REPOSITORY.git
```

Publish config file deploy.php

```
php artisan vendor:publish --provider="Konstantinn\LaravelGitHubDeploy\DeployServiceProvider"

```

By default, the log is written to the file storage/logs/deploy.log, but you can change the path in the config file deploy.php

Open VerifyCsrfToken middleware and add route '/deploy' to except protected property:

```
class VerifyCsrfToken extends Middleware
{
    /**
     * Indicates whether the XSRF-TOKEN cookie should be set on the response.
     *
     * @var bool
     */
    protected $addHttpCookie = true;

    /**
     * The URIs that should be excluded from CSRF verification.
     *
     * @var array
     */
    protected $except = [
        '/deploy'
    ];
}
```

Go to your GitHub repository and create webhook with Payload Url:
Fill Secret field and copy this data and paste in .env file:

```
APP_DEPLOY_SECRET=GIH_HUB_HOOK_SECRET

```

Check request webhook in Recent Deliver part.

Whats all!

### Deploy Сommands

[](#deploy-сommands)

By default deploy runs next commands:

```
'commands' => [
    'git pull',
    'composer install --no-interaction --no-dev --prefer-dist',
    'php artisan migrate --force',
],
```

But you can add or modify commands in config file deploy.php.

### Contributors

[](#contributors)

- [@k0nstantin777](https://github.com/k0nstantin777) the original author of this package.

###  Health Score

21

—

LowBetter than 19% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity46

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

Every ~0 days

Total

6

Last Release

2293d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/780ed4d8748040dc99339d970f82d34b45a77bfb6962daaa83993cb5c847badd?d=identicon)[konstantinn](/maintainers/konstantinn)

---

Top Contributors

[![k0nstantin777](https://avatars.githubusercontent.com/u/26501402?v=4)](https://github.com/k0nstantin777 "k0nstantin777 (8 commits)")

---

Tags

laravelgithubdeploy

### Embed Badge

![Health badge](/badges/konstantinn-laravel-github-deploy/health.svg)

```
[![Health](https://phpackages.com/badges/konstantinn-laravel-github-deploy/health.svg)](https://phpackages.com/packages/konstantinn-laravel-github-deploy)
```

PHPackages © 2026

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