PHPackages                             nickdekruijk/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. nickdekruijk/deploy

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

nickdekruijk/deploy
===================

Automaticaly deploy your git projects with webhooks

1.1.0(6y ago)124MITPHPPHP &gt;=7.2.0

Since Dec 8Pushed 6y ago1 watchersCompare

[ Source](https://github.com/nickdekruijk/deploy)[ Packagist](https://packagist.org/packages/nickdekruijk/deploy)[ RSS](/packages/nickdekruijk-deploy/feed)WikiDiscussions master Synced 6d ago

READMEChangelog (2)DependenciesVersions (3)Used By (0)

Deploy
======

[](#deploy)

Automaticaly deploy your git projects with webhooks

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

[](#installation)

Begin by installing this package with composer.

`composer require nickdekruijk/deploy`

Set `APP_DEPLOY_SECRET` in your `.env` file.

```
APP_DEPLOY_SECRET=your_secret_here

```

Also edit `app/Http/Middleware/VerifyCsrfToken.php` to skip Csrf token check on the route by adding it to the $except array

```
    protected $except = [
        '/deploy-webhook',
    ];

```

Finaly add a new webhook to github (or your git provider) with the the url  and the `APP_DEPLOY_SECRET` value.

Deploy script
-------------

[](#deploy-script)

The controller will execute a shell script that does the actual deployment. By default it calls `deploy.sh` in the laravel projects root folder. You may need to set execute permission. For example this could contain:

```
#!/bin/sh
git pull origin master
composer install --no-interaction --prefer-dist --optimize-autoloader --no-dev
php artisan config:cache
php artisan route:cache
php artisan migrate --force

```

Notifications
-------------

[](#notifications)

If you want to enable email notifications for deployment errors add an emailaddress to your `.env` file with

```
APP_DEPLOY_NOTIFY_MAIL=user@domain.com

```

If you want notifications on successful deployments too and add

```
APP_DEPLOY_NOTIFY_SUCCESS=true

```

Config
------

[](#config)

If the Defaults don't fit your project publish the config file with

```
php artisan vendor:publish --provider="NickDeKruijk\Deploy\ServiceProvider"

```

And see the config file at `/config/deploy.php` and make changes where needed.

###  Health Score

24

—

LowBetter than 32% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity53

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 ~16 days

Total

2

Last Release

2336d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/0b01fc7c2c39bbe8f87b4afa70ffe1cf2bb787310e1d22fcfed6ae527d4573bb?d=identicon)[nickdekruijk](/maintainers/nickdekruijk)

---

Top Contributors

[![nickdekruijk](https://avatars.githubusercontent.com/u/607302?v=4)](https://github.com/nickdekruijk "nickdekruijk (9 commits)")

---

Tags

phplaravelwebhookdeployautodeploy

### Embed Badge

![Health badge](/badges/nickdekruijk-deploy/health.svg)

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

###  Alternatives

[renoki-co/laravel-php-k8s

Just a simple port of renoki-co/php-k8s for easier access in Laravel.

88218.2k](/packages/renoki-co-laravel-php-k8s)

PHPackages © 2026

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