PHPackages                             zachleigh/laravel-vue-generators - 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. zachleigh/laravel-vue-generators

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

zachleigh/laravel-vue-generators
================================

Generate Vue js files via artisan commands.

v0.3.0(6y ago)9039.6k11MITPHPPHP &gt;=7.2.0CI failing

Since Nov 9Pushed 6y ago7 watchersCompare

[ Source](https://github.com/zachleigh/laravel-vue-generators)[ Packagist](https://packagist.org/packages/zachleigh/laravel-vue-generators)[ RSS](/packages/zachleigh-laravel-vue-generators/feed)WikiDiscussions master Synced 2mo ago

READMEChangelog (9)Dependencies (3)Versions (11)Used By (0)

Laravel Vue Generators
======================

[](#laravel-vue-generators)

[![Latest Stable Version](https://camo.githubusercontent.com/70d8d02e75a53566d3b494ab77a33015c603cb3135eb4186a0194720c0c57239/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f7a6163686c656967682f6c61726176656c2d7675652d67656e657261746f72732e737667)](//packagist.org/packages/zachleigh/laravel-vue-generators)[![License](https://camo.githubusercontent.com/074b89bca64d3edc93a1db6c7e3b1636b874540ba91d66367c0e5e354c56d0ea/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d627269676874677265656e2e737667)](//packagist.org/packages/zachleigh/laravel-vue-generators)[![Build Status](https://camo.githubusercontent.com/b204e6e825b5f2af867abd4b6aefc25870e37b4b9474b0ce7cf229460db2103d/68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f7a6163686c656967682f6c61726176656c2d7675652d67656e657261746f72732f6d61737465722e737667)](https://travis-ci.org/zachleigh/laravel-vue-generators)[![Quality Score](https://camo.githubusercontent.com/d9a62d5e7c49fac52e70e9ed98903aa3cedefea56b06264dafb5c686a57badcf/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f672f7a6163686c656967682f6c61726176656c2d7675652d67656e657261746f72732e737667)](https://scrutinizer-ci.com/g/zachleigh/laravel-vue-generators/)[![StyleCI](https://camo.githubusercontent.com/481e39300925c63475aaf4707e923aa8bbfcfa8b5da5b4937365418a8d7fe386/68747470733a2f2f7374796c6563692e696f2f7265706f732f37333332343134332f736869656c643f7374796c653d666c6174)](https://styleci.io/repos/72352058)[![Total Downloads](https://camo.githubusercontent.com/189eac7889f9e63d71bcc94dfd1a499d3a551d3c5134abd41c0cbad0478c33e9/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f7a6163686c656967682f6c61726176656c2d7675652d67656e657261746f72732e737667)](https://packagist.org/packages/zachleigh/laravel-vue-generators)

##### Generate Vue js file stubs via artisan commands.

[](#generate-vue-js-file-stubs-via-artisan-commands)

### Contents

[](#contents)

- [Upgrade Information](#upgrade-information)
- [Install](#install)
- [Usage](#usage)
- [Configuration](#configuration)
- [Testing](#testing)
- [Contributing](#contributing)

### Upgrade Information

[](#upgrade-information)

#### Version 0.1.\* to Version 0.2.0

[](#version-01-to-version-020)

Version 0.2.0 adds Laravel 5.4 support. For Laravel 5.3, please use [Version 0.1.4](https://github.com/zachleigh/laravel-vue-generators/tree/v0.1.4):

```
composer require zachleigh/laravel-vue-generators:0.1.*

```

### Install

[](#install)

Install via composer:

```
composer require zachleigh/laravel-vue-generators

```

In Laravel's config/app.php file, add the service provider to the array with the 'providers' key.

```
VueGenerators\ServiceProvider::class

```

Publish the config file:

```
php artisan vendor:publish --provider="VueGenerators\ServiceProvider"

```

### Usage

[](#usage)

This package currently contains two commands: `component` and `mixin`.

#### component

[](#component)

Create a Vue js component file.

```
php artisan vueg:component {name} {--empty} {--path=}

```

###### name

[](#name)

Name of the component.

```
php artisan vueg:component MyComponent

```

Will create a file called MyComponent.vue at resources/assets/js/components/MyComponent.vue.

###### empty

[](#empty)

By default, the component will be filled with all available component methods (data, props, computed etc.). Use empty flag to create an empty component with no methods.

```
php artisan vueg:component MyComponent --empty

```

Will create a file with no component methods.

###### path

[](#path)

By default, all components will be saved in resources/assets/js/components/. Specify a custom path with the path flag. Path root is in resources/.

```
php artisan vueg:component MyComponent --path=assets/js/custom/folder

```

Will create a file called MyComponent.vue at resources/assets/js/custom/folder/MyComponent.vue.

#### mixin

[](#mixin)

Create a Vue js mixin file.

```
php artisan vueg:mixin {name} {--empty} {--path=}

```

###### name

[](#name-1)

Name of the mixin.

```
php artisan vueg:mixin MyMixin

```

Will create a file called MyMixin.vue at resources/assets/js/mixins/MyMixin.vue.

###### empty

[](#empty-1)

By default, the mixin will be filled with all available mixin methods (data, props, computed etc.). Use empty flag to create an empty mixin with no methods.

```
php artisan vueg:mixin MyMixin --empty

```

Will create a file with no mixin methods.

###### path

[](#path-1)

By default, all mixins will be saved in resources/assets/js/mixins/. Specify a custom path with the path flag. Path root is in resources/.

```
php artisan vueg:mixin MyMixin --path=assets/js/custom/folder

```

Will create a file called MyMixin.vue at resources/assets/js/custom/folder/MyMixin.vue.

### Configuration

[](#configuration)

Set default paths for components and mixins. All paths are relative to Laravel's resources directory.

```
'paths' => [
    'components' => 'path/to/components',
    'mixins'     => 'path/to/mixins',
]
```

### Testing

[](#testing)

```
composer test

```

### Contributing

[](#contributing)

Contributions are more than welcome. Fork, improve and make a pull request. For bugs, ideas for improvement or other, please create an [issue](https://github.com/zachleigh/laravel-lang-bundler/issues).

###  Health Score

35

—

LowBetter than 79% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity38

Limited adoption so far

Community13

Small or concentrated contributor base

Maturity54

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

Every ~144 days

Recently: every ~273 days

Total

9

Last Release

2320d ago

PHP version history (3 changes)v0.1.0PHP &gt;=5.6.0

v0.2.2PHP &gt;=7.1.3

v0.3.0PHP &gt;=7.2.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/00a76b63e84a85f8770b1b02b1190c03400c48528f0c33262f7789d35eca875d?d=identicon)[zachleigh](/maintainers/zachleigh)

---

Top Contributors

[![zachleigh](https://avatars.githubusercontent.com/u/5616626?v=4)](https://github.com/zachleigh "zachleigh (29 commits)")

---

Tags

laravelvue-generatorsvuejslaravelgeneratorsvue

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/zachleigh-laravel-vue-generators/health.svg)

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

###  Alternatives

[summerblue/generator

Extend Laravel's generators scaffold.

34139.9k](/packages/summerblue-generator)[marshmallow/nova-tiptap

A Laravel Nova tiptap editor field.

19120.0k2](/packages/marshmallow-nova-tiptap)[mckenziearts/laravel-command

A simple Laravel package to provide artisan new commands

321.2k](/packages/mckenziearts-laravel-command)

PHPackages © 2026

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