PHPackages                             viro/crud - 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. viro/crud

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

viro/crud
=========

05PHP

Since Nov 23Pushed 4y ago1 watchersCompare

[ Source](https://github.com/VitalieZ/command-view)[ Packagist](https://packagist.org/packages/viro/crud)[ RSS](/packages/viro-crud/feed)WikiDiscussions master Synced 3w ago

READMEChangelogDependenciesVersions (1)Used By (0)

Commands create model, view and controller
==========================================

[](#commands-create-model-view-and-controller)

⛵`viro-crud` is laravel commands which can help you build view, model, and controller files in line command.

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

[](#installation)

```
composer require viro/crud

```

Usage
-----

[](#usage)

### Creating views

[](#creating-views)

```
# Create a view 'index.blade.php' in the default directory
$ php artisan crud:view index

# Create a view 'index.blade.php' in a subdirectory ('pages')
$ php artisan crud:view index --path=pages

# Create a view resources 'index, create, edit, show' in a subdirectory ('pages')
$ php artisan crud:view index --path=pages --resource

# Create a view 'index.blade.php' with extends ('layouts.main') in the default is 'layouts.app'
$ php artisan crud:view index --extends=layouts.main

# Create a view 'index.blade.php' with section ('footer') in the default is 'content'
$ php artisan crud:view index --section=footer
```

### Creating model

[](#creating-model)

```
# Create a model 'Post'
$ php artisan crud:model Post

# Create a model 'Post' with name table db 'products'
$ php artisan crud:model Post --table=products

# Create a model 'Post' and view 'products'
$ php artisan crud:model Post -w --viewname=products

# Create a model 'Post' with view 'products'
$ php artisan crud:model Post -w --viewname=products

# Create a model 'Post' with view 'products' and in a subdirectory 'products'
$ php artisan crud:model Post -w --viewname=products --path=products

# Create a model 'Post' and controller
$ php artisan crud:model Post -c

# Create a model 'Post', controller and view (index.blade.php)
$ php artisan crud:model Post -cw

# Create a model 'Post', controller and view resources (index, create, edit, show)
$ php artisan crud:model Post -cW

# Create a model 'Post', controller resources and view resources (index, create, edit, show)
$ php artisan crud:model Post -r

# Create a model 'Post', controller resources, view resources (index, create, edit, show) and Requests
$ php artisan crud:model Post -rR

# Create a model 'Post', controller resources, view resources (index, create, edit, show) in a subdirectory 'products' and Requests
$ php artisan crud:model Post -rR --path=products
```

###  Health Score

16

—

LowBetter than 4% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity28

Early-stage or recently created project

 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.

### Community

Maintainers

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

---

Top Contributors

[![VitalieZ](https://avatars.githubusercontent.com/u/19294588?v=4)](https://github.com/VitalieZ "VitalieZ (9 commits)")

### Embed Badge

![Health badge](/badges/viro-crud/health.svg)

```
[![Health](https://phpackages.com/badges/viro-crud/health.svg)](https://phpackages.com/packages/viro-crud)
```

###  Alternatives

[nehero/friendlytimezone

Display timezones to your users in a friendly way using locations as names

1585.3k](/packages/nehero-friendlytimezone)

PHPackages © 2026

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