mirror of
https://github.com/codeguy/php-the-right-way.git
synced 2025-08-18 19:41:15 +02:00
Merge branch 'gh-pages' of https://github.com/mkyaw/php-the-right-way into gh-pages
This commit is contained in:
@@ -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.
|
||||
|
Reference in New Issue
Block a user