PHPackages                             jinomial/fw-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. jinomial/fw-cli

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

jinomial/fw-cli
===============

The command line interface for the FW framework.

v1.0.1(3mo ago)041MITPHPPHP &gt;=8.3.0CI failing

Since Mar 7Pushed 3mo agoCompare

[ Source](https://github.com/jinomial/fw-cli)[ Packagist](https://packagist.org/packages/jinomial/fw-cli)[ RSS](/packages/jinomial-fw-cli/feed)WikiDiscussions master Synced 3w ago

READMEChangelog (1)Dependencies (5)Versions (3)Used By (1)

FW CLI Compiler
===============

[](#fw-cli-compiler)

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

[](#available-commands)

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

### `build:api`

[](#buildapi)

- **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`

[](#builddb)

- **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`

[](#buildmigrations)

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

### `build:container`

[](#buildcontainer)

- **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.

###  Health Score

37

—

LowBetter than 81% of packages

Maintenance79

Regular maintenance activity

Popularity3

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity50

Maturing project, gaining track record

 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.

###  Release Activity

Cadence

Every ~0 days

Total

2

Last Release

108d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/26f680a2a0545691ca0b1e8268798ef37d6ab3f0942289914d7a58f49efddf99?d=identicon)[jinomial](/maintainers/jinomial)

---

Top Contributors

[![jinomial](https://avatars.githubusercontent.com/u/91918643?v=4)](https://github.com/jinomial "jinomial (13 commits)")

###  Code Quality

TestsPest

### Embed Badge

![Health badge](/badges/jinomial-fw-cli/health.svg)

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

###  Alternatives

[friendsoftypo3/content-blocks

TYPO3 CMS Content Blocks - Content Types API | Define reusable components via YAML

101466.4k45](/packages/friendsoftypo3-content-blocks)[jolicode/castor

A lightweight and modern task runner. Automate everything. In PHP.

54642.4k4](/packages/jolicode-castor)[whatsdiff/whatsdiff

See what's changed in your project's dependencies

761.1k](/packages/whatsdiff-whatsdiff)[rcsofttech/audit-trail-bundle

Enterprise-grade, high-performance Symfony audit trail bundle. Automatically track Doctrine entity changes with split-phase architecture, multiple transports (HTTP, Queue, Doctrine), and sensitive data masking.

1155.2k](/packages/rcsofttech-audit-trail-bundle)[aeliot/todo-registrar

Register TODOs from source code in issue tracker

153.0k](/packages/aeliot-todo-registrar)

PHPackages © 2026

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