PHPackages                             dxw/phar-install - 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. dxw/phar-install

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

dxw/phar-install
================

v1.1.2(6y ago)20173.1k↓26.5%43MITPHPCI passing

Since Oct 22Pushed 2mo ago9 watchersCompare

[ Source](https://github.com/dxw/phar-install)[ Packagist](https://packagist.org/packages/dxw/phar-install)[ Docs](https://github.com/dxw/phar-install)[ RSS](/packages/dxw-phar-install/feed)WikiDiscussions main Synced 2w ago

READMEChangelogDependenciesVersions (12)Used By (3)

phar-install
============

[](#phar-install)

Tool to bundle up contents of `vendor/` into `vendor.phar` file.

This may be useful if you want to put your project in a web-readable directory but you don't want to trawl through all the files in `vendor/` to make sure none of them could allow an attacker to do something they shouldn't be able to do.

Usage
-----

[](#usage)

Add the following to `composer.json`:

```
  "scripts": {
    "post-update-cmd": "vendor/bin/phar-install"
  },
```

Add phar-install:

```
composer require --dev dxw/phar-install
```

`vendor.phar` will be rebuilt automatically every time `composer update` or `composer require` is run.

Now just replace `require(__DIR__.'/vendor/autoload.php');` with `require(__DIR__.'/vendor.phar');`.

### Get composer's autoloader

[](#get-composers-autoloader)

You can also get access to the autoloader object if needed. The phar file will return the autoloader. With this functionality you can add on your own project's namespaced files into the autoloader.

```
$autoload = require_once __DIR__ . '/vendor.phar';
$autoload->add('MyNamespace', __DIR__ . '/src');
```

Copyright
---------

[](#copyright)

Copyright dxw 2015 - see [COPYING.md](COPYING.md)

###  Health Score

52

—

FairBetter than 96% of packages

Maintenance58

Moderate activity, may be stable

Popularity43

Moderate usage in the ecosystem

Community27

Small or concentrated contributor base

Maturity70

Established project with proven stability

 Bus Factor1

Top contributor holds 58.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 ~503 days

Total

4

Last Release

2325d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/370665?v=4)[Rob Skilling](/maintainers/RobjS)[@RobjS](https://github.com/RobjS)

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

![](https://avatars.githubusercontent.com/u/4721596?v=4)[Matthew Passmore](/maintainers/matpassmore)[@matpassmore](https://github.com/matpassmore)

![](https://avatars.githubusercontent.com/u/71827088?v=4)[Serena Piccioni](/maintainers/serena-piccioni)[@serena-piccioni](https://github.com/serena-piccioni)

---

Top Contributors

[![mallorydxw](https://avatars.githubusercontent.com/u/2256130?v=4)](https://github.com/mallorydxw "mallorydxw (20 commits)")[![snim2](https://avatars.githubusercontent.com/u/97674?v=4)](https://github.com/snim2 "snim2 (11 commits)")[![jeffkarney](https://avatars.githubusercontent.com/u/201882?v=4)](https://github.com/jeffkarney "jeffkarney (1 commits)")[![rjw1](https://avatars.githubusercontent.com/u/46021?v=4)](https://github.com/rjw1 "rjw1 (1 commits)")[![RobjS](https://avatars.githubusercontent.com/u/370665?v=4)](https://github.com/RobjS "RobjS (1 commits)")

---

Tags

composergovpresspackagistphp

### Embed Badge

![Health badge](/badges/dxw-phar-install/health.svg)

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

###  Alternatives

[neos/form

Extensible and flexible API for building web forms

18904.0k59](/packages/neos-form)[aymanalhattami/filament-slim-scrollbar

Slim scrollbar for sidebar scrollbar, table scrollbar, and any other scrollbar in the application.

5192.5k2](/packages/aymanalhattami-filament-slim-scrollbar)

PHPackages © 2026

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