|
@@ -229,21 +229,32 @@ In this case the short name of the channel is `pear2`, so the
|
|
|
> package, so this may considerably slow down the installation process.
|
|
|
|
|
|
#### Custom channel alias
|
|
|
+
|
|
|
It is possible to alias all pear channel packages with custom name.
|
|
|
|
|
|
Example:
|
|
|
-You own private pear repository and going to use composer abilities to bring dependencies from vcs or transit to composer repository scheme.
|
|
|
-Your repository list of packages:
|
|
|
+
|
|
|
+You own private pear repository and going to use composer abilities to bring
|
|
|
+dependencies from vcs or transit to composer repository scheme. Your
|
|
|
+repository list of packages:
|
|
|
+
|
|
|
* BasePackage, requires nothing
|
|
|
* IntermediatePackage, depends on BasePackage
|
|
|
* TopLevelPackage1 and TopLevelPackage2 both dependth on IntermediatePackage.
|
|
|
|
|
|
For composer it looks like:
|
|
|
+
|
|
|
* "pear-pear.foobar.repo/IntermediatePackage" depends on "pear-pear.foobar.repo/BasePackage",
|
|
|
* "pear-pear.foobar.repo/TopLevelPackage1" depends on "pear-pear.foobar.repo/IntermediatePackage",
|
|
|
* "pear-pear.foobar.repo/TopLevelPackage2" depends on "pear-pear.foobar.repo/IntermediatePackage"
|
|
|
|
|
|
-When you update one of your packages to composer naming scheme or made it available through vcs, your older dependencies would not see new version, cause it would be named like "foobar/IntermediatePackage". Specifying 'vendor-alias' for pear repository, you will get all its packages aliased with composer-like names. Following example would take BasePackage, TopLevelPackage1 and TopLevelPackage2 packages from pear repository and IntermediatePackage from github repository:
|
|
|
+When you update one of your packages to composer naming scheme or made it
|
|
|
+available through vcs, your older dependencies would not see new version,
|
|
|
+cause it would be named like "foobar/IntermediatePackage". Specifying 'vendor-
|
|
|
+alias' for pear repository, you will get all its packages aliased with
|
|
|
+composer-like names. Following example would take BasePackage,
|
|
|
+TopLevelPackage1 and TopLevelPackage2 packages from pear repository and
|
|
|
+IntermediatePackage from github repository:
|
|
|
|
|
|
{
|
|
|
"repositories": [
|