Weave Code
Code Weaver
Helps Laravel developers discover, compare, and choose open-source packages. See popularity, security, maintainers, and scores at a glance to make better decisions.
Feedback
Share your thoughts, report bugs, or suggest improvements.
Subject
Message

Phar Utils Laravel Package

seld/phar-utils

Utilities for working with PHP PHAR archives. Load a PHAR, normalize embedded file timestamps for reproducible builds, then save with an updated signature (MD5/SHA*). Includes a linter to syntax-check all PHP files inside a PHAR.

View on GitHub
Deep Wiki
Context7

Product Decisions This Supports

  • Enables reproducible PHAR builds for CI/CD pipelines by standardizing timestamps, ensuring consistent artifacts across environments (critical for security audits and caching).
  • Supports pre-release validation of PHP code within PHARs via linting, catching syntax errors before distribution and reducing runtime failures.
  • Eliminates the need to build custom PHAR tooling from scratch; ideal for teams distributing CLI tools (e.g., internal utilities or open-source projects) where build integrity and code quality are non-negotiable.
  • Low-risk adoption due to MIT license and Composer’s proven usage, avoiding vendor lock-in or maintenance overhead for core PHAR operations.

When to Consider This Package

Adopt when:

  • Building or modifying PHAR files for distribution (e.g., CLI tools, self-contained applications).
  • Needing timestamp control for reproducible builds or linting PHP files inside PHARs during development.
  • Prioritizing simplicity and stability over advanced PHAR features (e.g., compression, encryption).
    Avoid when:
  • Your project has no PHAR-related requirements (e.g., standard web apps or non-PHAR deployments).
  • You require niche PHAR capabilities beyond timestamp/linting (e.g., multi-file signing, custom compression).
  • Using PHP <5.3 (though this is obsolete in modern contexts).
    Note: While dependents count is low, Composer’s internal usage validates its reliability for core PHAR tasks.

How to Pitch It (Stakeholders)

Executives: "This lightweight, MIT-licensed package ensures our PHAR-based tools are built consistently and validated for errors—reducing deployment risks and support costs. Backed by Composer (the de facto PHP dependency manager), it’s a proven, zero-cost solution that accelerates delivery without technical debt."

Engineering: "A battle-tested utility with minimal dependencies that handles PHAR timestamp reproducibility and PHP linting seamlessly. Integrates in minutes, avoids reinventing core functionality, and has been used in production by Composer for years—no maintenance burden, just reliable outcomes."

Weaver

How can I help you explore Laravel packages today?

Conversation history is not saved when not logged in.
Prompt
Add packages to context
No packages found.
davejamesmiller/laravel-breadcrumbs
artisanry/parsedown
christhompsontldr/phpsdk
enqueue/dsn
bunny/bunny
enqueue/test
enqueue/null
enqueue/amqp-tools
milesj/emojibase
bower-asset/punycode
bower-asset/inputmask
bower-asset/jquery
bower-asset/yii2-pjax
laravel/nova
spatie/laravel-mailcoach
spatie/laravel-superseeder
laravel/liferaft
nst/json-test-suite
danielmiessler/sec-lists
jackalope/jackalope-transport