承接 nassirian/laravel-tunnel-manager 相关项目开发

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

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

nassirian/laravel-tunnel-manager

最新稳定版本:v0.0.2

Composer 安装命令:

composer require nassirian/laravel-tunnel-manager

包简介

Manage Cloudflare tunnels and subdomains in Laravel.

README 文档

README

Latest Version Build Status License

A Laravel package to manage Cloudflare Tunnels and automatically create subdomains via Artisan commands.

Features

  • ✅ Create new subdomains dynamically
  • ✅ Point subdomains to an existing Cloudflare Tunnel
  • ✅ Compatible with Laravel 9, 10, 11, and 12
  • ✅ Fully tested with PHPUnit
  • ✅ Easy installation and usage

Installation

Require the package via Composer:

composer require nassirian/laravel-tunnel-manager

Publish the configuration file

php artisan vendor:publish --tag=tunnelmanager-config

Set your .env

TUNNEL_MANAGER_API_TOKEN=your_cloudflare_api_token
TUNNEL_MANAGER_ZONE_ID=your_cloudflare_zone_id
TUNNEL_MANAGER_DOMAIN=yourdomain.com
TUNNEL_MANAGER_TUNNEL_UUID=your_tunnel_uuid

Usage

Create a new subdomain

php artisan tunnel:add-subdomain your-subdomain

This will create a DNS CNAME record:

your-subdomain.yourdomain.com → your-tunnel-uuid.cfargotunnel.com

Configuration

The configuration file is located at config/tunnelmanager.php. You can customize the following options:

  • api_token: Your Cloudflare API token.
  • zone_id: Your Cloudflare zone ID.
  • domain: Your domain name.
  • tunnel_uuid: The UUID of the tunnel you want to point the subdomain to.

Testing

The package is fully tested. To run the tests, use the following command:

./vendor/bin/phpunit --configuration packages/Nassirian/TunnelManager/phpunit.xml

Or if running inside your main Laravel app:

phpunit

Requirements:

  • PHP 8.1 or higher
  • Laravel 9, 10, 11, or 12
  • Cloudflare account with API token and zone ID

License

This package is licensed under the MIT License. See the LICENSE file for more information.

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2025-04-27

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固