PHPackages                             khs1994/phar-builder - 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. khs1994/phar-builder

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

khs1994/phar-builder
====================

v20.10.15(5y ago)14361MITPHPPHP ^7.1 || ^8.0

Since Sep 23Pushed 5y agoCompare

[ Source](https://github.com/khs1994-php/PharBuilder)[ Packagist](https://packagist.org/packages/khs1994/phar-builder)[ RSS](/packages/khs1994-phar-builder/feed)WikiDiscussions develop Synced 6d ago

READMEChangelogDependencies (16)Versions (17)Used By (1)

PharBuilder
===========

[](#pharbuilder)

Create a Phar (PHp ARchive) file of your Composer based PHP application

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

[](#installation)

### Composer

[](#composer)

```
composer require macfja/phar-builder
```

### Phar archive

[](#phar-archive)

You can download the Phar directly on GitHub in the release section ()

Usage
-----

[](#usage)

### Within a composer based project

[](#within-a-composer-based-project)

```
vendor/bin/phar-builder
```

### With the phar

[](#with-the-phar)

```
phar-builder.phar package path-to-your-composer.json-file
```

### Command `package`

[](#command-package)

*Extract from the `vendor/bin/phar-builder help package` command*

```
Description:
  Generate a Phar from a composer.json

Usage:
  package [options] [--] []

Arguments:
  composer-json                  The path to the composer.json file.
                                 If the argument is not defined, search of a composer.json inside the current directory

Options:
      --output=OUTPUT            Where to output the Phar
      --name=NAME                The name of the Phar
      --no-dev                   Do not include dev dependencies
      --dev                      Include dev dependencies
      --no-shebang               Do not add/remove shebang
      --shebang                  Ensure that a shebang is used
      --entry-point=ENTRY-POINT  The file to include when the Phar is executed/called
      --included=INCLUDED        The list (separate by ",") of path to add in the Phar
      --excluded=EXCLUDED        The list (separate by ",") of path to exclude in the Phar
      --bz2                      Use the BZip2 compression for the Phar
      --gzip                     Use the GZip compression for the Phar
      --flat                     Do not compress the Phar
  -h, --help                     Display this help message
  -q, --quiet                    Do not output any message
  -V, --version                  Display this application version
      --ansi                     Force ANSI output
      --no-ansi                  Disable ANSI output
  -n, --no-interaction           Do not ask any interactive question
  -v|vv|vvv, --verbose           Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3 for debug

```

[More information about the Composer configuration](docs/ComposerJsonOptions.md)

Similar projects
----------------

[](#similar-projects)

-
-
-
-
-
-
-
-
-
-
-
-
-
-
-

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

###  Health Score

35

—

LowBetter than 80% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity16

Limited adoption so far

Community16

Small or concentrated contributor base

Maturity76

Established project with proven stability

 Bus Factor1

Top contributor holds 77.2% 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 ~142 days

Recently: every ~178 days

Total

14

Last Release

2041d ago

Major Versions

0.2.x-dev → v20.02.112020-02-10

PHP version history (3 changes)0.2.5PHP &gt;=5.4.0

v20.02.11PHP ~7.1

v20.10.15PHP ^7.1 || ^8.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/69941311121544acc11e09be153f827d1c02ba629fba7b09bea32a96b92d8274?d=identicon)[khs1994](/maintainers/khs1994)

---

Top Contributors

[![MacFJA](https://avatars.githubusercontent.com/u/1475671?v=4)](https://github.com/MacFJA "MacFJA (78 commits)")[![khs1994](https://avatars.githubusercontent.com/u/16733187?v=4)](https://github.com/khs1994 "khs1994 (6 commits)")[![kelunik](https://avatars.githubusercontent.com/u/2743004?v=4)](https://github.com/kelunik "kelunik (5 commits)")[![wapmorgan](https://avatars.githubusercontent.com/u/6000618?v=4)](https://github.com/wapmorgan "wapmorgan (3 commits)")[![PeeHaa](https://avatars.githubusercontent.com/u/1330296?v=4)](https://github.com/PeeHaa "PeeHaa (3 commits)")[![nadar](https://avatars.githubusercontent.com/u/3417221?v=4)](https://github.com/nadar "nadar (2 commits)")[![hslatman](https://avatars.githubusercontent.com/u/1219780?v=4)](https://github.com/hslatman "hslatman (2 commits)")[![ElectroLutz](https://avatars.githubusercontent.com/u/3415852?v=4)](https://github.com/ElectroLutz "ElectroLutz (1 commits)")[![villfa](https://avatars.githubusercontent.com/u/2891564?v=4)](https://github.com/villfa "villfa (1 commits)")

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan, Psalm

Code StylePHP\_CodeSniffer

Type Coverage Yes

### Embed Badge

![Health badge](/badges/khs1994-phar-builder/health.svg)

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

###  Alternatives

[php-soap/wsdl

Deals with WSDLs

173.5M12](/packages/php-soap-wsdl)[macfja/phar-builder

12611.8k11](/packages/macfja-phar-builder)[phel-lang/phel-lang

Phel is a functional programming language that compiles to PHP

4743.5k10](/packages/phel-lang-phel-lang)[symfony/ai-bundle

Integration bundle for Symfony AI components

30282.3k6](/packages/symfony-ai-bundle)[aedart/athenaeum

Athenaeum is a mono repository; a collection of various PHP packages

245.2k](/packages/aedart-athenaeum)

PHPackages © 2026

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