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

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

codeseasy/xpos-laravel
======================

Instant public URLs for Laravel development - XPOS tunnel integration

v1.0.0(4mo ago)010MITPHPPHP ^8.1

Since Dec 24Pushed 4mo agoCompare

[ Source](https://github.com/CodesEasy/xpos-laravel)[ Packagist](https://packagist.org/packages/codeseasy/xpos-laravel)[ RSS](/packages/codeseasy-xpos-laravel/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependencies (3)Versions (2)Used By (0)

XPOS for Laravel
================

[](#xpos-for-laravel)

[![Latest Version on Packagist](https://camo.githubusercontent.com/1cb4c385b311321dfa39c089168f56d8a1c16ab9321e559b69575204fb80ed89/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f636f646573656173792f78706f732d6c61726176656c2e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/codeseasy/xpos-laravel)[![Total Downloads](https://camo.githubusercontent.com/bbf3c0cefd8a0410ab927720b4d8102b90bcc26a934ef4535ca8557fbb1b943d/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f636f646573656173792f78706f732d6c61726176656c2e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/codeseasy/xpos-laravel)[![License](https://camo.githubusercontent.com/d20fe8b39104ce7324d441b265a6e0833ff1dce37a566b8ea9573f87adc90a1e/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f636f646573656173792f78706f732d6c61726176656c2e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/codeseasy/xpos-laravel)

Instant public URLs for Laravel development. Share your local Laravel app with a single command.

🌐 **[xpos.dev](https://xpos.dev)**

Features
--------

[](#features)

- **One Command Setup** - Get a public URL instantly with `php artisan xpos`
- **Auto-Start Server** - Automatically starts `php artisan serve` if not running
- **Secure HTTPS Tunnels** - All traffic is encrypted via SSH
- **Zero Configuration** - Works out of the box, configure only if needed
- **Auto-Proxy Detection** - Automatically configures TrustProxies for correct HTTPS URLs
- **Laravel 10, 11, 12** - Full support for modern Laravel versions

Use Cases
---------

[](#use-cases)

- 🔗 Test webhooks from third-party services (Stripe, GitHub, etc.)
- 📱 Test your app on mobile devices
- 👥 Share work-in-progress with clients or team members
- 🌐 Demo your local app without deploying
- 🔧 Debug integrations requiring public callbacks

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

[](#installation)

```
composer require codeseasy/xpos-laravel --dev
```

Usage
-----

[](#usage)

```
php artisan xpos
```

That's it! The command will:

1. Start `php artisan serve` if not already running
2. Create an SSH tunnel to XPOS
3. Display your public URL (e.g., `https://abc123.xpos.to`)

Options
-------

[](#options)

```
# Use a specific port
php artisan xpos --port=8080

# Use an existing server (don't start artisan serve)
php artisan xpos --no-serve --port=8000

# Bind to a specific host
php artisan xpos --host=0.0.0.0
```

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

[](#configuration)

Publish the config file:

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

Config options in `config/xpos.php`:

```
return [
    'server' => 'go.xpos.dev',    // XPOS server
    'ssh_port' => 443,            // SSH port
    'default_port' => 8000,       // Default dev server port
    'trust_proxies' => true,      // Auto-configure HTTPS
];
```

HTTPS Support
-------------

[](#https-support)

The package automatically configures Laravel's TrustProxies middleware so that `asset()`, `url()`, and other helpers generate HTTPS URLs when accessed through an XPOS tunnel.

Requirements
------------

[](#requirements)

- PHP 8.1+
- Laravel 10, 11, or 12
- SSH client available in PATH

.gitignore
----------

[](#gitignore)

Add `.xpos.pid` to your project's `.gitignore`:

```
.xpos.pid

```

How It Works
------------

[](#how-it-works)

1. **Serve Detection**: Uses a `.xpos.pid` file to track which port belongs to your project
2. **SSH Tunnel**: Connects to XPOS using `ssh -p 443 -R0:127.0.0.1:PORT x@go.xpos.dev`
3. **HTTPS**: Auto-configures TrustProxies so assets load correctly

Troubleshooting
---------------

[](#troubleshooting)

**Port already in use?**

```
# Use a different port
php artisan xpos --port=8001
```

**SSH connection issues?**

- Ensure SSH client is installed and available in PATH
- Check firewall settings for port 443

**HTTPS URLs not working?**

- Make sure `trust_proxies` is set to `true` in `config/xpos.php`
- Clear config cache: `php artisan config:clear`

Security
--------

[](#security)

This package is intended for **development use only**. Do not use in production environments. All traffic goes through XPOS servers via encrypted SSH tunnels.

Contributing
------------

[](#contributing)

Contributions are welcome! Please feel free to submit a Pull Request.

Support
-------

[](#support)

- **Documentation**:
- **Issues**: [GitHub Issues](https://github.com/codeseasy/xpos-laravel/issues)
- **Website**:
- **Email**:

Credits
-------

[](#credits)

- [CodesEasy](https://github.com/codeseasy)
- [All Contributors](../../contributors)

License
-------

[](#license)

MIT License. See [LICENSE](LICENSE) for details.

###  Health Score

34

—

LowBetter than 77% of packages

Maintenance74

Regular maintenance activity

Popularity5

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity43

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

143d ago

### Community

Maintainers

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

---

Top Contributors

[![VishnuSivadasVS](https://avatars.githubusercontent.com/u/34345124?v=4)](https://github.com/VishnuSivadasVS "VishnuSivadasVS (6 commits)")

---

Tags

laraveldevelopmentsharetunnellocalhostxpospublic-url

### Embed Badge

![Health badge](/badges/codeseasy-xpos-laravel/health.svg)

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

###  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)[wnx/laravel-stats

Get insights about your Laravel Project

1.8k1.8M7](/packages/wnx-laravel-stats)[livewire/flux

The official UI component library for Livewire.

9385.0M86](/packages/livewire-flux)[glhd/conveyor-belt

14797.0k](/packages/glhd-conveyor-belt)[interaction-design-foundation/laravel-geoip

Support for multiple Geographical Location services.

17221.0k3](/packages/interaction-design-foundation-laravel-geoip)[tomshaw/electricgrid

A feature-rich Livewire package designed for projects that require dynamic, interactive data tables.

116.6k](/packages/tomshaw-electricgrid)

PHPackages © 2026

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