Package Versions This utility provides very quick and easy access to installed composer dependency versions. $version = \PackageVersions\Versions::getVersion('ocramius/package-versions'); var_dump($versions); // 1.0.0@0beec7b5ea3f0fdbc95d0dd47f3c5bc275da8a33