PHPackages                             awaisjameel/laravel-cpanel-hosting - 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. awaisjameel/laravel-cpanel-hosting

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

awaisjameel/laravel-cpanel-hosting
==================================

A robust, secure, and production-ready Laravel package that makes deploying Laravel applications on \*\*cPanel / shared hosting\*\* painless and professional.

v1.0.0(3mo ago)00[2 PRs](https://github.com/awaisjameel/laravel-cpanel-hosting/pulls)MITPHPPHP ^8.2CI passing

Since Feb 10Pushed 1mo agoCompare

[ Source](https://github.com/awaisjameel/laravel-cpanel-hosting)[ Packagist](https://packagist.org/packages/awaisjameel/laravel-cpanel-hosting)[ Docs](https://github.com/awaisjameel/laravel-cpanel-hosting)[ GitHub Sponsors](https://github.com/awaisjameel)[ RSS](/packages/awaisjameel-laravel-cpanel-hosting/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (1)Dependencies (13)Versions (4)Used By (0)

Laravel cPanel Hosting
======================

[](#laravel-cpanel-hosting)

Laravel package for secure shared-hosting deployment endpoints and cPanel-friendly root hosting setup.

Features
--------

[](#features)

- Secure deploy endpoints with token or webhook signature validation
- Configurable deployment pipeline (`/deploy`)
- `.env` sync with optional backup and required-key validation
- Storage link fallback (`symlink` -&gt; recursive copy)
- Installer command for config + root `index.php` and `.htaccess` stubs
- Dedicated deploy logging channel
- Optional MySQL legacy index-length compatibility

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

[](#installation)

```
composer require awaisjameel/laravel-cpanel-hosting
```

Run installer:

```
php artisan cpanel-hosting:install
```

Configuration
-------------

[](#configuration)

Publish config manually if needed:

```
php artisan vendor:publish --tag="cpanel-hosting-config"
```

Key env values:

```
CPANEL_DEPLOY_ENABLED=false
CPANEL_DEPLOY_TOKEN=
CPANEL_DEPLOY_WEBHOOK_SECRET=
CPANEL_DEPLOY_PREFIX=deploy
CPANEL_DEPLOY_ALLOWED_IPS=
CPANEL_DEPLOY_LOG_CHANNEL=deploy
```

Endpoints
---------

[](#endpoints)

When enabled, routes are exposed under `CPANEL_DEPLOY_PREFIX` (default `deploy`):

- `GET /deploy` full pipeline
- `GET /deploy/sync-env`
- `GET /deploy/clear`
- `GET /deploy/migrate`
- `GET /deploy/migrate-fresh`
- `GET /deploy/cache`
- `GET /deploy/queue-restart`
- `GET /deploy/storage-link`
- `GET /deploy/maintenance-down`
- `GET /deploy/maintenance-up`
- `GET /deploy/optimize`
- `GET /deploy/health`

Authentication:

- `X-Deploy-Token: {token}` header (preferred)
- `?token={token}` query parameter
- `X-Hub-Signature-256` / `X-Gitlab-Token` webhook verification when configured

Security Notes
--------------

[](#security-notes)

- Keep `CPANEL_DEPLOY_TOKEN` secret and rotate on exposure.
- Prefer header token over query token.
- Restrict with `CPANEL_DEPLOY_ALLOWED_IPS` when possible.
- Do not expose deploy routes with `APP_DEBUG=true`.
- `migrate-fresh` is destructive.

Testing
-------

[](#testing)

```
composer test
```

###  Health Score

37

—

LowBetter than 83% of packages

Maintenance87

Actively maintained with recent releases

Popularity0

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity48

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

Unknown

Total

1

Last Release

97d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/8478f5cd00831255bda5f4ab259a8761a8001142756ab90bf8804388a78b2036?d=identicon)[awaisjameel](/maintainers/awaisjameel)

---

Top Contributors

[![awaisjameel](https://avatars.githubusercontent.com/u/9046343?v=4)](https://github.com/awaisjameel "awaisjameel (5 commits)")

---

Tags

laravelAwaisJameellaravel-cpanel-hosting

###  Code Quality

TestsPest

Static AnalysisPHPStan

Code StyleLaravel Pint

### Embed Badge

![Health badge](/badges/awaisjameel-laravel-cpanel-hosting/health.svg)

```
[![Health](https://phpackages.com/badges/awaisjameel-laravel-cpanel-hosting/health.svg)](https://phpackages.com/packages/awaisjameel-laravel-cpanel-hosting)
```

###  Alternatives

[spatie/laravel-prometheus

Export Laravel metrics to Prometheus

2651.3M6](/packages/spatie-laravel-prometheus)[bezhansalleh/filament-shield

Filament support for `spatie/laravel-permission`.

2.8k2.9M88](/packages/bezhansalleh-filament-shield)[spatie/laravel-health

Monitor the health of a Laravel application

86910.0M83](/packages/spatie-laravel-health)[timokoerber/laravel-one-time-operations

Run operations once after deployment - just like you do it with migrations!

6481.7M11](/packages/timokoerber-laravel-one-time-operations)[spatie/laravel-horizon-watcher

Automatically restart Horizon when local PHP files change

2631.9M](/packages/spatie-laravel-horizon-watcher)[spatie/laravel-livewire-wizard

Build wizards using Livewire

4061.0M4](/packages/spatie-laravel-livewire-wizard)

PHPackages © 2026

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