PHPackages                             exolnet/laravel-vue-data - 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. exolnet/laravel-vue-data

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

exolnet/laravel-vue-data
========================

Adds utilities to easily pass data from Laravel to Vue.

v1.9.0(3mo ago)022.2kMITPHPPHP ^8.2CI passing

Since Sep 22Pushed 3mo ago1 watchersCompare

[ Source](https://github.com/eXolnet/laravel-vue-data)[ Packagist](https://packagist.org/packages/exolnet/laravel-vue-data)[ Docs](https://github.com/eXolnet/laravel-vue-data)[ RSS](/packages/exolnet-laravel-vue-data/feed)WikiDiscussions main Synced 1mo ago

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

laravel-vue-data
================

[](#laravel-vue-data)

[![Latest Stable Version](https://camo.githubusercontent.com/192db56e79a0082a998d8b957e32d693ecaf816a6e5b682eb1ee73827b5fcf2f/68747470733a2f2f706f7365722e707567782e6f72672f65586f6c6e65742f6c61726176656c2d7675652d646174612f762f737461626c653f666f726d61743d666c61742d737175617265)](https://packagist.org/packages/eXolnet/laravel-vue-data)[![Software License](https://camo.githubusercontent.com/55c0218c8f8009f06ad4ddae837ddd05301481fcf0dff8e0ed9dadda8780713e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265)](LICENSE)[![Build Status](https://camo.githubusercontent.com/3621a920180318a268aedc4b9c3bce0aab1a4d6228962f0b102b0bf24f33e5df/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f65586f6c6e65742f6c61726176656c2d7675652d646174612f74657374732e796d6c3f6c6162656c3d7465737473267374796c653d666c61742d737175617265)](https://github.com/eXolnet/laravel-vue-data/actions?query=workflow%3Atests)[![Total Downloads](https://camo.githubusercontent.com/8d945cbacb1058b970e7fd88869a676112eedda07ae36011da4672c1eb5dccf6/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f65586f6c6e65742f6c61726176656c2d7675652d646174612e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/eXolnet/laravel-vue-data)

Adds utilities to easily pass data from Laravel to Vue.

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

[](#installation)

Require this package with composer:

```
composer require exolnet/laravel-vue-data

```

If you don't use package auto-discovery, add the service provider to the `providers` array in `config/app.php`:

```
Exolnet\VueData\VueDataServiceProvider::class

```

And the facade to the `facades` array in `config/app.php`:

```
'Vue' => Exolnet\VueData\Facades\Vue::class

```

Usage
-----

[](#usage)

### Define variables

[](#define-variables)

First, you need to devine variable that will be available in your Vue application.

In your PHP code:

```
Vue::put('variable', 'value')
```

In a Blade view:

```
@vue('variable', 'value')

```

### Make variables available

[](#make-variables-available)

In your base layout, add the following view before your main `app.js` to make the variables available:

```
@include('vue-data::variables')

```

### Use variables

[](#use-variables)

In your `app.js`, use the variables defined when they are available:

```
new Vue({
    el: '#app',
    data: () => window.App || {},
});
```

Testing
-------

[](#testing)

To run the phpUnit tests, please use:

```
composer test
```

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

[](#contributing)

Please see [CONTRIBUTING](CONTRIBUTING.md) and [CODE OF CONDUCT](CODE_OF_CONDUCT.md) for details.

Security
--------

[](#security)

If you discover any security related issues, please email  instead of using the issue tracker.

Credits
-------

[](#credits)

- [Alexandre D’Eschambeault](https://github.com/xel1045)
- [All Contributors](../../contributors)

License
-------

[](#license)

Copyright © [eXolnet](https://www.exolnet.com). All rights reserved.

This code is licensed under the [MIT license](http://choosealicense.com/licenses/mit/). Please see the [license file](LICENSE) for more information.

###  Health Score

50

—

FairBetter than 96% of packages

Maintenance80

Actively maintained with recent releases

Popularity26

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity70

Established project with proven stability

 Bus Factor1

Top contributor holds 81.4% 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 ~145 days

Recently: every ~265 days

Total

12

Last Release

103d ago

PHP version history (4 changes)v1.0.0PHP ^7.3|^8.0

v1.4.0PHP ^8.0

v1.6.0PHP ^8.1

v1.8.0PHP ^8.2

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/4064055?v=4)[eXolnet](/maintainers/exolnet)[@eXolnet](https://github.com/eXolnet)

---

Top Contributors

[![xel1045](https://avatars.githubusercontent.com/u/1497697?v=4)](https://github.com/xel1045 "xel1045 (48 commits)")[![Gandhi11](https://avatars.githubusercontent.com/u/4001049?v=4)](https://github.com/Gandhi11 "Gandhi11 (6 commits)")[![ChristopheTremblay](https://avatars.githubusercontent.com/u/61481239?v=4)](https://github.com/ChristopheTremblay "ChristopheTremblay (3 commits)")[![clablancherie-exo](https://avatars.githubusercontent.com/u/214526504?v=4)](https://github.com/clablancherie-exo "clablancherie-exo (2 commits)")

---

Tags

hacktoberfestlaravellaravel-packagephplaravelexolnetlaravel-vue-data

###  Code Quality

TestsPHPUnit

Code StyleLaravel Pint

### Embed Badge

![Health badge](/badges/exolnet-laravel-vue-data/health.svg)

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

###  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)[interaction-design-foundation/laravel-geoip

Support for multiple Geographical Location services.

17221.0k3](/packages/interaction-design-foundation-laravel-geoip)[nedwors/navigator

A Laravel package to ease defining navigation menus

433.1k](/packages/nedwors-navigator)[xefi/faker-php-laravel

Faker php integration with laravel

1915.1k](/packages/xefi-faker-php-laravel)[dcblogdev/laravel-junie

Install pre-configured guides for Jetbrains Junie

392.5k](/packages/dcblogdev-laravel-junie)

PHPackages © 2026

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