\Composer\Repository\PearChannelRest10Reader

Read PEAR packages using REST 1.0 interface

At version 1.0 package descriptions read from: {baseUrl}/p/packages.xml {baseUrl}/p/{package}/info.xml {baseUrl}/p/{package}/allreleases.xml {baseUrl}/p/{package}/deps.{version}.txt

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
readPackages()
readPackage()
readPackageReleases()
readPackageReleaseDependencies()
$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.0 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

readPackages()

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

Read list of packages from {baseUrl}/p/packages.xml

Parameters

$baseUrl

string

Returns

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

readPackage()

readPackage(  $baseUrl,   $packageName) : \Composer\Repository\Pear\PackageInfo

Read package info from {baseUrl}/p/{package}/info.xml

Parameters

$baseUrl

string

$packageName

string

Returns

\Composer\Repository\Pear\PackageInfo

readPackageReleases()

readPackageReleases(  $baseUrl,   $packageName) : array<mixed,\Composer\Repository\Pear\ReleaseInfo>

Read package releases from {baseUrl}/p/{package}/allreleases.xml

Parameters

$baseUrl

string

$packageName

string

Throws

\Composer\Downloader\TransportException|\Exception

Returns

array<mixed,\Composer\Repository\Pear\ReleaseInfo> —

hash array with keys as version numbers

readPackageReleaseDependencies()

readPackageReleaseDependencies(  $baseUrl,   $packageName,   $version) : array<mixed,\Composer\Repository\Pear\DependencyInfo>

Read package dependencies from {baseUrl}/p/{package}/deps.{version}.txt

Parameters

$baseUrl

string

$packageName

string

$version

string

Returns

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