PHPackages                             nassirian/laravel-tunnel-manager - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. nassirian/laravel-tunnel-manager

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

nassirian/laravel-tunnel-manager
================================

Manage Cloudflare tunnels and subdomains in Laravel.

v0.0.2(1y ago)05MITPHPPHP ^8.1CI passing

Since Apr 27Pushed 1y ago1 watchersCompare

[ Source](https://github.com/nassirian/laravel-tunnel-manager)[ Packagist](https://packagist.org/packages/nassirian/laravel-tunnel-manager)[ RSS](/packages/nassirian-laravel-tunnel-manager/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (2)Dependencies (5)Versions (3)Used By (0)

Laravel Tunnel Manager
======================

[](#laravel-tunnel-manager)

[![Latest Version](https://camo.githubusercontent.com/12f041161cb3540d25741ad1986f25c554ee1efe9c4814ba1a97ba97648466d9/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6e617373697269616e2f6c61726176656c2d74756e6e656c2d6d616e616765722e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/nassirian/laravel-tunnel-manager)[![Build Status](https://github.com/nassirian/laravel-tunnel-manager/actions/workflows/run-tests.yml/badge.svg)](https://github.com/nassirian/laravel-tunnel-manager/actions)[![License](https://camo.githubusercontent.com/8f2f92b1b47585fe7650f10416eda905623d80422204b7ca4c58e6ff6553598c/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6963656e73652f6e617373697269616e2f6c61726176656c2d74756e6e656c2d6d616e616765722e7376673f7374796c653d666c61742d737175617265)](https://github.com/nassirian/laravel-tunnel-manager/blob/main/LICENSE)

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

---

Features
--------

[](#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
------------

[](#installation)

Require the package via Composer:

```
composer require nassirian/laravel-tunnel-manager
```

### Publish the configuration file

[](#publish-the-configuration-file)

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

### Set your .env

[](#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

[](#usage)

#### Create a new subdomain

[](#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

[](#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

[](#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:

[](#requirements)

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

### License

[](#license)

This package is licensed under the MIT License. See the [LICENSE](LICENSE) file for more information.

###  Health Score

25

—

LowBetter than 37% of packages

Maintenance48

Moderate activity, may be stable

Popularity4

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity37

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

Every ~0 days

Total

2

Last Release

381d ago

### Community

Maintainers

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

---

Top Contributors

[![nassirian](https://avatars.githubusercontent.com/u/5202490?v=4)](https://github.com/nassirian "nassirian (3 commits)")

### Embed Badge

![Health badge](/badges/nassirian-laravel-tunnel-manager/health.svg)

```
[![Health](https://phpackages.com/badges/nassirian-laravel-tunnel-manager/health.svg)](https://phpackages.com/packages/nassirian-laravel-tunnel-manager)
```

###  Alternatives

[barryvdh/laravel-ide-helper

Laravel IDE Helper, generates correct PHPDocs for all Facade classes, to improve auto-completion.

14.9k123.0M687](/packages/barryvdh-laravel-ide-helper)[orchestra/canvas

Code Generators for Laravel Applications and Packages

21017.2M158](/packages/orchestra-canvas)[illuminate/pipeline

The Illuminate Pipeline package.

9446.6M213](/packages/illuminate-pipeline)[illuminate/pagination

The Illuminate Pagination package.

10532.5M862](/packages/illuminate-pagination)[spatie/laravel-pjax

A pjax middleware for Laravel 5

513371.8k11](/packages/spatie-laravel-pjax)[spatie/laravel-mix-preload

Add preload and prefetch links based your Mix manifest

169176.0k2](/packages/spatie-laravel-mix-preload)

PHPackages © 2026

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