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

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

crodas/phar-builder
===================

Build Phar like a boss

597PHP

Since Mar 31Pushed 10y ago1 watchersCompare

[ Source](https://github.com/crodas/Phar-Builder)[ Packagist](https://packagist.org/packages/crodas/phar-builder)[ RSS](/packages/crodas-phar-builder/feed)WikiDiscussions master Synced 3w ago

READMEChangelogDependenciesVersions (1)Used By (0)

Phar-Builder
============

[](#phar-builder)

Build Phar like a boss.

*This is a work in process*.

How to install
--------------

[](#how-to-install)

You need to [Composer](https://getcomposer.org/) and PHP with phar enabled.

```
git clone https://github.com/crodas/Phar-Builder.git
cd Phar-Builder
composer install
php cli.php install
```

Why?
----

[](#why)

Build phar files should be really simple.

How?
----

[](#how)

You need to add a `spec.yml` in your project. It needs two parameters (`name` and `include`). There also some extra parameter like `cli` (the script to execute from the console).

```
name: phar-builder.phar
files:
    - src: { name: "*.php" }
    - vendor: { exclude: ["Tests", "tests"] }
main: cli.php
```

\##Todo

1. Unit-tests
2. Docs
3. JSON reader as well

###  Health Score

23

—

LowBetter than 26% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity14

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity41

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.

### Community

Maintainers

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

---

Top Contributors

[![crodas](https://avatars.githubusercontent.com/u/36463?v=4)](https://github.com/crodas "crodas (13 commits)")

### Embed Badge

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

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

###  Alternatives

[hisune/echarts-php

A php wrapper for echarts javascript libraries

327206.3k5](/packages/hisune-echarts-php)[giacocorsiglia/stubs-generator

Generate stubs from any PHP code for IDE completion and static analysis.

25125.8k12](/packages/giacocorsiglia-stubs-generator)[astrotomic/php-deepface

A PHP adapter for the python deepface framework.

548.5k10](/packages/astrotomic-php-deepface)[pantheon-systems/wordpress-composer

WordPress for Pantheon with a composer.json file.

13128.7k7](/packages/pantheon-systems-wordpress-composer)

PHPackages © 2026

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