2017 © Pedro Peláez
 

library version

Get the version number from any json file containing a version property.

image

brkstn/version

Get the version number from any json file containing a version property.

  • Thursday, May 11, 2017
  • by steven-klein
  • Repository
  • 0 Watchers
  • 0 Stars
  • 142 Installations
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 3 Versions
  • 15 % Grown

The README.md

brkstn/Version

Get the version number from any .json file in your project., (*1)

Install

$ composer require brkstn/version:~1.0.0

Usage

Since most projects have both the vendor and package.json directory in the project root. The default arguments are the parent directory of vendor and package.json, but any valid .json file with a version property on the top level is acceptable., (*2)

// Using default parameters (parent_directory_of_vendor, package.json)
$versionLoader = new brkstn\Version();
$version = $versionLoader->number;

// Setting filepath and filename
$versionLoader = new brkstn\Version(dirname(__DIR__), "composer.json");
$version = $versionLoader->number;

The Versions

11/05 2017

dev-master

9999999-dev https://bitbucket.org/brkstn/version

Get the version number from any json file containing a version property.

  Sources   Download

MIT

The Requires

  • php >=5.3.9

 

by Breakstation Creative
by Steven Klein

11/05 2017

1.0.1

1.0.1.0 https://bitbucket.org/brkstn/version

Get the version number from any json file containing a version property.

  Sources   Download

MIT

The Requires

  • php >=5.3.9

 

by Breakstation Creative
by Steven Klein

11/05 2017

1.0.0

1.0.0.0 https://bitbucket.org/brkstn/version

Get the version number from any json file containing a version property.

  Sources   Download

MIT

The Requires

  • php >=5.3.9

 

by Breakstation Creative
by Steven Klein