PHP code example of muglug / package-versions
1. Go to this page and download the library: Download muglug/package-versions library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
muglug / package-versions example snippets
$version = \PackageVersions\Versions::getVersion('muglug/package-versions');
var_dump($version); // 1.0.0@0beec7b5ea3f0fdbc95d0dd47f3c5bc275da8a33
$version = \PackageVersions\Versions::getShortVersion('muglug/package-versions');
var_dump($version); // 1.0.0
$version = \PackageVersions\Versions::getMajorVersion('muglug/package-versions');
var_dump($version); // 1