PHPackages                             nishtman/github-webhook-deployer - 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. nishtman/github-webhook-deployer

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

nishtman/github-webhook-deployer
================================

A Laravel package for GitHub webhook deployment

v0.0.2(1y ago)02MITPHPPHP ^8.2

Since May 29Pushed 1y agoCompare

[ Source](https://github.com/nishtman1366/github-webhook-deployer)[ Packagist](https://packagist.org/packages/nishtman/github-webhook-deployer)[ RSS](/packages/nishtman-github-webhook-deployer/feed)WikiDiscussions main Synced today

READMEChangelogDependencies (1)Versions (2)Used By (0)

GitHub Webhook Deployer
=======================

[](#github-webhook-deployer)

A Laravel package for automated GitHub repository deployment via webhooks.

Features
--------

[](#features)

- Secure webhook handling with per-repository secrets
- Multi-repository and multi-branch support
- Custom deployment commands per branch
- Supports Laravel, Node.js (e.g., Next.js), and other environments

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

[](#installation)

1. Require the package via composer (when published):

```
composer require nishtman/github-webhook-deployer
```

2. Publish and run migrations:

```
php artisan vendor:publish --tag=github-webhook-deployer-migrations
php artisan migrate
```

3. Register the webhook route in `routes/webhook.php`:

```
use Nishtman\GitHubWebhookDeployer\Http\Controllers\WebhookController;

Route::post('/github/deploy', [WebhookController::class, 'handle']);
```

4. Add webhook to your GitHub repo with content type `application/json` and a secret.

Usage
-----

[](#usage)

Use the built-in Artisan commands to manage repositories:

```
php artisan github:add-repo
php artisan github:list-repos
php artisan github:remove-repo
```

Database Structure
------------------

[](#database-structure)

- `github_repositories`: Repository name and secret
- `github_branches`: Associated branches, with local clone path and environment
- `github_commands`: Commands to run on each branch upon deploy

Example Commands
----------------

[](#example-commands)

Laravel branch:

- `git pull origin main`
- `composer install --no-dev --optimize-autoloader`
- `php artisan config:cache`
- `php artisan migrate --force`

Next.js branch:

- `git pull origin main`
- `pnpm install --force`
- `pnpm run build`
- `pm2 reload `

Security
--------

[](#security)

Each webhook is validated with a unique HMAC-SHA256 signature per repository.

License
-------

[](#license)

MIT

###  Health Score

25

—

LowBetter than 35% of packages

Maintenance47

Moderate activity, may be stable

Popularity2

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity39

Early-stage or recently created project

 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

400d ago

### Community

Maintainers

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

---

Top Contributors

[![nishtman1366](https://avatars.githubusercontent.com/u/51849295?v=4)](https://github.com/nishtman1366 "nishtman1366 (11 commits)")

### Embed Badge

![Health badge](/badges/nishtman-github-webhook-deployer/health.svg)

```
[![Health](https://phpackages.com/badges/nishtman-github-webhook-deployer/health.svg)](https://phpackages.com/packages/nishtman-github-webhook-deployer)
```

PHPackages © 2026

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