public function packages($vendors)
    {
        $packages = [];

        foreach ((array) $vendors as $vendor) {
            if (strpos($vendor, '/') !== false) {
                $packages[] = $this->packagist->get($vendor);
            } else {
                foreach ($this->packagist->all(compact('vendor')) as $result) {
                    $packages[] = $this->packagist->get($result);
                }
            }
        }

        return $packages;
    }
public function packages($vendors)
    {
        $packages = [];

        foreach ((array) $vendors as $vendor) {
            if (strpos($vendor, '/') !== false) {
                $packages[] = $this->packagist->get($vendor);
            } else {
                foreach ($this->packagist->all(compact('vendor')) as $result) {
                    $packages[] = $this->packagist->get($result);
                }
            }
        }

        return $packages;
    }
public function packages ( $ vendors ) { $ packages = [ ] ; foreach ( ( array ) $ vendors as $ vendor ) { if ( strpos ( $ vendor , '/' ) !== false ) { $ packages [ ] = $ this -> packagist -> get ( $ vendor ) ; } else { foreach ( $ this -> packagist -> all ( compact ( 'vendor' ) ) as $ result ) { $ packages [ ] = $ this -> packagist -> get ( $ result ) ; } } } return $ packages ; }
Get the aggregated information from packagist.

Please pass an array of vendors or package names, or a single vendor or
package name to this method.

@param string[]|string $vendors

@return array
Get the aggregated information from packagist .