laravel-enso/cli
Composer 安装命令:
composer require laravel-enso/cli
包简介
Interactive scaffolding for Laravel Enso resources
README 文档
README
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
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:cliArtisan 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
- 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
Start the interactive generator:
php artisan enso:cli
The command lets you configure these sections before generation:
ModelPermission GroupPermissionsMenuFilesPackage
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
Artisan command
enso:cli
Published configuration
Published under config/enso/structures:
model.phpmenu.phppermissions.phppackage.phpparams.phpfiles.phppermissionGroup.php
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
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_childrenis enabled
Depends On
Required Enso packages:
laravel-enso/core↗laravel-enso/helpers↗laravel-enso/menus↗laravel-enso/permissions↗laravel-enso/enums↗laravel-enso/roles↗
Contributions
are welcome. Pull requests are great, but issues are good too.
Thank you to all the people who already contributed to Enso!
laravel-enso/cli 适用场景与选型建议
laravel-enso/cli 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 39.53k 次下载、GitHub Stars 达 10, 最近一次更新时间为 2019 年 05 月 17 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「cli」 「laravel-enso」 「enso-helper」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 laravel-enso/cli 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 laravel-enso/cli 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 laravel-enso/cli 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
Enums for Laravel Enso
Company management dependency for Laravel Enso
Person management for Laravel Enso
Image transformer dependency for Laravel Enso
Structure-aware migration helpers for Laravel Enso packages
Search and interval helpers for Laravel Enso
统计信息
- 总下载量: 39.53k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 10
- 点击次数: 15
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2019-05-17