PHPackages                             sof3/pharynx - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. sof3/pharynx

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

sof3/pharynx
============

0.3.8(1y ago)224.3k7[5 issues](https://github.com/SOF3/pharynx/issues)2Apache-2.0PHPPHP &gt;=8.0

Since May 27Pushed 1y ago2 watchersCompare

[ Source](https://github.com/SOF3/pharynx)[ Packagist](https://packagist.org/packages/sof3/pharynx)[ RSS](/packages/sof3-pharynx/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (10)Dependencies (4)Versions (22)Used By (2)

pharynx
=======

[](#pharynx)

A tool to recompile PHP sources into a phar in PSR-0

```
USAGE
  -v           : Enable verbose output.
  -i PATH      : Equivalent to `-f plugin.yml:PATH/plugin.yml -f PATH/resources -s PATH/src`.
  -f NAME:PATH : Copy the file or directory at PATH to output/NAME.
                 `:` is not considered as a separator if immediately followed by a backslash.
                 Can be passed multiple times.
  -s PATH      : Use the directory at PATH as a source root.
                 Can be passed multiple times
  -r NAME      : The path of the source root in the output.
                 Default `src`.
  -o PATH      : Store the output in directory form at PATH.
  -p[=PATH]    : Pack the output in phar form at PATH.
                 If no value is given, uses the path in `-o` followed by `.phar`.
                 If neither -o nor -p are passed, or only `-p` is passed but without values,
                 `-p output.phar` is assumed.
  -a ANTIGEN   : The virion antigens to shade.
                 Can be passed multiple times
  -c[=PATH]    : Infer source paths and antigens from composer.
                 Assumes that `composer install` was already run.
                 If a value is not provided, uses the same path as `-i`.
                 Otherwise, PATH should be the path to the directory containing composer.json.

EXAMPLES
  Package a plugin phar:
  $ php pharynx.phar -i path/to/your/plugin -p my-plugin.phar

  Package a plugin phar with composer virion dependencies:
  $ php pharynx.phar -i path/to/your/plugin -c -p my-plugin.phar

  Bundle output to a directory without building phar
  $ php pharynx.phar -i path/to/your/plugin -o output

  Package a plugin phar to output.phar, along with generated files in a gen directory:
  $ php pharynx.phar -i path/to/your/plugin -s path/to/gen
```

Use with PocketMine plugins
---------------------------

[](#use-with-pocketmine-plugins)

Download start.cmd/start.sh, pharynx.phar and bootstrap-plugin-dev.php from [releases](https://github.com/SOF3/pharynx/releases)and copy them to your PocketMine install directory. Replace PocketMine's start.cmd/start.sh with the one you downloaded. Edit start.sh/start.cmd and change `"plugin_source/MyPlugin"` to the plugin(s) to build with pharynx (only start.sh supports multiple plugins). Then just start the server as usual!

###  Health Score

37

—

LowBetter than 83% of packages

Maintenance32

Infrequent updates — may be unmaintained

Popularity33

Limited adoption so far

Community22

Small or concentrated contributor base

Maturity52

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 77.8% 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 ~50 days

Recently: every ~112 days

Total

18

Last Release

596d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/2801890?v=4)[SOFe](/maintainers/SOFe)[@sofe](https://github.com/sofe)

---

Top Contributors

[![SOF3](https://avatars.githubusercontent.com/u/19623715?v=4)](https://github.com/SOF3 "SOF3 (56 commits)")[![yuyaprgrm](https://avatars.githubusercontent.com/u/17157879?v=4)](https://github.com/yuyaprgrm "yuyaprgrm (5 commits)")[![JavierLeon9966](https://avatars.githubusercontent.com/u/58715544?v=4)](https://github.com/JavierLeon9966 "JavierLeon9966 (5 commits)")[![Xd-pro](https://avatars.githubusercontent.com/u/62808970?v=4)](https://github.com/Xd-pro "Xd-pro (2 commits)")[![Endermanbugzjfc](https://avatars.githubusercontent.com/u/53002741?v=4)](https://github.com/Endermanbugzjfc "Endermanbugzjfc (2 commits)")[![nicholass003](https://avatars.githubusercontent.com/u/142091702?v=4)](https://github.com/nicholass003 "nicholass003 (1 commits)")[![Nexus9w9](https://avatars.githubusercontent.com/u/92955829?v=4)](https://github.com/Nexus9w9 "Nexus9w9 (1 commits)")

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan

Code StylePHP CS Fixer

Type Coverage Yes

### Embed Badge

![Health badge](/badges/sof3-pharynx/health.svg)

```
[![Health](https://phpackages.com/badges/sof3-pharynx/health.svg)](https://phpackages.com/packages/sof3-pharynx)
```

###  Alternatives

[composer/satis

Simple Repository Generator

3.3k1.4M17](/packages/composer-satis)[roave/backward-compatibility-check

Tool to compare two revisions of a public API to check for BC breaks

5953.3M56](/packages/roave-backward-compatibility-check)[magento/magento-composer-installer

Composer installer for Magento modules

7523.3M318](/packages/magento-magento-composer-installer)[larapack/hooks

A Laravel Hook system

2171.5M21](/packages/larapack-hooks)[ramsey/conventional-commits

A PHP library for creating and validating commit messages according to the Conventional Commits specification. Includes a CaptainHook action!

1931.2M122](/packages/ramsey-conventional-commits)[dominikb/composer-license-checker

Utility to check for licenses of dependencies and block/allow them.

563.8M9](/packages/dominikb-composer-license-checker)

PHPackages © 2026

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