PHPackages                             jhonoryza/argotunnel-laravel - 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. [HTTP &amp; Networking](/categories/http)
4. /
5. jhonoryza/argotunnel-laravel

ActiveLibrary[HTTP &amp; Networking](/categories/http)

jhonoryza/argotunnel-laravel
============================

integrate with argotunnel tcp connection for database with laravel

1.0.0(4y ago)024MITPHPPHP ^7.4|^8.0

Since Aug 22Pushed 2y ago1 watchersCompare

[ Source](https://github.com/jhonoryza/argotunnel-laravel)[ Packagist](https://packagist.org/packages/jhonoryza/argotunnel-laravel)[ RSS](/packages/jhonoryza-argotunnel-laravel/feed)WikiDiscussions master Synced 4d ago

READMEChangelogDependenciesVersions (2)Used By (0)

Integrate Laravel with ArgoTunnel Cloudflare
============================================

[](#integrate-laravel-with-argotunnel-cloudflare)

 [ ![Total Downloads](https://camo.githubusercontent.com/36066469f371d6a06464e898d5e4e5694e60245192737a9961f1e5ce7c2bd32b/68747470733a2f2f706f7365722e707567782e6f72672f6a686f6e6f72797a612f6172676f74756e6e656c2d6c61726176656c2f642f746f74616c2e737667) ](https://packagist.org/packages/jhonoryza/argotunnel-laravel) [ ![Latest Stable Version](https://camo.githubusercontent.com/1a5d2e7b5ffff6990f726162e74468b5bd51f62a741ded7e5debdb6584a79434/68747470733a2f2f706f7365722e707567782e6f72672f6a686f6e6f72797a612f6172676f74756e6e656c2d6c61726176656c2f762f737461626c652e737667) ](https://packagist.org/packages/jhonoryza/argotunnel-laravel) [ ![License](https://camo.githubusercontent.com/7170f5ffa81cf86e7041bf57cdf81b3caf21746fd95f8171a3e970c5a4e6b194/68747470733a2f2f706f7365722e707567782e6f72672f6a686f6e6f72797a612f6172676f74756e6e656c2d6c61726176656c2f6c6963656e73652e737667) ](https://packagist.org/packages/jhonoryza/argotunnel-laravel)

This package allows you to connect to remote database that using argo tunnel from cloudflare, this assume that you have create a tunnel from your remote server with tcp connection.

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

[](#installation)

You can install the package via composer:

```
composer require jhonoryza/argotunnel-laravel
```

Basic usage
-----------

[](#basic-usage)

### Configuration in .env file

[](#configuration-in-env-file)

```
; Process used to verify connection
; Use bash if your distro uses nmap-ncat (RHEL/CentOS 7.x)
TUNNELER_VERIFY_PROCESS=nc

; Path to the nc executable
TUNNELER_NC_PATH=/usr/bin/nc
; Path to the bash executable
TUNNELER_BASH_PATH=/usr/bin/bash
; Path to the ssh executable
TUNNELER_SSH_PATH=/usr/bin/ssh
; Path to the nohup executable
TUNNELER_NOHUP_PATH=/usr/bin/nohup

; Log messages for troubleshooting
SSH_VERBOSITY=
NOHUP_LOG=/dev/null

; The identity file you want to use for ssh auth
TUNNELER_IDENTITY_FILE=/home/user/.ssh/id_rsa

; The local address and port for the tunnel
TUNNELER_LOCAL_PORT=13306
TUNNELER_LOCAL_ADDRESS=127.0.0.1

; The remote address and port for the tunnel
TUNNELER_BIND_PORT=3306
TUNNELER_BIND_ADDRESS=127.0.0.1

; The ssh connection: sshuser@sshhost:sshport
TUNNELER_USER=sshuser
TUNNELER_HOSTNAME=sshhost
TUNNELER_PORT=sshport

; How long to wait, in microseconds, before testing to see if the tunnel is created.
; Depending on your network speeds you will want to modify the default of 1 seconds
TUNNELER_CONN_WAIT=1000000

; How often it is checked if the tunnel is created. Useful if the tunnel creation is sometimes slow,
; and you want to minimize waiting times
TUNNELER_CONN_TRIES=1

; Do you want to ensure you have the Tunnel in place for each bootstrap of the framework?
TUNNELER_ON_BOOT=false

; Do you want to use additional SSH options when the tunnel is created?
TUNNELER_SSH_OPTIONS="-o StrictHostKeyChecking=no"

```

### How it works

[](#how-it-works)

It first uses netcat (nc) via exec to check the local port to see if the tunnel is open. If the port is there, it does nothing else.

If the port isn't there, it then creates the ssh tunnel connection command and executes that via exec after execution we wait the defined TUNNELER\_CONN\_WAIT time before running netcat again to verify that the connection is in place.

That's it. The tunnel will stay up until it times out, if it times out.

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

###  Health Score

24

—

LowBetter than 32% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity55

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

1725d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/4b350bd59744652aada177f2b11c36297774540fadd91f1f41fbfc0bd79e0886?d=identicon)[jhonoryza](/maintainers/jhonoryza)

---

Top Contributors

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

---

Tags

argo-tunnelcloudflarepackageargotunnel laravelcloudflared laravel

### Embed Badge

![Health badge](/badges/jhonoryza-argotunnel-laravel/health.svg)

```
[![Health](https://phpackages.com/badges/jhonoryza-argotunnel-laravel/health.svg)](https://phpackages.com/packages/jhonoryza-argotunnel-laravel)
```

###  Alternatives

[friendsofsymfony/rest-bundle

This Bundle provides various tools to rapidly develop RESTful API's with Symfony

2.8k73.3M319](/packages/friendsofsymfony-rest-bundle)[php-http/discovery

Finds and installs PSR-7, PSR-17, PSR-18 and HTTPlug implementations

1.3k309.5M1.2k](/packages/php-http-discovery)[nyholm/psr7

A fast PHP7 implementation of PSR-7

1.3k235.4M2.4k](/packages/nyholm-psr7)[pusher/pusher-php-server

Library for interacting with the Pusher REST API

1.5k94.8M293](/packages/pusher-pusher-php-server)[spatie/crawler

Crawl all internal links found on a website

2.8k16.3M52](/packages/spatie-crawler)[react/http

Event-driven, streaming HTTP client and server implementation for ReactPHP

78126.4M414](/packages/react-http)

PHPackages © 2026

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