Home
Docs
GitHub
Pricing
Blog
Log In

Run Sandworm Audit for your App

Get started
Hold on, we're currently generating a fresh version of this report
Generated on May 9, 2024 via composer

seld/phar-utils 1.2.1

PHAR file format utilities, for when PHP phars you up
Package summary
Share
0
issues
1
license
1
MIT
Package created
1 May 2015
Version published
31 Aug 2022
Maintainers
1
Total deps
1
Direct deps
0
License
MIT

Issues

0
This package has no issues

Licenses

MIT License

Permissive
OSI Approved
This is a human-readable summary of (and not a substitute for) the license. Disclaimer.
Can
commercial-use
modify
distribute
sublicense
private-use
Cannot
hold-liable
Must
include-copyright
include-license
1 Packages, Including:
seld/phar-utils@1.2.1
Disclaimer

This deed highlights only some of the key features and terms of the actual license. It is not a license and has no legal value. You should carefully review all of the terms and conditions of the actual license before using the licensed material.

Sandworm is not a law firm and does not provide legal services. Distributing, displaying, or linking to this deed or the license that it summarizes does not create a lawyer-client or any other relationship.

Direct Dependencies

0
All Dependencies CSV
β“˜ This is a list of seld/phar-utils 's direct dependencies. Data on all dependencies, including transitive ones, is available via CSV download.
NameVersionSizeLicenseTypeVulnerabilities

Visualizations

Frequently Asked Questions

What does seld/phar-utils do?

The "seld/phar-utils" is a comprehensive PHP tool that provides utilities for PHAR file format handling. It is developed for instances when PHP phars you up by offering important solutions for the Phar archive. It enables the loading of a phar file into memory, allows for updates to each file's Unix timestamps within the PHAR for signature production in a reproducible manner. It also provides a linter to lint all PHP files inside a given phar with the current PHP version, and enables the saving of the updated phar file using an updated signature.

How do you use seld/phar-utils?

Usage of the "seld/phar-utils" package is straightforward. Firstly, you would need to install the package by running the command:

composer require seld/phar-utils

After the successful installation of the package, you can use it in your PHP script as follows:

To construct or load a phar file in memory:

$timestamps = new \Seld\PharUtils\Timestamps('sample.phar');

To update timestamps:

$timestamps->updateTimestamps();

To save the updated phar file with an updated signature, for example using Phar::SHA512:

$timestamps->save('sample.phar', Phar::SHA512);

Also, you can lint all php files inside the sample.phar using:

\Seld\PharUtils\Linter::lint('sample.phar');

Where are the seld/phar-utils docs?

The "seld/phar-utils" package has well-defined API documentation in the README.md file on the repository's GitHub page. It outlines the usage of each function and object in clear detail and provides a step-by-step guide on how to use the package effectively. This serves as the main source of documentation for any user wanting to make the most of the package.