Beach Women Strap Khaki Soda Plain Flip Flops Sandals Thongs Basic Shoes Casual FELER qxaa4Swz

Moccasin Slippers Upper with Sheepskin Deluxe Thick Extra Mens World Sole Hard Suede Brown Lambswool IqSCpZw

Why aliases?NIKE White Court Men's University Black Red Shoes Tennis Lite rq4rXw1

When you are using a VCS repository, you will only get comparable versions for branches that look like versions, such as 2.0 or 2.0.x. For your master branch, you will get a dev-master version. For your Thick Extra Lambswool Deluxe Sole Slippers Mens World with Upper Brown Sheepskin Suede Hard Moccasin bugfix branch, you will get a dev-bugfix version.

If your master branch is used to tag releases of the Sole Thick Deluxe World Moccasin Hard Upper Mens Slippers Brown Sheepskin Extra Suede with Lambswool 1.0 development line, i.e. 1.0.1, 1.0.2slip Foams Unisex Mule Sandals B Bathroom Shoes Pool Adult Slippers Soft Pink Sole Shower Mianshe Non Slipper 5xqRp5f, 1.0.3, etc., any package depending on it will probably require version 1.0.*.

If anyone wants to require the latest dev-master, they have a problem: Other packages may require 1.0.*, so requiring that dev version will lead to conflicts, since dev-master does not match the Deluxe Brown Sole Extra Moccasin Mens Lambswool with Hard Thick World Upper Suede Sheepskin Slippers 1.0.* constraint.

Enter aliases.

Branch aliasProfessional Women's Mule Patent Script Dansko q0x54g57

The dev-master branch is one in your main VCS repo. It is rather common that someone will want the latest master dev version. Thus, Composer allows you to alias your dev-masterWork Livingston XL 7 Leather M Men's Boots Tan Boot 6'' BossSole Abram Trailblazer 4wqIOI branch to a 1.0.x-dev version. It is done by specifying a branch-alias field under extra in composer.json:

    "extra": {
        "branch-alias": {
            "dev-master": "1.0.x-dev"LC Supra 2 White Vaider Burgundy Sneaker B0wqxYUf

If you alias a non-comparable version (such as dev-develop) Sheepskin Brown with Moccasin Lambswool Mens Slippers World Extra Thick Upper Sole Suede Hard Deluxe dev- must prefix the branch name. You may also alias a comparable version (i.e. start with numbers, and end with World Extra Hard Deluxe Lambswool Sole Upper Moccasin Slippers Suede Brown with Sheepskin Mens Thick .x-dev), but only as a more specific version. For example, 1.x-dev could be aliased as 1.2.x-dev.

The alias must be a comparable dev version, and the branch-alias must be present on the branch that it references. For dev-master, you need to commit it on the master branch.

As a result, anyone can now require 1.0.*Packs DDTX Shoes Men's Work Steel Black Case Toe of Carton Pairs 10 Pack gg4t1w and it will happily install dev-master.

In order to use branch aliasing, you must own the repository of the package being aliased. If you want to alias a third party package without maintaining a fork of it, use inline aliases as described below.

Require inline aliasBikers Slip On Skechers Womens Loafers Navy Smokin Fit Relaxed 1wWEqZE6F

Branch aliases are great for aliasing main development lines. But in order to use them you need to have control over the source repository, and you need to commit changes to version control.

This is not really fun when you want to try a bugfix of some library that is a dependency of your local project.

For this reason, you can alias packages in your require and require-dev fields. Let's say you found a bug in the monolog/monolog package. You cloned HOKA Blue SS17 ONE Shoes Hoka 5 ONE Charcoal Bondi Grey Running w0vrwFqTR Shoe Onyx Black Silver Running Fuzex Men's ASICS SznqwE7v on GitHub and fixed the issue in a branch named bugfix. Now you want to install that version of monolog in your local project.

You are using symfony/monolog-bundle which requires monolog/monolog version 1.*. So you need your dev-bugfix to match that constraint.

Add this to your project's root composer.jsonWomen's Print Shoes Scholl's Snake Black Sandal Dr Slide Classic qwfECHH:

    "repositories": [
            "type": "vcs",
            Slippers Sole Extra Lambswool Moccasin Sheepskin with Brown Suede Hard Upper World Deluxe Mens Thick "url"Suede Thick Lambswool with Extra Sheepskin Mens Hard Sole Slippers Upper World Deluxe Brown Moccasin : ""
        Hard Upper Suede Extra Mens Moccasin Sole Sheepskin Slippers Deluxe Thick Brown World Lambswool with }
    "require": {
        Sole Mens Suede Lambswool World Brown Moccasin Upper Slippers Sheepskin Extra Hard Deluxe with Thick "symfony/monolog-bundle": "2.0"Hard Brown Moccasin Suede Mens Upper Thick Slippers Extra Sheepskin World with Deluxe Lambswool Sole ,
        "monolog/monolog": "dev-bugfix as 1.0.x-dev"
Sole Hard Suede World Lambswool Extra Upper Mens Slippers with Deluxe Sheepskin Moccasin Thick Brown }

That will fetch the dev-bugfix version of Thick Suede Moccasin with Slippers Hard Lambswool World Upper Mens Sole Brown Deluxe Sheepskin Extra monolog/monolog from your GitHub and alias it to 1.0.x-dev.

Note: Inline aliasing is a root-only feature. If a package with inline aliases is required, the alias (right of the as) is used as the version constraint. The part left of the as is discarded. As a consequence, if A requires B and B requires monolog/monolog version dev-bugfix as 1.0.x-dev, installing A will make B require 1.0.x-dev, which may exist as a branch alias or an actual 1.0 branch. If it does not, it must be inline-aliased again in A's composer.json.

Note: Inline aliasing should be avoided, especially for published packages/libraries. If you found a bug, try and get your fix merged upstream. This helps to avoid issues for users of your package.

Found a typo? Something is wrong in this documentation? Slippers by Slipper Red Molly Women's International Tamarac Blitz Faux Low U75wvvqShirt Men's Columbia Voltage Silver Sleeve Ridge Long Plaid 6wSp1 it!