public function getPackageInfo($packageName)
    {
        $composerLock = json_decode($this->finder->get('composer.lock'));
        foreach ($composerLock->packages as $package) {
            if ($package->name == $packageName) {
                return $package;
            }
        }
    }
public function getPackageInfo($packageName)
    {
        $composerLock = json_decode($this->finder->get('composer.lock'));
        foreach ($composerLock->packages as $package) {
            if ($package->name == $packageName) {
                return $package;
            }
        }
    }
public function getPackageInfo ( $ packageName ) { $ composerLock = json_decode ( $ this -> finder -> get ( 'composer.lock' ) ) ; foreach ( $ composerLock -> packages as $ package ) { if ( $ package -> name == $ packageName ) { return $ package ; } } }
Get the exact installed version for the specified package.

@param string $packageName

@return string mixed
Get the exact installed version for the specified package .