Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/composer/metadata-minifier
Small utility library that handles metadata minification and expansion.
https://github.com/composer/metadata-minifier
Last synced: 3 months ago
JSON representation
Small utility library that handles metadata minification and expansion.
- Host: GitHub
- URL: https://github.com/composer/metadata-minifier
- Owner: composer
- License: mit
- Created: 2021-04-07T12:58:59.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2021-04-07T13:39:11.000Z (about 3 years ago)
- Last Synced: 2024-03-25T20:21:37.453Z (3 months ago)
- Language: PHP
- Size: 5.86 KB
- Stars: 163
- Watchers: 4
- Forks: 4
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Contributing: .github/CONTRIBUTING.md
- License: LICENSE
Lists
- awesome-stars - composer/metadata-minifier - Small utility library that handles metadata minification and expansion. (PHP)
README
composer/metadata-minifier
==========================Small utility library that handles metadata minification and expansion.
This is used by [Composer](https://github.com/composer/composer)'s 2.x repository metadata protocol.
Installation
------------Install the latest version with:
```bash
$ composer require composer/metadata-minifier
```Requirements
------------* PHP 5.3.2 is required but using the latest version of PHP is highly recommended.
Basic usage
-----------### `Composer\MetadataMinifier\MetadataMinifier`
- `MetadataMinifier::expand()`: Expands an array of minified versions back to their original format
- `MetadataMinifier::minify()`: Minifies an array of versions into a set of version diffsLicense
-------composer/metadata-minifier is licensed under the MIT License, see the LICENSE file for details.