Get the package version of the given package
Return normalized package version.
public static getPackageVersion ( string $composerName ) : string | ||
$composerName | string | |
Résultat | string |
/** * Get the installed package version (from composer) and as fallback the version given by composer manifest. * * @return string * @api */ public function getInstalledVersion() { return PackageManager::getPackageVersion($this->composerName) ?: $this->getComposerManifest('version'); }