getPackageVersion() 공개 정적인 메소드

Get the package version of the given package Return normalized package version.
또한 보기: https://getcomposer.org/doc/04-schema.md#version
public static getPackageVersion ( string $composerName ) : string
$composerName string
리턴 string
예제 #1
0
 /**
  * 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');
 }