...
Keeping your system up-to-date is important, to make sure your it is running optimally and securely. The update mechanism in eZ Publish Platform is using the de facto standard PHP packaging system called Composer. This makes it easy to adapt package installs and updates to your workflow, allowing you to test new/updated packages in a development environment, put the changes in your version control system (git, Subversion, Mercurial, etc.), pull in those changes on a staging environment and, when approved, put it in production.
Table of Contents |
---|
Installing Composer
This step is only needed once per machine (per project by default, but installing globally on the machine is also possible. For alternatives see: https://getcomposer.org/download/).
Composer is a command line tool, so the main way to install it is via command-line, example:
Code Block | ||||
---|---|---|---|---|
| ||||
php -r "readfile('https://getcomposer.org/installer');" | php |
Prerequisite to using composer
...
as Password: the token password you retrieved in step 3.
Optional: Save authentication
...
information in auth.json to avoid repeatedly typing it
To avoid having to always fill your credentials, add an auth.json
file at your project root, next composer.json
, or in your COMPOSER_HOME directory for machine-wide use. The file looks like the following:
Code Block | ||||
---|---|---|---|---|
| ||||
{ "config": { "basic-auth": { "updates.ez.no": { "username": "<installation-key>", "password": "<password><token password>" } } } } |
The fine print: bundled with eZ Publish Platform is a Composer extension which makes it possible to store authentication information in that file.
Installing Composer
This step is only needed once per machine (per project by default, but installing globally on the machine is also possible. For alternatives see: https://getcomposer.org/download/).
Composer is a command line tool, so the main way to install it is via command-line, example:
Code Block | ||||
---|---|---|---|---|
| ||||
php -r "readfile('https://getcomposer.org/installer');" | php |
Using composer
# Running composer update and version changes
...