Difference between revisions of "Template:Composer"
Jump to navigation
Jump to search
Tag: 2017 source edit |
Tag: 2017 source edit |
||
(5 intermediate revisions by the same user not shown) | |||
Line 2: | Line 2: | ||
|- | |- | ||
| '''Installing packages with Composer:''' | | '''Installing packages with Composer:''' | ||
+ | |- | ||
+ | | Commands are given as <code>composer [command]</code>; if you have not installed composer globally, they will be <code>php composer.phar [command]</code> instead. | ||
+ | |- | ||
+ | | You may need to run <code>composer self-update</code> (assuming you have not recently) before installing package(s). If possible, update to composer v2.x; you may need to use the command <code>composer self-update --2</code>. | ||
|- | |- | ||
| If feasible, run <code>composer update</code>. | | If feasible, run <code>composer update</code>. | ||
|- | |- | ||
− | | | + | | <u>If you encounter memory issues:</u> Locally, run <code>composer update</code>. Copy the composer.lock file to your site's server. |
|- | |- | ||
| Run <code>composer install</code>. | | Run <code>composer install</code>. | ||
|} | |} |
Latest revision as of 20:48, 11 November 2020
Installing packages with Composer: |
Commands are given as composer [command] ; if you have not installed composer globally, they will be php composer.phar [command] instead.
|
You may need to run composer self-update (assuming you have not recently) before installing package(s). If possible, update to composer v2.x; you may need to use the command composer self-update --2 .
|
If feasible, run composer update .
|
If you encounter memory issues: Locally, run composer update . Copy the composer.lock file to your site's server.
|
Run composer install .
|