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)875180.0M—1.3%3[1 issues](https://github.com/Seldaek/phar-utils/issues)20MITPHPPHP &gt;=5.3

Since May 1Pushed 1y 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 1mo ago

READMEChangelog (8)DependenciesVersions (9)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

52

—

FairBetter than 96% of packages

Maintenance27

Infrequent updates — may be unmaintained

Popularity73

Solid adoption and visibility

Community27

Small or concentrated contributor base

Maturity63

Established project with proven stability

 Bus Factor1

Top contributor holds 70.6% 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

1356d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/b69782e1d7f426ef78f61d159c466a536372eff931f13981ac578fa3f4649352?d=identicon)[Seldaek](/maintainers/Seldaek)

---

Top Contributors

[![Seldaek](https://avatars.githubusercontent.com/u/183678?v=4)](https://github.com/Seldaek "Seldaek (12 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

862881.6k29](/packages/clue-phar-composer)[tm/tooly-composer-script

Simple composer script to manage phar files.

103280.1k32](/packages/tm-tooly-composer-script)[laravel-zero/phar-updater

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

162.1M92](/packages/laravel-zero-phar-updater)[phar-io/composer-distributor

Base Code for a composer plugin that installs PHAR-files

13581.1k6](/packages/phar-io-composer-distributor)[mmoreram/extractor

Extractor project for php

21132.0k8](/packages/mmoreram-extractor)[secondtruth/phar-compiler

Generic PHP PHAR compiler

263.3k4](/packages/secondtruth-phar-compiler)

PHPackages © 2026

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