src/Composer/Repository/Pear/ChannelRest11Reader.php
private function readCategoryPackages($baseUrl, $categoryName)
    {
        $result = array();

        $categoryPath = '/c/'.urlencode($categoryName).'/packagesinfo.xml';
        $xml = $this->requestXml($baseUrl, $categoryPath);
        $xml->registerXPathNamespace('ns', self::CATEGORY_PACKAGES_INFO_NS);
        foreach ($xml->xpath('ns:pi') as $node) {
            $packageInfo = $this->parsePackage($node);
            $result[] = $packageInfo;
        }

        return $result;
    }
private function readCategoryPackages($baseUrl, $categoryName)
    {
        $result = array();

        $categoryPath = '/c/'.urlencode($categoryName).'/packagesinfo.xml';
        $xml = $this->requestXml($baseUrl, $categoryPath);
        $xml->registerXPathNamespace('ns', self::CATEGORY_PACKAGES_INFO_NS);
        foreach ($xml->xpath('ns:pi') as $node) {
            $packageInfo = $this->parsePackage($node);
            $result[] = $packageInfo;
        }

        return $result;
    }
private function readCategoryPackages ( $ baseUrl , $ categoryName ) { $ result = array ( ) ; $ categoryPath = '/c/' . urlencode ( $ categoryName ) . '/packagesinfo.xml' ; $ xml = $ this -> requestXml ( $ baseUrl , $ categoryPath ) ; $ xml -> registerXPathNamespace ( 'ns' , self :: CATEGORY_PACKAGES_INFO_NS ) ; foreach ( $ xml -> xpath ( 'ns:pi' ) as $ node ) { $ packageInfo = $ this -> parsePackage ( $ node ) ; $ result [ ] = $ packageInfo ; } return $ result ; }
Read packages from
{baseUrl}/c/{category}/packagesinfo.xml

@param string $baseUrl
@param string $categoryName
@return PackageInfo[]
Read packages from { baseUrl } / c / { category } / packagesinfo . xml