PHPackages                             dex/frontier - 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. [API Development](/categories/api)
4. /
5. dex/frontier

ActiveLibrary[API Development](/categories/api)

dex/frontier
============

The frontier between your Laravel app and your decoupled frontend

0.17.0(2mo ago)328.6k↓33%4MITPHPCI passing

Since Jan 12Pushed 2mo ago1 watchersCompare

[ Source](https://github.com/edersoares/frontier)[ Packagist](https://packagist.org/packages/dex/frontier)[ RSS](/packages/dex-frontier/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (10)Dependencies (14)Versions (18)Used By (0)

Frontier
========

[](#frontier)

[![Tests](https://github.com/edersoares/frontier/actions/workflows/tests.yml/badge.svg)](https://github.com/edersoares/frontier/actions)[![License](https://camo.githubusercontent.com/3c35a6ff668a73468a7f0f8d5a97460018ac0cf28706320c343b1a32b7ec395d/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6963656e73652f65646572736f617265732f66726f6e74696572)](https://github.com/edersoares/frontier/blob/main/LICENSE)

The frontier between your [Laravel](https://laravel.com/) app and your decoupled frontend.

**Frontier** allows you to run your favorite frontend framework and to serve the initial page by the backend, like a proxy.

It's great for anyone using custom domains to test their applications or running multiple frontends that use the same backend. You will be able to test your app using cookies, sessions and avoiding CORS "same source" issues.

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

[](#installation)

Just install `dex/frontier` into your Laravel app and configure some [environment variables](https://github.com/edersoares/frontier#environment-variables).

```
composer require dex/frontier
```

### Environment variables

[](#environment-variables)

You can configure your frontend using some environment variables described below.

VariableDescriptionDefault`FRONTIER_TYPE`Define type of controller `http`, `proxy` or `view``view``FRONTIER_ENDPOINT`Endpoint where the frontend will run`frontier``FRONTIER_VIEW`Default `view` that will be rendered or `url` of the server`frontier::index``FRONTIER_VIEWS_PATH`Directory where all the `views` are`frontier/resources/html``FRONTIER_FIND`Content that will be replaced`FRONTIER_REPLACE_WITH`Content that will be the replacement`FRONTIER_PROXY`URIs that you will do proxy`FRONTIER_CACHE`When `http` type, indicates se cache will be do`true``FRONTIER_PROXY_HOST``url` of the assets server`FRONTIER_PROXY_RULES`Proxy rules### Frontend types

[](#frontend-types)

You can use 3 different types of frontend `http`, `proxy` or `view`.

#### HTTP

[](#http)

Use in `FRONTIER_VIEW` the URL of your frontend server.

#### Proxy

[](#proxy)

Use in `FRONTIER_PROXY_HOST` or `FRONTIER_VIEW` the URL of your frontend server.

> `FRONTIER_VIEW` will be removed in the future.

#### View

[](#view)

Use in `FRONTIER_VIEW` the name of your view that you initialize your frontend, this is relative a Blade views.

### Examples

[](#examples)

#### Vite and Vue.js

[](#vite-and-vuejs)

When using [Vite](https://vitejs.dev/) and [Vue.js](https://vuejs.org/) you can start your project with these environment variables using `http` approach.

```
FRONTIER_ENDPOINT=/vue
FRONTIER_TYPE=http
FRONTIER_VIEW=http://localhost:5173/
FRONTIER_FIND=/@vite/client,/src/main.ts,/vite.svg
FRONTIER_REPLACE_WITH=http://localhost:5173/@vite/client,http://localhost:5173/src/main.ts,http://localhost:5173/vite.svg
FRONTIER_PROXY=/vite.svg
FRONTIER_CACHE=false
```

#### Nuxt.js

[](#nuxtjs)

When using [Nuxt](https://nuxt.com/) you can start your project with these environment variables using `proxy` approach.

```
FRONTIER_PROXY_HOST=http://localhost:3000
FRONTIER_PROXY_RULES=/_vfs.json::exact|/favicon.ico::exact::rewrite(/favicon.ico)|/__nuxt_devtools__/client/_nuxt/builds/meta|/__nuxt_devtools__/client::replace(/__nuxt_devtools__/client/_nuxt/)|/_nuxt|/_fonts|/::replace(/_nuxt/)
```

### Multiple frontends

[](#multiple-frontends)

You can run multiple frontends, just create a custom configuration file.

```
php artisan vendor:publish --tag=frontier
```

The `config/frontier.php` file will be created in your Laravel app. This file contains some settings that can be replicated to add more frontends to your app.

License
-------

[](#license)

[Frontier](https://github.com/edersoares/frontier) is licensed under the MIT license. See the [license](https://github.com/edersoares/frontier/blob/main/LICENSE) file for more details.

###  Health Score

48

—

FairBetter than 95% of packages

Maintenance87

Actively maintained with recent releases

Popularity33

Limited adoption so far

Community13

Small or concentrated contributor base

Maturity48

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 94% 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 ~95 days

Recently: every ~148 days

Total

17

Last Release

62d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/195a30f332e238dc26d226f6f62b40d2fe8b227a89b29465fbe8fd201e45f435?d=identicon)[edersoares](/maintainers/edersoares)

---

Top Contributors

[![edersoares](https://avatars.githubusercontent.com/u/957395?v=4)](https://github.com/edersoares "edersoares (110 commits)")[![edineivaldameri](https://avatars.githubusercontent.com/u/99054215?v=4)](https://github.com/edineivaldameri "edineivaldameri (5 commits)")[![otavio-paganotti](https://avatars.githubusercontent.com/u/22649066?v=4)](https://github.com/otavio-paganotti "otavio-paganotti (2 commits)")

###  Code Quality

TestsPest

Code StyleLaravel Pint

### Embed Badge

![Health badge](/badges/dex-frontier/health.svg)

```
[![Health](https://phpackages.com/badges/dex-frontier/health.svg)](https://phpackages.com/packages/dex-frontier)
```

###  Alternatives

[roots/acorn

Framework for Roots WordPress projects built with Laravel components.

9682.1M97](/packages/roots-acorn)[laravel/cashier-paddle

Cashier Paddle provides an expressive, fluent interface to Paddle's subscription billing services.

264778.4k3](/packages/laravel-cashier-paddle)[torchlight/torchlight-laravel

A Laravel Client for Torchlight, the syntax highlighting API.

120452.8k11](/packages/torchlight-torchlight-laravel)[freshbitsweb/laravel-google-analytics-4-measurement-protocol

A Laravel package to use Measurement Protocol for Google Analytics 4

20111.0k](/packages/freshbitsweb-laravel-google-analytics-4-measurement-protocol)[simplestats-io/laravel-client

Client for SimpleStats!

4515.5k](/packages/simplestats-io-laravel-client)[jasara/php-amzn-selling-partner-api

A fluent interface for Amazon's Selling Partner API in PHP

1344.8k1](/packages/jasara-php-amzn-selling-partner-api)

PHPackages © 2026

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