PHPackages                             ngmy/phar-extractor - 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. ngmy/phar-extractor

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

ngmy/phar-extractor
===================

A console command to extract the contents of a PHAR archive

0.1.0(5y ago)010[1 PRs](https://github.com/ngmy/phar-extractor/pulls)MITPHPPHP ^7.3|^8.0

Since Apr 10Pushed 5y ago1 watchersCompare

[ Source](https://github.com/ngmy/phar-extractor)[ Packagist](https://packagist.org/packages/ngmy/phar-extractor)[ Fund](https://flattr.com/@ngmy)[ GitHub Sponsors](https://github.com/ngmy)[ RSS](/packages/ngmy-phar-extractor/feed)WikiDiscussions master Synced 1w ago

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

PHAR Extractor
==============

[](#phar-extractor)

[![Latest Stable Version](https://camo.githubusercontent.com/a28cd6d2b3cf90d2fc8942076ed45834a0cb3630c1c737ccd367d54a82f7a002/68747470733a2f2f706f7365722e707567782e6f72672f6e676d792f706861722d657874726163746f722f76)](//packagist.org/packages/ngmy/phar-extractor)[![Total Downloads](https://camo.githubusercontent.com/d97ed0ff735c5fc49e8fe320194b6df377143181d13c751f2a85562ee7f5f1b6/68747470733a2f2f706f7365722e707567782e6f72672f6e676d792f706861722d657874726163746f722f646f776e6c6f616473)](//packagist.org/packages/ngmy/phar-extractor)[![Latest Unstable Version](https://camo.githubusercontent.com/b201eb6dc57f5905c26e03c5b582a188ae6457210cde43ccab8c3de2a417b56c/68747470733a2f2f706f7365722e707567782e6f72672f6e676d792f706861722d657874726163746f722f762f756e737461626c65)](//packagist.org/packages/ngmy/phar-extractor)[![License](https://camo.githubusercontent.com/707d162b8a8e3ce9501bae5d01c95c632052663b27fbec377a76250ddc311675/68747470733a2f2f706f7365722e707567782e6f72672f6e676d792f706861722d657874726163746f722f6c6963656e7365)](//packagist.org/packages/ngmy/phar-extractor)[![composer.lock](https://camo.githubusercontent.com/4a9f70ac1ff7299db7224e74330e437fae2a97794753bc9e16be15977be37562/68747470733a2f2f706f7365722e707567782e6f72672f6e676d792f706861722d657874726163746f722f636f6d706f7365726c6f636b)](//packagist.org/packages/ngmy/phar-extractor)[![PHP CI](https://github.com/ngmy/phar-extractor/actions/workflows/php.yml/badge.svg)](https://github.com/ngmy/phar-extractor/actions/workflows/php.yml)[![Coverage Status](https://camo.githubusercontent.com/dcb1bd129340053d3cdf9a5081208f11bade74e3c674836a369eee3e2ca662b2/68747470733a2f2f636f766572616c6c732e696f2f7265706f732f6769746875622f6e676d792f706861722d657874726163746f722f62616467652e7376673f6272616e63683d6d6173746572)](https://coveralls.io/github/ngmy/phar-extractor?branch=master)[![PHPStan](https://camo.githubusercontent.com/441b5874ce4df0a2defc892979c96c46889b69cb32119d04f0b48626349f8bc9/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f5048505374616e2d656e61626c65642d627269676874677265656e2e7376673f7374796c653d666c6174)](https://github.com/phpstan/phpstan)[![Psalm Coverage](https://camo.githubusercontent.com/e6aaf1c08f3f0f0c095fb5cb3c6efb1403425bded7c096fa08852458371ac83c/68747470733a2f2f73686570686572642e6465762f6769746875622f6e676d792f706861722d657874726163746f722f636f7665726167652e7376673f)](https://shepherd.dev/github/ngmy/phar-extractor)[![Psalm Level](https://camo.githubusercontent.com/adca62a9bf68deb24ae22f5896b929aac475681fe30ce15b8768fd36ad4fd613/68747470733a2f2f73686570686572642e6465762f6769746875622f6e676d792f706861722d657874726163746f722f6c6576656c2e7376673f)](https://shepherd.dev/github/ngmy/phar-extractor)

PHAR Extractor is a console command to extract the contents of a PHAR archive.

```
./phar-extractor.phar extract tools/phpunit
./phar-extractor.phar extract-dir tools
./phar-extractor.phar extract-phive-xml
```

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

[](#requirements)

PHAR Extractor has the following requirements:

- PHP &gt;= 7.3

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

[](#installation)

### PHAR

[](#phar)

Download the PHAR file from the [GitHub Releases page](https://github.com/ngmy/phar-extractor/releases).

### PHIVE

[](#phive)

Execute the PHIVE `install` command:

```
phive install --force-accept-unsigned ngmy/phar-extractor
```

### Composer

[](#composer)

Execute the Composer `require` command:

```
composer require ngmy/phar-extractor
```

Usage
-----

[](#usage)

```
./phar-extractor.phar help
```

Documentation
-------------

[](#documentation)

Please see the [API documentation](https://ngmy.github.io/phar-extractor/api/).

License
-------

[](#license)

PHAR Extractor is open-sourced software licensed under the [MIT license](http://opensource.org/licenses/MIT).

###  Health Score

22

—

LowBetter than 22% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity5

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity48

Maturing project, gaining track record

 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

1864d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/864041?v=4)[Yuta Nagamiya](/maintainers/ngmy)[@ngmy](https://github.com/ngmy)

---

Top Contributors

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

---

Tags

bulk-extractbulk-extractorextractextractorpharphars-xmlphivephppharextractorphivephar extractor

### Embed Badge

![Health badge](/badges/ngmy-phar-extractor/health.svg)

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

###  Alternatives

[humbug/box

Fast, zero config application bundler with PHARs.

1.3k801.5k69](/packages/humbug-box)[illuminate/console

The Illuminate Console package.

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

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

3477.4k12](/packages/inhere-console)[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)
