PHPackages                             laravel-enso/cli - 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. [CLI &amp; Console](/categories/cli)
4. /
5. laravel-enso/cli

ActiveLibrary[CLI &amp; Console](/categories/cli)

laravel-enso/cli
================

Interactive scaffolding for Laravel Enso resources

5.5.6(2mo ago)1039.5k—6.4%8MITPHP

Since Jun 23Pushed 2mo ago5 watchersCompare

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

READMEChangelogDependencies (12)Versions (176)Used By (0)

Cli
===

[](#cli)

[![License](https://camo.githubusercontent.com/51f66d63b7d508745d4e1d7d62b20e965622761e570002acf83f1970057ab419/68747470733a2f2f706f7365722e707567782e6f72672f6c61726176656c2d656e736f2f636c692f6c6963656e7365)](LICENSE)[![Stable](https://camo.githubusercontent.com/b8273bba3b081d55c628aaa5ea0a0be54e67fb5cd00d30bcfb7a79d99903dd7d/68747470733a2f2f706f7365722e707567782e6f72672f6c61726176656c2d656e736f2f636c692f76657273696f6e)](https://packagist.org/packages/laravel-enso/cli)[![Downloads](https://camo.githubusercontent.com/3af71f8f1ffd0c07ebd6aef890c1b99e4458cd5e133ebe897bf399349363a412/68747470733a2f2f706f7365722e707567782e6f72672f6c61726176656c2d656e736f2f636c692f646f776e6c6f616473)](https://packagist.org/packages/laravel-enso/cli)[![PHP](https://camo.githubusercontent.com/da7cf113b588d26fe679dfefe4a15009272ed358ad4e786ad3c78b45faa61d69/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f7068702d382e322532422d3737376262342e737667)](composer.json)[![Issues](https://camo.githubusercontent.com/7e463c61fd4d8b8816b8ef8e996c30f21dbbd5a6d8e7b44006ea4822e1b8be03/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6973737565732f6c61726176656c2d656e736f2f636c692e737667)](https://github.com/laravel-enso/cli/issues)[![Merge Requests](https://camo.githubusercontent.com/7d78719b8839369eecf78c920903ab7787b69bace8e0fe6f9d97689305c9bfb2/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6973737565732d70722f6c61726176656c2d656e736f2f636c692e737667)](https://github.com/laravel-enso/cli/pulls)

Description
-----------

[](#description)

Cli is the interactive scaffolding tool for Laravel Enso resources and packages.

The package exposes the `enso:cli` command, keeps a restorable configuration session in cache, validates the configured model and menu structure before generation, and writes the backend, frontend, and package boilerplate needed for standard Enso CRUD modules.

It is intended to accelerate repetitive Enso structure work, not to replace manual refinement after the initial scaffold is created.

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

[](#installation)

Install the package:

```
composer require laravel-enso/cli
```

If you want to publish the configuration presets used by the generator:

```
php artisan vendor:publish --tag=cli-config
```

The package automatically:

- registers the `enso:cli` Artisan command
- merges the structure presets from `config/enso/structures`
- writes generated files into either the application tree or a new Enso package tree, depending on the selected options

Features
--------

[](#features)

- Interactive command flow for configuring model, permission group, permissions, menu, files, and package metadata.
- Validation for namespaced model paths, menu routing consistency, and parent-menu selection before generation.
- Cached session restore so incomplete scaffolding sessions can be resumed.
- Writers for models, migrations, form builders and templates, table builders and templates, CRUD routes, Vue pages, and structure migrations.
- Package scaffolding support, including resources, optional config, and optional service providers.

Usage
-----

[](#usage)

Start the interactive generator:

```
php artisan enso:cli
```

The command lets you configure these sections before generation:

- `Model`
- `Permission Group`
- `Permissions`
- `Menu`
- `Files`
- `Package`

When generation succeeds, the package clears the cached session and, when needed, prints the API route include that must be added to the host application's `routes/api.php`.

Validation can be toggled off temporarily from the command menu, but the intended workflow is to keep it enabled and fix the reported configuration errors before generating files.

API
---

[](#api)

### Artisan command

[](#artisan-command)

- `enso:cli`

### Published configuration

[](#published-configuration)

Published under `config/enso/structures`:

- `model.php`
- `menu.php`
- `permissions.php`
- `package.php`
- `params.php`
- `files.php`
- `permissionGroup.php`

### Generated artifacts

[](#generated-artifacts)

Depending on the selected file set, the generator can write:

- Eloquent model classes
- create-table and structure migrations
- form builders, templates, and request validators
- table builders and templates
- CRUD API controllers and route stubs
- frontend view pages and route files
- package resources, config, and providers

### Validation rules

[](#validation-rules)

Built-in validation covers:

- namespaced model syntax using forward slashes
- menu route alignment with permission routes
- regular menu items requiring a route
- parent menu existence and ambiguity checks
- parent-menu route restrictions when `has_children` is enabled

Depends On
----------

[](#depends-on)

Required Enso packages:

- [`laravel-enso/core`](https://docs.laravel-enso.com/backend/core.html) [↗](https://github.com/laravel-enso/core)
- [`laravel-enso/helpers`](https://docs.laravel-enso.com/backend/helpers.html) [↗](https://github.com/laravel-enso/helpers)
- [`laravel-enso/menus`](https://docs.laravel-enso.com/backend/menus.html) [↗](https://github.com/laravel-enso/menus)
- [`laravel-enso/permissions`](https://docs.laravel-enso.com/backend/permissions.html) [↗](https://github.com/laravel-enso/permissions)
- [`laravel-enso/enums`](https://docs.laravel-enso.com/backend/enums.html) [↗](https://github.com/laravel-enso/enums)
- [`laravel-enso/roles`](https://docs.laravel-enso.com/backend/roles.html) [↗](https://github.com/laravel-enso/roles)

Contributions
-------------

[](#contributions)

are welcome. Pull requests are great, but issues are good too.

Thank you to all the people who already contributed to Enso!

###  Health Score

60

—

FairBetter than 98% of packages

Maintenance86

Actively maintained with recent releases

Popularity36

Limited adoption so far

Community21

Small or concentrated contributor base

Maturity82

Battle-tested with a long release history

 Bus Factor1

Top contributor holds 68.8% 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 ~19 days

Recently: every ~2 days

Total

164

Last Release

71d ago

Major Versions

1.3.0 → 2.0.02017-09-24

1.3.1 → 2.1.42018-03-05

2.5.5 → 3.0.02019-03-08

3.4.8 → 4.0.02020-06-30

4.0.10 → 5.0.02022-02-25

PHP version history (3 changes)1.1.0PHP &gt;=5.6.4

1.1.2PHP &gt;=7.1.0

3.4.0PHP &gt;=7.4.0

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/16073274?v=4)[Adrian Ocneanu](/maintainers/aocneanu)[@aocneanu](https://github.com/aocneanu)

---

Top Contributors

[![aocneanu](https://avatars.githubusercontent.com/u/16073274?v=4)](https://github.com/aocneanu "aocneanu (205 commits)")[![gandesc](https://avatars.githubusercontent.com/u/14071925?v=4)](https://github.com/gandesc "gandesc (43 commits)")[![vmcvlad](https://avatars.githubusercontent.com/u/37445394?v=4)](https://github.com/vmcvlad "vmcvlad (22 commits)")[![raftx24](https://avatars.githubusercontent.com/u/10864136?v=4)](https://github.com/raftx24 "raftx24 (16 commits)")[![AbdullahiAbdulkabir](https://avatars.githubusercontent.com/u/33360580?v=4)](https://github.com/AbdullahiAbdulkabir "AbdullahiAbdulkabir (3 commits)")[![DevIonut](https://avatars.githubusercontent.com/u/19207797?v=4)](https://github.com/DevIonut "DevIonut (3 commits)")[![GITmanuela](https://avatars.githubusercontent.com/u/44998004?v=4)](https://github.com/GITmanuela "GITmanuela (2 commits)")[![heyner29](https://avatars.githubusercontent.com/u/12703614?v=4)](https://github.com/heyner29 "heyner29 (1 commits)")[![jlsjonas](https://avatars.githubusercontent.com/u/932193?v=4)](https://github.com/jlsjonas "jlsjonas (1 commits)")[![StyleCIBot](https://avatars.githubusercontent.com/u/11048387?v=4)](https://github.com/StyleCIBot "StyleCIBot (1 commits)")[![gaabora](https://avatars.githubusercontent.com/u/10756170?v=4)](https://github.com/gaabora "gaabora (1 commits)")

---

Tags

enso-helperlaravellaravel-ensolaravel-packageclilaravel-ensoenso-helper

### Embed Badge

![Health badge](/badges/laravel-enso-cli/health.svg)

```
[![Health](https://phpackages.com/badges/laravel-enso-cli/health.svg)](https://phpackages.com/packages/laravel-enso-cli)
```

###  Alternatives

[laravel-enso/roles

Role management for Laravel Enso

1044.9k32](/packages/laravel-enso-roles)[laravel-enso/permissions

Permission management for Laravel Enso

1244.2k52](/packages/laravel-enso-permissions)[laravel-enso/tables

Server-side data tables and export backend for Laravel Enso

63355.1k84](/packages/laravel-enso-tables)[laravel-enso/core

The backend shell of a Laravel Enso application

3465.3k206](/packages/laravel-enso-core)[laravel-enso/tutorials

Tutorial management backend for Laravel Enso

1140.7k](/packages/laravel-enso-tutorials)[laravel-enso/forms

JSON-based form builder for Laravel Enso

12354.2k85](/packages/laravel-enso-forms)

PHPackages © 2026

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