Message-ID: <242851744.3648.1485854650136.JavaMail.confluence@ip-10-127-227-164> Subject: Exported From Confluence MIME-Version: 1.0 Content-Type: multipart/related; boundary="----=_Part_3647_1300939633.1485854650136" ------=_Part_3647_1300939633.1485854650136 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Content-Location: file:///C:/exported.html Installation Using Composer

Installation Using Composer

=20
=20
=20
=20

Get Composer

If you don't have it already, install Composer, the command-line pa= ckage 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 Compos= er installer, and should be entered on your terminal and executed by pressi= ng Return or Enter:

=20
php -r "readfile('https://getcomposer.org/installer');" | php=20
For further information about Composer usage see=20 Using Composer  .

eZ Platform Ins= tallation

The commands below assume you have Compose= r installed globally, a copy of git on your system, and your MySQL/MariaDB server already set up with a database. Onc= e you've got all the required PHP extensions installed, you can get eZ Plat= form demo up and running with the following commands:

=20
composer create-project --no-dev --keep-vcs ezsystems/ezplatform e=
zplatform
cd ezplatform
=20
php app/console ezplatform:install clean
=20
For more information about the availables options with Composer commands, s= ee the Composer documentation.

 

Installi= ng another distribution

eZ Platform exists in several distributions, listed in Step 1: Installation, some with th= eir 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.

eZ Platform Enterprise Edition
=20
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
=20

Installing an= other version

The instructions above show how to install the latest stable version, ho= wever with Composer you can specify the version and stability as well if yo= u want to install something else. Using composer create-project -h you can see how y= ou can specify another version:

create-project [options] [--] [<packa= ge>] [<directory>] [<version>]

 

Arguments:

  <pac= kage>           =                 Package name to be= installed

  <dir= ectory>          &nbs= p;                 Directory where = the files should be created

  <ver= sion>           =                   Version, wi= ll default to latest

Versions can be expressed in many ways in Com= poser, but the ones we recommend are:

  • Exact git tag: v1.3.1
  • Tilde for locking down the minor version: ~1.3.0
    • Equals: 1.3.* 
  • Caret for allowing all versions within a major: ^1.3.0
    • Equals: 1.* <=3D 1.3.0

What was described above concerns stable releases, however Composer lets you specify stability in many ways, mainly:

  • Exact git tag: v1.4.0-beta1
  • Stability flag on a given version: 1.4.0@beta
    • Equals: versions of 1.4.0 in stability order of: beta, rc, stable=
    • This can also be combined with tilde and caret to match ranges of unsta= ble releases
  • Stability flag while omitting version: '@alpha equals latest available alpha release<= /li>

Example:

=20
composer create-project --no-dev --keep-vcs ezsystems/ezplatform-d=
emo ezplatform @beta
cd ezplatform
=20
php app/console ezplatform:install demo
=20
=20
=20 =20
=20
------=_Part_3647_1300939633.1485854650136--