承接 awaisjameel/laravel-cpanel-hosting 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

awaisjameel/laravel-cpanel-hosting

最新稳定版本:v1.0.0

Composer 安装命令:

composer require awaisjameel/laravel-cpanel-hosting

包简介

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

README 文档

README

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

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 -> recursive copy)
  • Installer command for config + root index.php and .htaccess stubs
  • Dedicated deploy logging channel
  • Optional MySQL legacy index-length compatibility

Installation

composer require awaisjameel/laravel-cpanel-hosting

Run installer:

php artisan cpanel-hosting:install

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

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

  • 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

composer test

统计信息

  • 总下载量: 0
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 5
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 0
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2026-02-10

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固