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

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

macfja/phar-builder
===================

0.2.8(7y ago)12611.8k↓33.3%19[3 issues](https://github.com/MacFJA/PharBuilder/issues)11MITPHPPHP &gt;=5.4.0CI failing

Since Sep 23Pushed 6y ago9 watchersCompare

[ Source](https://github.com/MacFJA/PharBuilder)[ Packagist](https://packagist.org/packages/macfja/phar-builder)[ RSS](/packages/macfja-phar-builder/feed)WikiDiscussions develop Synced 1mo ago

READMEChangelog (9)Dependencies (11)Versions (14)Used By (11)

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

38

—

LowBetter than 85% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity40

Moderate usage in the ecosystem

Community31

Small or concentrated contributor base

Maturity55

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 82.1% 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 ~113 days

Recently: every ~204 days

Total

11

Last Release

2755d ago

### Community

Maintainers

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

---

Top Contributors

[![MacFJA](https://avatars.githubusercontent.com/u/1475671?v=4)](https://github.com/MacFJA "MacFJA (78 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)")[![villfa](https://avatars.githubusercontent.com/u/2891564?v=4)](https://github.com/villfa "villfa (1 commits)")[![ElectroLutz](https://avatars.githubusercontent.com/u/3415852?v=4)](https://github.com/ElectroLutz "ElectroLutz (1 commits)")

---

Tags

composerpackagephar

###  Code Quality

Code StylePHP\_CodeSniffer

### Embed Badge

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

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

###  Alternatives

[symfony/maker-bundle

Symfony Maker helps you create empty commands, controllers, form classes, tests and more so you can forget about writing boilerplate code.

3.4k111.1M568](/packages/symfony-maker-bundle)[symplify/monorepo-builder

Not only Composer tools to build a Monorepo.

5205.3M82](/packages/symplify-monorepo-builder)[coenjacobs/mozart

Composes all dependencies as a package inside a WordPress plugin

4723.6M20](/packages/coenjacobs-mozart)[civicrm/civicrm-core

Open source constituent relationship management for non-profits, NGOs and advocacy organizations.

728272.9k20](/packages/civicrm-civicrm-core)[shlinkio/shlink

A self-hosted and PHP-based URL shortener application with CLI and REST interfaces

4.8k4.3k](/packages/shlinkio-shlink)[shyim/danger-php

Port of danger to PHP

8544.9k](/packages/shyim-danger-php)

PHPackages © 2026

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