承接 laravel-enso/cli 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

laravel-enso/cli

Composer 安装命令:

composer require laravel-enso/cli

包简介

Interactive scaffolding for Laravel Enso resources

README 文档

README

License Stable Downloads PHP Issues Merge Requests

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: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

  • 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:

  • 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

Artisan command

  • enso:cli

Published configuration

Published under config/enso/structures:

  • model.php
  • menu.php
  • permissions.php
  • package.php
  • params.php
  • files.php
  • permissionGroup.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_children is enabled

Depends On

Required Enso packages:

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 我们能提供哪些服务?
定制开发 / 二次开发

基于 laravel-enso/cli 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。

BUG 修复 & 性能优化

线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。

项目外包 & 长期维护

承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。

yvsm@zunyunkeji.com QQ:316430983 微信:yvsm316 西安尊云信息科技 · 专注 PHP / Go / 分布式系统研发

统计信息

  • 总下载量: 39.53k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 10
  • 点击次数: 15
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 10
  • Watchers: 5
  • Forks: 8
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2019-05-17