PackageVersions\Versions::getVersion PHP Method

getVersion() public static method

public static getVersion ( string $packageName ) : string
$packageName string
return string
    public static function getVersion(string $packageName) : string
    {
        return FallbackVersions::getVersion($packageName);
    }

Usage Example

 public function getVersion($package, $full = false)
 {
     $version = Versions::getVersion($package);
     return $full ? $version : strstr($version, '@', true);
 }
All Usage Examples Of PackageVersions\Versions::getVersion