Skip to content

Instantly share code, notes, and snippets.

@odan
Created September 20, 2024 18:25
Show Gist options
  • Save odan/670f07c001d0dbc7689cd0eb59f7e771 to your computer and use it in GitHub Desktop.
Save odan/670f07c001d0dbc7689cd0eb59f7e771 to your computer and use it in GitHub Desktop.
Require dev branch in PHP with composer

Using a specific branch instead of a version with composer

Example: Branch name is 5.x

{
    "repositories": [
        {
            "type": "git",
            "url": "https://github.com/odan/Slim.git"
        }
    ],
    
    "require": {
      "slim/slim": "5.x-dev",
    }
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment