Skip to content

Check composer installation and get information of packages installed in vendor folder

Notifications You must be signed in to change notification settings

omatech/vendor-version

Repository files navigation

Usage

$vv = new VendorVersion();
$vv->init(YOUR_PROJECT_ROOT_FOLDER);
$res=$vv->isInstalled('phpunit/phpunit');
// returns true or false

if ($res)
{
    $version_res=$vv->checkMinVersion('phpunit/phpunit', '8.0');
    // returns true if at least you have version 8.0 installed
    $version=$vv->getVersion('phpunit/phpunit');
    // now $version have the exact phpunit/phpunit installed
}

Test

phpunit --bootstrap vendor/autoload.php tests

About

Check composer installation and get information of packages installed in vendor folder

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages