Skip to content
This repository was archived by the owner on Mar 5, 2026. It is now read-only.

About

Reads the version from composer.json

Resources

Stars

0 stars

Watchers

1 watching

Forks

Latest commit

 

History

3 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Composer version reader

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).

About

Reads the version from composer.json

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages