PHPackages                             laravel-commode/viewmodel - 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. [Templating &amp; Views](/categories/templating)
4. /
5. laravel-commode/viewmodel

ActiveLibrary[Templating &amp; Views](/categories/templating)

laravel-commode/viewmodel
=========================

ViewModel approach for laravel 5.(=&gt;1)

527PHP

Since Jun 16Pushed 11y ago2 watchersCompare

[ Source](https://github.com/laravel-commode/viewmodel)[ Packagist](https://packagist.org/packages/laravel-commode/viewmodel)[ RSS](/packages/laravel-commode-viewmodel/feed)WikiDiscussions master Synced today

READMEChangelogDependenciesVersions (1)Used By (0)

\#Commode: ViewModel

[![Build Status](https://camo.githubusercontent.com/98ccabd2064fde24d20cdfdfb266b119c56df12d49632561062b8f42b862727e/68747470733a2f2f7472617669732d63692e6f72672f6c61726176656c2d636f6d6d6f64652f766965776d6f64656c2e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/laravel-commode/viewmodel)[![Code Climate](https://camo.githubusercontent.com/37c966fb0c020b6971e7d1a601eebaf0ceb518d30b14d905c2d02ecaa18f6c6a/68747470733a2f2f636f6465636c696d6174652e636f6d2f6769746875622f6c61726176656c2d636f6d6d6f64652f766965776d6f64656c2f6261646765732f6770612e737667)](https://codeclimate.com/github/laravel-commode/viewmodel)[![Test Coverage](https://camo.githubusercontent.com/bd61417ada43fc345522034e54a8c175590da16b55baad48040513923947f6c1/68747470733a2f2f636f6465636c696d6174652e636f6d2f6769746875622f6c61726176656c2d636f6d6d6f64652f766965776d6f64656c2f6261646765732f636f7665726167652e737667)](https://codeclimate.com/github/laravel-commode/viewmodel)

> **laravel-commode/viewmodel** is an implementation of ViewModel approach for laravel framework.

\####Contents - [Installing](#installing)
- [Why should I bother?](#bother)
- [Create ViewModels](#viewmodel)
- [Usage](#usage)

\##Installing

You can install ***laravel-commode/viewmodel*** using composer:

```
"require": {
    "laravel-commode/viewmodel": "dev-master"
}

```

To enable package you need to register `LaravelCommode\ViewModel\ViewModelServiceProvider`service provider in your application config.

```
