PHPackages                             slk/zend-cli-skeleton - 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. slk/zend-cli-skeleton

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

slk/zend-cli-skeleton
=====================

Zend Framework Skeleton for creating command line applications

2131PHP

Since Oct 11Pushed 8y ago2 watchersCompare

[ Source](https://github.com/slaff/ZendCliSkeleton)[ Packagist](https://packagist.org/packages/slk/zend-cli-skeleton)[ RSS](/packages/slk-zend-cli-skeleton/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

Zend Cli Skeleton
=================

[](#zend-cli-skeleton)

This Zend Framework application is intended to be used as a boilerplate for your own command line applications.

Requirements
------------

[](#requirements)

- PHP &gt;= 5.6
- zfcampus/zf-console ^1.0

Installation
------------

[](#installation)

Run composer install to get all dependant packages.

- Download the latest composer.phar file from and save it to the root directory of this project
- Run the following command from the root directory of this project:

```
php composer.phar install

```

Usage
-----

[](#usage)

This application is console-aware. It has predefined the following console commands:

- `help`, which will list all available commands
- `version`, which will show you the current version information
- `autocomplete`, which provides auto-completion support for bash, zsh, and any shell that understands auto-completion rules in a similar fashion.

Typical usage will look like this for your application:

```
$ php bin/cli.php help
```

Development
-----------

[](#development)

Make sure to read the official documentation of [zfcampus/zf-console](https://github.com/zfcampus/zf-console/blob/master/README.md)and check the following files for an example of creating a new command in your application.

- `config/routes.php` --&gt; to find an example of defining a new command
- `src/ExampleHandler.php` --&gt; to find an example of a command handler

Build and Package
-----------------

[](#build-and-package)

If you want to distribute your command line application and make it easier for your users then you can give them one stand-alone file to run with everything that is needed packed into it. In PHP this can be achieved by creating a phar file ().

The ZendCliSkeleton comes with a built-in support for creating phar phar files. In the build/ directory you will find phar.php file that creates for you such file. Typical usage is:

```
$ php build/phar zf-tool
```

The command above will create a new file `build/zf-tool.phar` that you can distribute. If you want the name of your app to be something else, then replace `zf-tool` in the command above with the name of your choice.

There is also second command, targeting bash shell, that can help you automate clean build of your phar file. If you run it like this:

```
$ bash build/build-phar.sh
```

The bash script will try to create you phar file by fetching the source code if the application from its git repository, then download dependant libraries described in the composer.json file and finally pack everything into one `build/cli.phar` file.

###  Health Score

22

—

LowBetter than 22% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity9

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity41

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 66.7% 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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/485961688a67e0665c736ef09df029cc42b775958f2920c4344b8808ef227336?d=identicon)[slaff](/maintainers/slaff)

---

Top Contributors

[![slaff](https://avatars.githubusercontent.com/u/247452?v=4)](https://github.com/slaff "slaff (2 commits)")[![curtiskelsey](https://avatars.githubusercontent.com/u/722417?v=4)](https://github.com/curtiskelsey "curtiskelsey (1 commits)")

### Embed Badge

![Health badge](/badges/slk-zend-cli-skeleton/health.svg)

```
[![Health](https://phpackages.com/badges/slk-zend-cli-skeleton/health.svg)](https://phpackages.com/packages/slk-zend-cli-skeleton)
```

###  Alternatives

[wp-cli/wp-cli

WP-CLI framework

5.0k17.2M319](/packages/wp-cli-wp-cli)[consolidation/annotated-command

Initialize Symfony Console commands from annotated command class methods.

22569.8M18](/packages/consolidation-annotated-command)[chi-teck/drupal-code-generator

Drupal code generator

26947.8M5](/packages/chi-teck-drupal-code-generator)[seld/cli-prompt

Allows you to prompt for user input on the command line, and optionally hide the characters they type

24725.8M17](/packages/seld-cli-prompt)[illuminate/console

The Illuminate Console package.

12944.1M5.1k](/packages/illuminate-console)[php-tui/php-tui

Comprehensive TUI library heavily influenced by Ratatui

589747.0k6](/packages/php-tui-php-tui)

PHPackages © 2026

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