PHPackages                             minicli/command-stencil - 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. minicli/command-stencil

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

minicli/command-stencil
=======================

A Minicli command to generate files based on minicli/stencil templates

0.1.0(3y ago)3612MITPHP

Since Jun 20Pushed 3y ago1 watchersCompare

[ Source](https://github.com/minicli/command-stencil)[ Packagist](https://packagist.org/packages/minicli/command-stencil)[ Docs](https://github.com/minicli/command-stencil)[ RSS](/packages/minicli-command-stencil/feed)WikiDiscussions main Synced 4w ago

READMEChangelog (1)Dependencies (3)Versions (2)Used By (0)

Minicli Stencil Command
=======================

[](#minicli-stencil-command)

Command implementation of [minicli/stencil](https://github.com/minicli/stencil). This command will generate files based on Stencil templates. It is useful for creating boilerplate files such as new classes and other documents that should follow a certain structure or template.

Usage
-----

[](#usage)

First, import this command with Composer:

```
composer require minicli/command-stencil
```

Then, edit your app's config to include `@minicli/command-help` within your `app_path` definitions. You'll also need to set the `stencilDir` config variable and point it to your Stencils directory. For instance:

```
$app = new App([
    'app_path' => [
            __DIR__ . '/app/Command',
            '@minicli/command-stencil'
        ],
    'stencilDir' => __DIR__ . '/stencils',
    'debug' => true
]);
```

You should now be able to run the `./minicli stencil` command.

### Testing templates

[](#testing-templates)

You can copy the example template from `vendor/minicli/command-stencil/stencils/example.tpl` to test it out:

```
cp ./vendor/minicli/command-stencil/stencils/example.tpl ./stencils
```

Then, run `./minicli stencil` with the template set to `example`, providing the expected variable `name`:

```
./minicli stencil template=example name=YourName
```

```
Hello YourName!%
```

### Output content to a file

[](#output-content-to-a-file)

Include an `output=full-path-to-file` to save the parsed content to a file:

```
./minicli stencil template=example name=YourName output=test.txt
```

```
Hello YourName!%
```

You should see a file named `test.txt` with the same output of the command. To suppress the command output, set `debug` to `false` in the app's configuration.

###  Health Score

23

—

LowBetter than 27% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity19

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity37

Early-stage or recently created project

 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

Unknown

Total

1

Last Release

1418d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/efad91e92c56f2a771b7dbabb064d25d65392a60751a19666626672bdca575a6?d=identicon)[erikaheidi](/maintainers/erikaheidi)

---

Top Contributors

[![erikaheidi](https://avatars.githubusercontent.com/u/293241?v=4)](https://github.com/erikaheidi "erikaheidi (8 commits)")

---

Tags

clicommand-linetemplateminicli

###  Code Quality

TestsPest

### Embed Badge

![Health badge](/badges/minicli-command-stencil/health.svg)

```
[![Health](https://phpackages.com/badges/minicli-command-stencil/health.svg)](https://phpackages.com/packages/minicli-command-stencil)
```

###  Alternatives

[symfony/console

Eases the creation of beautiful and testable command line interfaces

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

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

4.6k331.8M8.4k](/packages/nunomaduro-collision)[nategood/commando

PHP CLI Commando Style

8123.3M38](/packages/nategood-commando)[nunomaduro/laravel-console-task

Laravel Console Task is a output method for your Laravel/Laravel Zero commands.

2582.1M11](/packages/nunomaduro-laravel-console-task)[splitbrain/php-cli

Easy command line scripts for PHP with opt parsing and color output. No dependencies

177817.2k28](/packages/splitbrain-php-cli)[aura/cli

Provides the equivalent of request (Context) and response (Stdio) classes for a command line environment, including Getopt support.

1051.6M29](/packages/aura-cli)

PHPackages © 2026

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