PHPackages                             takemo101/laravel-simple-vm - 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. takemo101/laravel-simple-vm

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

takemo101/laravel-simple-vm
===========================

Laravel Simple VM

v0.1.3(4y ago)1561MITPHPPHP ^8.0

Since Feb 22Pushed 3y ago1 watchersCompare

[ Source](https://github.com/takemo101/laravel-simple-vm)[ Packagist](https://packagist.org/packages/takemo101/laravel-simple-vm)[ Docs](https://github.com/takemo101/laravel-simple-vm)[ RSS](/packages/takemo101-laravel-simple-vm/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (4)Dependencies (7)Versions (6)Used By (0)

The Simple VM For Laravel
=========================

[](#the-simple-vm-for-laravel)

[![PHPStan](https://github.com/takemo101/laravel-simple-vm/actions/workflows/phpstan.yml/badge.svg)](https://github.com/takemo101/laravel-simple-vm/actions/workflows/phpstan.yml)[![Validate Composer](https://github.com/takemo101/laravel-simple-vm/actions/workflows/composer.yml/badge.svg)](https://github.com/takemo101/laravel-simple-vm/actions/workflows/composer.yml)[![Testing](https://github.com/takemo101/laravel-simple-vm/actions/workflows/testing.yml/badge.svg)](https://github.com/takemo101/laravel-simple-vm/actions/workflows/testing.yml)

This package is a wrap of Simple VM for Laravel.
You can also create a ViewModel class with a command.
Enjoy!

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

[](#installation)

Execute the following composer command.

```
composer require takemo101/laravel-simple-vm

```

How to use
----------

[](#how-to-use)

Please use as follows

### Create a ViewModel class

[](#create-a-viewmodel-class)

Execute the artisan command as below.

```
# php artisan make:svm TestViewModel

```

### Basic

[](#basic)

#### 1. Create a ViewModel class

[](#1-create-a-viewmodel-class)

First, create a ViewModel class to output the data to View.

```
