ZF2 BoilerApp Database module

dev-master / 1.0.x-dev 2013-10-07 17:22 UTC

This package is auto-updated.

Last update: 2024-10-24 04:02:43 UTC


README

Build Status Latest Stable Version Total Downloads Code coverage

NOTE : This module is in heavy development, it's not usable yet. If you want to contribute don't hesitate, I'll review any PR.

Introduction

ZF2 BoilerApp "Database" module is a Zend Framework 2 module that provides database core of ZF2 Boiler-App

Requirements

Installation

Main Setup

By cloning project

  1. Clone this project into your ./vendor/ directory.

With composer

  1. Add this project in your composer.json:

    "require": {
        "zf2-boiler-app/app-db": "1.0.*"
    }
  2. Now tell composer to download ZF2 BoilerApp "Database" module by running the command:

    $ php composer.phar update

Post installation

  1. Enabling BoilerAppDb and Doctrine modules in your application.config.php file.

    return array(
        'modules' => array(
            // ...
            'DoctrineModule',
            'DoctrineORMModule',
            'BoilerAppDb',
        ),
        // ...
    );
  2. Allowing Mysqli reconnexion in php.ini

    mysqli.reconnect = On

Features

Doctrine

Commons
  • Repositories abstract factory
  • Support entity's date of create and update
DBAL types
  • Email
  • Md5 hash
  • Enum