\Composer\RepositoryPearRepository

Builds list of package from PEAR channel.

Packages read from channel are named as 'pear-{channelName}/{packageName}' and has aliased as 'pear-{channelAlias}/{packageName}'

Summary

Methods
Properties
Constants
__construct()
findPackage()
findPackages()
search()
hasPackage()
addPackage()
removePackage()
getPackages()
count()
getDependents()
getRepoConfig()
No public properties found
No constants found
createAliasPackage()
initialize()
$packages
N/A
buildComposerPackages()
buildComposerPackageName()
$url
$io
$rfs
$versionParser
$repoConfig
$vendorAlias
N/A

Properties

$url

$url : 

Type

$io

$io : 

Type

$rfs

$rfs : 

Type

$versionParser

$versionParser : 

Type

$repoConfig

$repoConfig : 

Type

$vendorAlias

$vendorAlias : string

Type

string — vendor makes additional alias for each channel as {prefix}/{packagename}. It allows smoother package transition to composer-like repositories.

Methods

findPackage()

findPackage(  $name,   $constraint) 

{@inheritDoc}

Parameters

$name
$constraint

findPackages()

findPackages(  $name,   $constraint = null) 

{@inheritDoc}

Parameters

$name
$constraint

search()

search(  $query,   $mode,   $type = null) 

{@inheritDoc}

Parameters

$query
$mode
$type

removePackage()

removePackage(\Composer\Package\PackageInterface  $package) 

Removes package from repository.

Parameters

\Composer\Package\PackageInterface $package

package instance

getPackages()

getPackages() 

{@inheritDoc}

count()

count() : integer

Returns the number of packages in this repository

Returns

integer —

Number of packages

getDependents()

getDependents(string|array<mixed,string>  $needle, \Composer\Semver\Constraint\ConstraintInterface|null  $constraint = null, boolean  $invert = false, boolean  $recurse = true, array<mixed,string>  $packagesFound = null) : array

Returns a list of links causing the requested needle packages to be installed, as an associative array with the dependent's name as key, and an array containing in order the PackageInterface and Link describing the relationship as values. If recursive lookup was requested a third value is returned containing an identically formed array up to the root package. That third value will be false in case a circular recursion was detected.

Parameters

string|array<mixed,string> $needle

The package name(s) to inspect.

\Composer\Semver\Constraint\ConstraintInterface|null $constraint

Optional constraint to filter by.

boolean $invert

Whether to invert matches to discover reasons for the package NOT to be installed.

boolean $recurse

Whether to recursively expand the requirement tree up to the root package.

array<mixed,string> $packagesFound

Used internally when recurring

Returns

array —

An associative array of arrays as described above.

getRepoConfig()

getRepoConfig() 

createAliasPackage()

createAliasPackage(\Composer\Package\PackageInterface  $package,   $alias,   $prettyAlias) 

Parameters

\Composer\Package\PackageInterface $package
$alias
$prettyAlias

initialize()

initialize() 

Initializes the packages array. Mostly meant as an extension point.

buildComposerPackageName()

buildComposerPackageName(  $channelName,   $packageName) 

Parameters

$channelName
$packageName