PHPackages                             ianrothmann/laravel-vue-bridge - 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. ianrothmann/laravel-vue-bridge

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

ianrothmann/laravel-vue-bridge
==============================

A bridge to expose Laravel variables and routes in Vue and Vuex

0.6.1(8y ago)06.2k1Apache-2.0PHPPHP &gt;=5.4.0

Since Apr 20Pushed 8y ago3 watchersCompare

[ Source](https://github.com/ianrothmann/LaravelVueBridge)[ Packagist](https://packagist.org/packages/ianrothmann/laravel-vue-bridge)[ RSS](/packages/ianrothmann-laravel-vue-bridge/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (6)Dependencies (1)Versions (7)Used By (1)

LaravelVueBridge
================

[](#laravelvuebridge)

A bridge for exposing Laravel variables and routes inside vue components. It supports Vuex. For use with Multi Page Applications using multiple Vue components. The idea is to get the best of both, between what Laravel and Vue offers.

This package should be used with the VueBridge npm package ().

Installation
============

[](#installation)

composer require ianrothmann/laravel-vue-bridge

In config/app.php

Service provider

```
IanRothmann\LaravelVueBridge\ServiceProviders\VueBridgeServiceProvider::class

```

Facade

```
'VueBridge' =>IanRothmann\LaravelVueBridge\Facades\VueBridge::class

```

In your main blade file, before

```

```

you should add

```
{!! VueBridge::scripts(get_defined_vars()) !!}

```

Exposing variables
==================

[](#exposing-variables)

In your controller:

```
VueBridge::exposeVariables([array of variable names to expose]);

VueBridge::hideVariables([array of variable names to hide, all others will be exposed]);

VueBridge::exposeAllVariables();

VueBridge::hideAllVariables();

```

Exposing Routes
===============

[](#exposing-routes)

In web.php or in middleware. Routes are hidden by default:

```
VueBridge::exposeAllRoutes(); //exposes all named routes

VueBridge::exposeRoutes(([array of route names]);

VueBridge::hideRoutes([array of route names]);

```

More documentation to follow later

###  Health Score

29

—

LowBetter than 59% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity22

Limited adoption so far

Community13

Small or concentrated contributor base

Maturity52

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 66.7% 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 ~66 days

Recently: every ~58 days

Total

6

Last Release

2983d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/4319223?v=4)[Ian Rothmann](/maintainers/ianrothmann)[@ianrothmann](https://github.com/ianrothmann)

---

Top Contributors

[![ianrothmann1](https://avatars.githubusercontent.com/u/16775754?v=4)](https://github.com/ianrothmann1 "ianrothmann1 (12 commits)")[![ianrothmann](https://avatars.githubusercontent.com/u/4319223?v=4)](https://github.com/ianrothmann "ianrothmann (6 commits)")

### Embed Badge

![Health badge](/badges/ianrothmann-laravel-vue-bridge/health.svg)

```
[![Health](https://phpackages.com/badges/ianrothmann-laravel-vue-bridge/health.svg)](https://phpackages.com/packages/ianrothmann-laravel-vue-bridge)
```

###  Alternatives

[wireui/wireui

TallStack components

1.8k1.3M16](/packages/wireui-wireui)[livewire/volt

An elegantly crafted functional API for Laravel Livewire.

4205.3M84](/packages/livewire-volt)[ramonrietdijk/livewire-tables

Dynamic tables for models with Laravel Livewire

21147.4k](/packages/ramonrietdijk-livewire-tables)

PHPackages © 2026

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