PHPackages                             crazywhalecc/cli-helper - 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. crazywhalecc/cli-helper

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

crazywhalecc/cli-helper
=======================

0.1.0(3y ago)196252Apache-2.0PHPPHP &gt;= 7.2

Since Jun 4Pushed 3y ago1 watchersCompare

[ Source](https://github.com/crazywhalecc/php-cli-helper)[ Packagist](https://packagist.org/packages/crazywhalecc/cli-helper)[ RSS](/packages/crazywhalecc-cli-helper/feed)WikiDiscussions master Synced 1mo ago

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

PHP CLI Helper
==============

[](#php-cli-helper)

A simple PHP CLI helper.

Basic Usage
-----------

[](#basic-usage)

You can just download the packed executable phar for this helper.

```
wget https://github.com/crazywhalecc/php-cli-helper/releases/download/0.1.0/cli-helper
chmod +x cli-helper
# Run it!
./cli-helper
```

Pack Project to Single Executable File (PHP Installed required)
---------------------------------------------------------------

[](#pack-project-to-single-executable-file-php-installed-required)

1. move `cli-helper` into PATH

```
# If you don't want to move it, remember your download path and directly execute it with its path.
# If you are not root, remember using `sudo`.
mv ./cli-helper /usr/local/bin/cli-helper
```

2. cd to your project which will be packed, e.g. `/home/ubuntu/your-project`, and clean your dev dependencies.

```
cd /home/ubuntu/your-project
composer update --no-dev
```

3. RUN cli-helper, pack current directory.

> Notice: This command will ask you target phar path, entrypoint file name, etc.

```
cli-helper pack . app.phar
```

4. Make phar executable

```
# add X permission
chmod +x /tmp/app.phar

# remove phar suffix, like a binary executable
mv /tmp/app.phar /tmp/your-app-name

# You can use it any way you like, for example, move to system PATH to execute it directly
cd /tmp
./your-app-name

mv your-app-name /usr/local/bin/
your-app-name
```

Make standalone binary executable with PHP (multiple arch supported)
--------------------------------------------------------------------

[](#make-standalone-binary-executable-with-php-multiple-arch-supported)

Prepare your phar file packed through the above steps, we assume your phar name is `your-app.phar`.

```
# Download micro builds from `static-php-cli` project, remember check the latest PHP version from `https://dl.zhamao.xin/php-bin/file/` !
# You can change `x86_64` to `aarch64`, `armv7l`。
wget https://dl.zhamao.xin/php-bin/file/micro-8.0.19-x86_64.tar.gz
tar -zxvf micro-*.tar.gz
# Combine micro and your phar files
cat ./micro your-app.phar > your-app-standalone
chmod +x your-app-standalone

# Then just execute it anywhere, even your another machine have no php environment!
./your-app-standalone
```

> Notice: This project is a complement to [static-php-cli](https://github.com/crazywhalecc/static-php-cli), for more details, check this link.

###  Health Score

23

—

LowBetter than 27% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity25

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity32

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

1443d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/8bbf5705e9f35b31cbba478f9fbae0b6da2211348ecd41689cd2e4230c77a3e1?d=identicon)[crazywhalecc](/maintainers/crazywhalecc)

---

Top Contributors

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

###  Code Quality

Code StylePHP CS Fixer

### Embed Badge

![Health badge](/badges/crazywhalecc-cli-helper/health.svg)

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

###  Alternatives

[illuminate/console

The Illuminate Console package.

12944.1M5.1k](/packages/illuminate-console)[crazywhalecc/static-php-cli

Build single static PHP binary, with PHP project together, with popular extensions included.

1.8k13.9k](/packages/crazywhalecc-static-php-cli)[matthiasnoback/symfony-console-form

Use Symfony forms for Console command input

368264.8k8](/packages/matthiasnoback-symfony-console-form)[phpcr/phpcr-shell

Shell for PHPCR

721.3M8](/packages/phpcr-phpcr-shell)[madewithlove/license-checker

CLI tool to verify allowed licenses for composer dependencies

54449.8k21](/packages/madewithlove-license-checker)[shel/neos-terminal

Neos CMS Ui terminal for running Eel expressions and other commands

1441.3k](/packages/shel-neos-terminal)

PHPackages © 2026

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