\Composer\RepositoryPathRepository

This repository allows installing local packages that are not necessarily under their own VCS.

The local packages will be symlinked when possible, else they will be copied.

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
getUrlMatches()
$loader
$versionGuesser
$url
$repoConfig
$process
$options
N/A

Properties

$url

$url : string

Type

string

$repoConfig

$repoConfig : array

Type

array

$options

$options : array

Type

array

Methods

__construct()

__construct(array  $repoConfig, \Composer\IO\IOInterface  $io, \Composer\Config  $config) 

Initializes path repository.

Parameters

array $repoConfig
\Composer\IO\IOInterface $io
\Composer\Config $config

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 path repository.

This method will basically read the folder and add the found package.

getUrlMatches()

getUrlMatches() : array<mixed,string>

Get a list of all (possibly relative) path names matching given url (supports globbing).

Returns

array<mixed,string>