public function addRequires(array $requires, $dev = false)
    {
        foreach ($requires as $vendor => $version) {
            if (!isset($vendor) || !isset($version)) {
                continue;
            }

            if (!$dev) {
                $this->addRequire($vendor, $version);
            } else {
                $this->addDevRequire($vendor, $version);
            }
        }

        return $this;
    }
public function addRequires(array $requires, $dev = false)
    {
        foreach ($requires as $vendor => $version) {
            if (!isset($vendor) || !isset($version)) {
                continue;
            }

            if (!$dev) {
                $this->addRequire($vendor, $version);
            } else {
                $this->addDevRequire($vendor, $version);
            }
        }

        return $this;
    }
public function addRequires ( array $ requires , $ dev = false ) { foreach ( $ requires as $ vendor => $ version ) { if ( ! isset ( $ vendor ) || ! isset ( $ version ) ) { continue ; } if ( ! $ dev ) { $ this -> addRequire ( $ vendor , $ version ) ; } else { $ this -> addDevRequire ( $ vendor , $ version ) ; } } return $ this ; }
Add an array of required packages.

@param array $requires
Add an array of required packages .