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 4, 2024 via composer

composer/metadata-minifier 1.0.0

Small utility library that handles metadata minification and expansion.
Package summary
Share
0
issues
1
license
1
MIT
Package created
7 Apr 2021
Version published
7 Apr 2021
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:
composer/metadata-minifier@1.0.0
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 composer/metadata-minifier 's direct dependencies. Data on all dependencies, including transitive ones, is available via CSV download.
NameVersionSizeLicenseTypeVulnerabilities

Visualizations

Frequently Asked Questions

What does composer/metadata-minifier do?

The package "composer/metadata-minifier" is a compact utility library geared to handle metadata minification and expansion. Particularly, it is utilized in Composer's 2.x repository metadata protocol. The advantage of using this library lies in its capability to efficiently deal with large metadata, resulting in decreased loading times and improved overall performance of your PHP projects.

How do you use composer/metadata-minifier?

Utilizing composer/metadata-minifier is straightforward and easy with Composer. First, you need to ensure you have Composer installed. Once that is done, you need to install the "metadata-minifier" package using the following command:

$ composer require composer/metadata-minifier

The package provides two core functions: MetadataMinifier::expand() and MetadataMinifier::minify(). MetadataMinifier::expand() is used to expand an array of minified versions back to their original format. On the other hand, MetadataMinifier::minify() is used to minify an array of versions into a set of version differences. Here are examples of how to use these functions:

<?php 

use Composer\MetadataMinifier\MetadataMinifier;

// Some versions to minify
$versions = ['1.0.0', '1.0.1', '1.1.0'];

// Minify versions
$minified = MetadataMinifier::minify($versions);

// Expand versions
$expanded = MetadataMinifier::expand($minified);

Note: PHP 5.3.2 is required to use this library, but using the latest version of PHP is highly recommended for optimal results.

Where are the composer/metadata-minifier docs?

As for the documentation of composer/metadata-minifier, it tends to be quite minimal or basic as visible from the GitHub page – https://github.com/composer/metadata-minifier. The requirements and basic usage are outlined in the README file found therein. For more in-depth understanding or for dealing with complex queries regarding usage, one may need to examine the source code or refer to the broader Composer documentation due to the close association of this package with Composer.

All Versions