PHPackages                             seld/phar-utils - 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. seld/phar-utils

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

seld/phar-utils
===============

PHAR file format utilities, for when PHP phars you up

1.2.1(3y ago)875188.7M↓22.7%3[1 issues](https://github.com/Seldaek/phar-utils/issues)[2 PRs](https://github.com/Seldaek/phar-utils/pulls)20MITPHPPHP &gt;=5.3CI passing

Since May 1Pushed 2d ago1 watchersCompare

[ Source](https://github.com/Seldaek/phar-utils)[ Packagist](https://packagist.org/packages/seld/phar-utils)[ RSS](/packages/seld-phar-utils/feed)WikiDiscussions main Synced 2d ago

READMEChangelog (8)DependenciesVersions (12)Used By (20)

PHAR Utils
==========

[](#phar-utils)

PHAR file format utilities, for when PHP phars you up.

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

[](#installation)

`composer require seld/phar-utils`

API
---

[](#api)

### `Seld\PharUtils\Timestamps`

[](#seldpharutilstimestamps)

- `__construct($pharFile)`

    > Load a phar file in memory.
- `updateTimestamps($timestamp = null)`

    > Updates each file's unix timestamps in the PHAR so the PHAR signature can be produced in a reproducible manner.
- `save($path, $signatureAlgo = '')`

    > Saves the updated phar file with an updated signature. Algo must be one of `Phar::MD5`, `Phar::SHA1`, `Phar::SHA256`or `Phar::SHA512`

### `Seld\PharUtils\Linter`

[](#seldpharutilslinter)

- `Linter::lint($pharFile)`

    > Lints all php files inside a given phar with the current PHP version.

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

[](#requirements)

PHP 5.3 and above

License
-------

[](#license)

PHAR Utils is licensed under the MIT License - see the LICENSE file for details

###  Health Score

62

—

FairBetter than 99% of packages

Maintenance65

Regular maintenance activity

Popularity73

Solid adoption and visibility

Community28

Small or concentrated contributor base

Maturity65

Established project with proven stability

 Bus Factor1

Top contributor holds 73.7% 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 ~382 days

Recently: every ~232 days

Total

8

Last Release

1402d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/183678?v=4)[Jordi Boggiano](/maintainers/Seldaek)[@Seldaek](https://github.com/Seldaek)

---

Top Contributors

[![Seldaek](https://avatars.githubusercontent.com/u/183678?v=4)](https://github.com/Seldaek "Seldaek (14 commits)")[![ktomk](https://avatars.githubusercontent.com/u/352517?v=4)](https://github.com/ktomk "ktomk (2 commits)")[![discordier](https://avatars.githubusercontent.com/u/940331?v=4)](https://github.com/discordier "discordier (1 commits)")[![JanTvrdik](https://avatars.githubusercontent.com/u/175109?v=4)](https://github.com/JanTvrdik "JanTvrdik (1 commits)")[![johnstevenson](https://avatars.githubusercontent.com/u/881777?v=4)](https://github.com/johnstevenson "johnstevenson (1 commits)")

---

Tags

phar

### Embed Badge

![Health badge](/badges/seld-phar-utils/health.svg)

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

###  Alternatives

[clue/phar-composer

Simple phar creation for any project managed via Composer

8671.1M35](/packages/clue-phar-composer)[tm/tooly-composer-script

Simple composer script to manage phar files.

103284.7k33](/packages/tm-tooly-composer-script)[laravel-zero/phar-updater

A thing to make PHAR self-updating easy and secure.

162.5M118](/packages/laravel-zero-phar-updater)[phar-io/composer-distributor

Base Code for a composer plugin that installs PHAR-files

13791.2k9](/packages/phar-io-composer-distributor)[mmoreram/extractor

Extractor project for php

21134.2k8](/packages/mmoreram-extractor)[mtdowling/burgomaster

Packages up PHP packages into zips and phars

2782.8k12](/packages/mtdowling-burgomaster)

PHPackages © 2026

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