\Composer\Repository\PearChannelRest11Reader

Read PEAR packages using REST 1.1 interface

At version 1.1 package descriptions read from: {baseUrl}/c/categories.xml {baseUrl}/c/{category}/packagesinfo.xml

Summary

Methods
Properties
Constants
__construct()
read()
No public properties found
CHANNEL_NS
ALL_CATEGORIES_NS
CATEGORY_PACKAGES_INFO_NS
ALL_PACKAGES_NS
ALL_RELEASES_NS
PACKAGE_INFO_NS
requestContent()
requestXml()
No protected properties found
N/A
readChannelPackages()
readCategoryPackages()
parsePackage()
$rfs
$dependencyReader
N/A

Constants

CHANNEL_NS

CHANNEL_NS = 'http://pear.php.net/channel-1.0'

PEAR REST Interface namespaces

ALL_CATEGORIES_NS

ALL_CATEGORIES_NS = 'http://pear.php.net/dtd/rest.allcategories'

CATEGORY_PACKAGES_INFO_NS

CATEGORY_PACKAGES_INFO_NS = 'http://pear.php.net/dtd/rest.categorypackageinfo'

ALL_PACKAGES_NS

ALL_PACKAGES_NS = 'http://pear.php.net/dtd/rest.allpackages'

ALL_RELEASES_NS

ALL_RELEASES_NS = 'http://pear.php.net/dtd/rest.allreleases'

PACKAGE_INFO_NS

PACKAGE_INFO_NS = 'http://pear.php.net/dtd/rest.package'

Properties

$dependencyReader

$dependencyReader : 

Type

Methods

read()

read(  $baseUrl) : array<mixed,\Composer\Repository\Pear\PackageInfo>

Reads package descriptions using PEAR Rest 1.1 interface

Parameters

$baseUrl

string base Url interface

Returns

array<mixed,\Composer\Repository\Pear\PackageInfo>

requestContent()

requestContent(  $origin,   $path) : \SimpleXMLElement

Read content from remote filesystem.

Parameters

$origin

string server

$path

string relative path to content

Throws

\UnexpectedValueException

Returns

\SimpleXMLElement

requestXml()

requestXml(  $origin,   $path) : \SimpleXMLElement

Read xml content from remote filesystem

Parameters

$origin

string server

$path

string relative path to content

Throws

\UnexpectedValueException

Returns

\SimpleXMLElement

readChannelPackages()

readChannelPackages(  $baseUrl) : array<mixed,\Composer\Repository\Pear\PackageInfo>

Read list of channel categories from {baseUrl}/c/categories.xml

Parameters

$baseUrl

string

Returns

array<mixed,\Composer\Repository\Pear\PackageInfo>

readCategoryPackages()

readCategoryPackages(  $baseUrl,   $categoryName) : array<mixed,\Composer\Repository\Pear\PackageInfo>

Read packages from {baseUrl}/c/{category}/packagesinfo.xml

Parameters

$baseUrl

string

$categoryName

string

Returns

array<mixed,\Composer\Repository\Pear\PackageInfo>

parsePackage()

parsePackage(  $packageInfo) : \Composer\Repository\Pear\PackageInfo

Parses package node.

Parameters

$packageInfo

\SimpleXMLElement xml element describing package

Returns

\Composer\Repository\Pear\PackageInfo