codeinc/composer-version-reader

Composer version reader

Installs: 75

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 1

Forks: 0

Open Issues: 0

pkg:composer/codeinc/composer-version-reader

1.0 2021-05-11 17:18 UTC

This package is auto-updated.

Last update: 2025-09-12 03:02:21 UTC


README

This PHP 7 library readers the version number from the composer.json file.

Installation

This library is available through Packagist and can be installed using Composer:

composer require codeinc/composer-version-reader

Usage

<?php
use CodeInc\ComposerVersionReader\ComposerVersionReader;

echo ComposerVersionReader::readVersion(__DIR__);
// outputs "1.0.0" or NULL if the "version" entry is not set.

License

This library is published under the MIT license (see the LICENSE file).