If you don't have it already, install Composer, the command-line package manager for PHP. You'll have to have a copy of Git installed on your machine. The following command uses PHP to download and run the Composer installer, and should be entered on your terminal and executed by pressing Return or Enter:
php -r "readfile('https://getcomposer.org/installer');" | php |
For further information about Composer usage see Using Composer . |
The commands below assume you have Composer installed globally, a copy of git on your system, and your MySQL/MariaDB server already set up with a database. Once you've got all the required PHP extensions installed, you can get eZ Platform demo up and running with the following commands:
composer create-project --no-dev --keep-vcs ezsystems/ezplatform ezplatform cd ezplatform php app/console ezplatform:install clean |
For more information about the availables options with Composer commands, see the Composer documentation. |
eZ Platform exists in several distributions, listed in Step 1: Installation, some with their own installer as shown in the example below. To install The Enterprise Edition you need an eZ Enterprise subscription and have to set up Composer for that.
composer create-project --no-dev --keep-vcs ezsystems/ezstudio cd ezstudio # Options are listed on php app/console ezplatform:install -h php app/console ezplatform:install studio-clean |
The instructions above show how to install the latest stable version, however with Composer you can specify the version and stability as well if you want to install something else. Using composer create-project -h
you can see how you can specify another version:
create-project [options] [--] [<package>] [<directory>] [<version>]
Arguments:
<package> Package name to be installed
<directory> Directory where the files should be created
<version> Version, will default to latest
Versions can be expressed in many ways in Composer, but the ones we recommend are:
v1.3.1
~1.3.0
^1.3.0
What was described above concerns stable releases, however Composer lets you specify stability in many ways, mainly:
v1.4.0-beta1
1.4.0@beta
@alpha
equals latest available alpha releaseExample:
composer create-project --no-dev --keep-vcs ezsystems/ezplatform-demo ezplatform @beta cd ezplatform php app/console ezplatform:install demo |