Browse Source

Update aliases.md

Add composer command for alias.
Marc Wilhelm 6 years ago
parent
commit
f89f9439e4
1 changed files with 6 additions and 0 deletions
  1. 6 0
      doc/articles/aliases.md

+ 6 - 0
doc/articles/aliases.md

@@ -89,6 +89,12 @@ Add this to your project's root `composer.json`:
 }
 ```
 
+Or let composer add it for you with:
+
+```
+php composer.phar require monolog/monolog:"dev-bugfix as 1.0.x-dev"
+```
+
 That will fetch the `dev-bugfix` version of `monolog/monolog` from your GitHub
 and alias it to `1.0.x-dev`.