Merge branch 'gh-pages' of https://github.com/mkyaw/php-the-right-way into gh-pages

This commit is contained in:
Phil Sturgeon
2016-11-12 15:30:39 -05:00
14 changed files with 19 additions and 19 deletions

View File

@@ -78,7 +78,7 @@ as a dependency of your project.
composer require twig/twig:~1.8
{% endhighlight %}
Alternatively the `composer init` command will guide you through creating a full `composer.json` file
Alternatively, the `composer init` command will guide you through creating a full `composer.json` file
for your project. Either way, once you've created your `composer.json` file you can tell Composer to
download and install your dependencies into the `vendor/` directory. This also applies to projects
you've downloaded that already provide a `composer.json` file:
@@ -106,7 +106,7 @@ get the same versions as you. To update your dependencies, run `composer update
`composer update` when deploying, only `composer install`, otherwise you may end up with different
package versions on production.
This is most useful when you define your version requirements flexibly. For instance a version
This is most useful when you define your version requirements flexibly. For instance, a version
requirement of `~1.8` means "anything newer than `1.8.0`, but less than `2.0.x-dev`". You can also use
the `*` wildcard as in `1.8.*`. Now Composer's `composer update` command will upgrade all your
dependencies to the newest version that fits the restrictions you define.