PHPackages                             mix/mix-phar-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. mix/mix-phar-skeleton

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

mix/mix-phar-skeleton
=====================

Phar command line program development skeleton

v2.2.14(5y ago)771378Apache-2.0PHPPHP &gt;=7.2.0

Since Dec 27Pushed 5y ago2 watchersCompare

[ Source](https://github.com/mix-php/mix-phar-skeleton)[ Packagist](https://packagist.org/packages/mix/mix-phar-skeleton)[ Docs](https://openmix.org/mix-php)[ RSS](/packages/mix-mix-phar-skeleton/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (12)Versions (16)Used By (0)

Mix Phar Skeleton
-----------------

[](#mix-phar-skeleton)

命令行单执行文件 `Phar` 开发程序骨架，Mix 封装的命令行基础设施在骨架中都可使用。

我们提供了打包工具 [mix-pack](https://github.com/mix-php/mix-pack)，可以将本项目打包为 Phar 文件（就像 golang 编译成执行文件一样）。

PHP 原本就是一个动态版本的 C 库集合，现在基于 Swoole 的协程支持，再加上 Mix 封装的大量基础设施，Mix 基本等同于一个动态版本的 Golang，极大的扩展了 PHP 的开发领域，可以用来快速开发各种高性能的 CLI 程序，如：核心业务的守护程序、轻量级中间件、运维工具、系统命令、开发辅助工具等。

开发文档
----

[](#开发文档)

MixPHP 开发指南：

环境要求
----

[](#环境要求)

- PHP &gt;= 7.2
- Swoole &gt;= 4.4.4 (可选)

快速开始
----

[](#快速开始)

推荐使用 [composer](https://www.phpcomposer.com/) 安装。

安装最新版本：

```
composer create-project --prefer-dist mix/mix-phar-skeleton phar ~2.2.0
```

开发方式与 MixPHP 的命令行开发一样，参见 MixPHP 开发指南。

> 注意：本骨架 composer 依赖只安装了命令行所需要的 [最小依赖](https://github.com/mix-php/mix-phar-skeleton/blob/master/composer.json#L19)，像 mix/cache、mix/server 等其他库都需用户自行安装

License
-------

[](#license)

Apache License Version 2.0,

###  Health Score

33

—

LowBetter than 74% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity25

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity63

Established project with proven stability

 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 ~46 days

Recently: every ~72 days

Total

15

Last Release

2047d ago

PHP version history (2 changes)v2.0.1-Beta2PHP &gt;=7.0.0

v2.1.0-RCPHP &gt;=7.2.0

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/16074765?v=4)[LIU JIAN](/maintainers/onanying)[@onanying](https://github.com/onanying)

---

Top Contributors

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

---

Tags

cliconsolemixpharswoolepharSkeletonmix

### Embed Badge

![Health badge](/badges/mix-mix-phar-skeleton/health.svg)

```
[![Health](https://phpackages.com/badges/mix-mix-phar-skeleton/health.svg)](https://phpackages.com/packages/mix-mix-phar-skeleton)
```

###  Alternatives

[mix/mix-skeleton

Full-featured development skeleton

142.1k](/packages/mix-mix-skeleton)[humbug/box

Fast, zero config application bundler with PHARs.

1.3k801.5k67](/packages/humbug-box)[jeroen-g/laravel-packager

A cli tool for creating Laravel packages.

1.4k707.3k18](/packages/jeroen-g-laravel-packager)[inhere/console

php console library, provide console argument parse, console controller/command run, color style, user interactive, information show.

3477.4k12](/packages/inhere-console)

PHPackages © 2026

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