jinomial/fw-cli 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

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

jinomial/fw-cli

最新稳定版本:v1.0.1

Composer 安装命令:

composer require jinomial/fw-cli

包简介

The command line interface for the FW framework.

README 文档

README

This is the command-line utility for the FW Ecosystem, acting as the core compiler that transforms declarative YAML into highly-optimized, strictly-typed PHP code.

Available Commands

When running php fw from your application root, the following commands are available:

build:api

  • Purpose: Compiles api/*.yaml files.
  • Output:
    • Generates strict readonly class DTOs for payloads.
    • Generates *Handler classes with invoked methods.
    • Compiles build/routes.php as a static array for the Kernel.

build:db

  • Purpose: Compiles database/schema.yaml.
  • Output:
    • Generates strictly-typed native PHP *Model classes (e.g., UserModel).
    • Generates *RepositoryInterface contracts.
    • Generates Base*Repository classes containing explicit parameter-bound SQL queries mapping to the DTOs, completely eliminating N+1 lazy loading.

build:migrations

  • Purpose: Compiles database/schema.yaml diffs into SQL scripts.
  • Output:
    • Drops raw CREATE TABLE .sql scripts into database/migrations/.

build:container

  • Purpose: Compiles the Dependency Injection Container.
  • Output:
    • Reflects across your entire application and specifically bound config/dependencies.php file.
    • Writes build/container.php, a gigantic switch/case statement of instantiated singletons to eliminate runtime reflection overhead.

统计信息

  • 总下载量: 4
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 4
  • 依赖项目数: 1
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 0
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2026-03-07

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固