PHPackages                             ewci/cli-make-command - 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. ewci/cli-make-command

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

ewci/cli-make-command
=====================

Package to help making the command class, controller class, filter class, entity class, model class

v1.0.1(5y ago)024MITPHPPHP &gt;=7.2

Since Oct 30Pushed 5y ago1 watchersCompare

[ Source](https://github.com/giangmd/cli-make-command)[ Packagist](https://packagist.org/packages/ewci/cli-make-command)[ RSS](/packages/ewci-cli-make-command/feed)WikiDiscussions main Synced 3w ago

READMEChangelogDependenciesVersions (4)Used By (0)

CodeIgniter4 CLI Make Command
=============================

[](#codeigniter4-cli-make-command)

[![Latest Stable Version](https://camo.githubusercontent.com/f7fcd74aff091177a8c81f39d46640ae09d42ec7186c7fd45e8b8d27983ea00b/68747470733a2f2f706f7365722e707567782e6f72672f657763692f636c692d6d616b652d636f6d6d616e642f76)](//packagist.org/packages/ewci/cli-make-command) [![Total Downloads](https://camo.githubusercontent.com/af932b92848559c60439ff6809f4e741373b94bd92590e4e6d8b14db447270ee/68747470733a2f2f706f7365722e707567782e6f72672f657763692f636c692d6d616b652d636f6d6d616e642f646f776e6c6f616473)](//packagist.org/packages/ewci/cli-make-command) [![License](https://camo.githubusercontent.com/042adc5bb25a44382ffb02126549e1f399e1fdea143ae15528afe6ba924aeb48/68747470733a2f2f706f7365722e707567782e6f72672f657763692f636c692d6d616b652d636f6d6d616e642f6c6963656e7365)](//packagist.org/packages/ewci/cli-make-command)

CodeIgniter CLI Make Command is based on CodeIgniter version 4. It will help you generate template files (Command line, Controller, Filter, Entity, Model) more quickly when developing projects with CodeIgniter4.

This is an idea got from Laravel Framework as well.

Install
-------

[](#install)

### Prerequisites

[](#prerequisites)

1. CodeIgniter Framework 4.\*
2. Composer

### Composer Install

[](#composer-install)

```
composer require ewci/cli-make-command

```

### Use Library

[](#use-library)

Open Terminal in Mac/Linux or go to Run &gt; “cmd” in Windows and navigate to CodeIgniter4 project’s root:

```
php spark list

```

Now, if you see the following message, the installation is successful.

```
make
  make:command       Create a new command class.
  make:controller    Create a new controller class.
  make:entity        Create a new entity class.
  make:filter        Create a new filter class.
  make:model         Create a new model class.

```

Guide
=====

[](#guide)

make:command
------------

[](#makecommand)

Create a new command file.

- Use

    ```
    php spark make:command [class_name] [options]

    ```
- Description:

    ```
    Create a new command file.

    ```
- Arguments:

    1. class\_name : The command name.
- Options:

    ```
    --command   The command name to run in spark. Defaults to command:name.
    --group     The group/namespace of the command. Defaults to CodeIgniter for basic commands, and Generators for generator commands.
    --type      The type of command, whether a basic command or a generator command. Defaults to basic
    -n          Set controller namespace
    --force     Set this flag to overwrite existing files on destination.

    ```

make:controller
---------------

[](#makecontroller)

Create a new controller file.

- Use

    ```
    php spark make:controller [class_name] [options]

    ```
- Description:

    ```
    Create a new controller file.

    ```
- Arguments:

    1. class\_name : The controller name.
- Options:

    ```
    --restful   Extends from a RESTful resource.
    -n          Set controller namespace
    --force     Set this flag to overwrite existing files on destination.

    ```

make:entity
-----------

[](#makeentity)

Create a new entity file.

- Use

    ```
    php spark make:entity [class_name] [options]

    ```
- Description:

    ```
    Create a new entity file.

    ```
- Arguments:

    1. class\_name : The entity name
- Options:

    ```
    -n          Set entity namespace
    --force     Set this flag to overwrite existing files on destination.

    ```

make:model
----------

[](#makemodel)

Create a new model file.

- Use

    ```
    php spark make:model [class_name] [options]

    ```
- Description:

    ```
    Create a new model file.

    ```
- Arguments:

    1. class\_name : The model name
- Options:

    ```
    --dbgroup   Database group to use. Defaults to default.
    --entity    Set this flag to use an entity class as the return type.'
    --table     Supply a different table name. Defaults to the pluralized class name.'
    -n          Set model namespace
    --force     Set this flag to overwrite existing files on destination.

    ```

make:filter
-----------

[](#makefilter)

Create a new filter file.

- Use

    ```
    php spark make:filter [class_name] [options]

    ```
- Description:

    ```
    Create a new filter file.

    ```
- Arguments:

    1. class\_name : The filter name
- Options:

    ```
    -n          Set filter namespace
    --force     Set this flag to overwrite existing files on destination.

    ```

### Enjoy!

[](#enjoy)

###  Health Score

23

—

LowBetter than 26% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity51

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

2062d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/8228c9efdde3708cf94af68f1222b544087867d2715d4375cca6aaf99d59cdb8?d=identicon)[giangmd](/maintainers/giangmd)

---

Top Contributors

[![giangmd](https://avatars.githubusercontent.com/u/7996382?v=4)](https://github.com/giangmd "giangmd (2 commits)")

---

Tags

clicodeignitermakecodeigniter4

### Embed Badge

![Health badge](/badges/ewci-cli-make-command/health.svg)

```
[![Health](https://phpackages.com/badges/ewci-cli-make-command/health.svg)](https://phpackages.com/packages/ewci-cli-make-command)
```

###  Alternatives

[symfony/console

Eases the creation of beautiful and testable command line interfaces

9.8k1.1B13.2k](/packages/symfony-console)[nunomaduro/collision

Cli error handling for console/command-line PHP applications.

4.6k348.7M10.4k](/packages/nunomaduro-collision)[nunomaduro/termwind

It's like Tailwind CSS, but for the console.

2.5k260.6M359](/packages/nunomaduro-termwind)[wp-cli/wp-cli

WP-CLI framework

5.1k18.5M386](/packages/wp-cli-wp-cli)[wp-cli/php-cli-tools

Console utilities for PHP

68327.0M372](/packages/wp-cli-php-cli-tools)[kenjis/codeigniter-cli

A command-line tool for CodeIgniter 3.0

9437.5k](/packages/kenjis-codeigniter-cli)

PHPackages © 2026

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