public function hasComposerPackage($vendor, $dev = false)
    {

        $packages = !$dev
            ? $this->composer->getRequire()
            : $this->composer->getRequireDev();

        return isset($packages[$vendor]);
    }
public function hasComposerPackage($vendor, $dev = false)
    {

        $packages = !$dev
            ? $this->composer->getRequire()
            : $this->composer->getRequireDev();

        return isset($packages[$vendor]);
    }
public function hasComposerPackage ( $ vendor , $ dev = false ) { $ packages = ! $ dev ? $ this -> composer -> getRequire ( ) : $ this -> composer -> getRequireDev ( ) ; return isset ( $ packages [ $ vendor ] ) ; }
Has composer package.

@param string $vendor
The package vendor project namespace.
@param boolean $dev
A flag defining if it's a dev requirement.

@return boolean
Has composer package .