Skip to content

Installation

Tom Anderson edited this page Mar 18, 2016 · 10 revisions

Download Composer

Run this in your terminal to get the latest Composer version:

curl -sS https://getcomposer.org/installer | php 

Or if you don't have curl:

php -r "readfile('https://getcomposer.org/installer');" | php

This installer script will simply check some php.ini settings, warn you if they are set incorrectly, and then download the latest composer.phar in the current directory.

For composer documentation, please refer to getcomposer.org

Configure Zend Framework 2 Module

composer require "api-skeletons/zf-doctrine-audit": "^1.0"

Add to config/application.config.php:

return array(
    'modules' => array(
        'ZF\\Doctrine\\Audit'
        ...
    ),

Continue to Configuration