Phar

Download Codeception

Alternatively download it from console

wget http://codeception.com/codecept.phar

Download phar for for PHP 5.4 and PHP < 5.5.9

For PHP 5.3 use the latest version of Codeception 1.8.x

Prepare tests directory and configs

php codecept.phar bootstrap

Composer

Install a Composer to your project's root

Run

php composer.phar require "codeception/codeception:*"

From now on Codeception (with installed PHPUnit) can be run as:

php vendor/bin/codecept

Initialize your testing environment with

php vendor/bin/codecept bootstrap

Minimal Codeception

Currently Codeception installs Webdriver and Guzzle libraries as dependencies. If you don't plan to do acceptance testing, you can get minimal installation of Codeception by requiring `codeception/base`

Download phar for PHP 5.4 and 5.5

For PHP 5.3 use the latest version of Codeception 1.8.x

Prepare tests directory and configs

php composer.phar require "codeception/base:*" --dev


Git

Alternative installation method for bugfixing, contributions and hacking

Clone from GitHub:

git clone git@github.com:Codeception/Codeception.git

Install dependencies with Composer

cd Codeception
        curl -s http://getcomposer.org/installer | php
        php composer.phar install

Execute bootstrap, specifying path to your directory.

php codecept bootstrap /path/to/my/project

To run tests use -c option for specifing path.

php codecept run -c /path/to/my/project

If you want to build phar package you need to install Robo Task Runner and execute robo build:phar

Don't forget to send Pull Requests!