pchela/events

Zend Framework 2 Events Module

dev-master 2016-08-22 14:03 UTC

This package is not auto-updated.

Last update: 2024-06-04 17:47:37 UTC


README

Requirements

  • database
  • PHP Version >= 5.4.28
  • PHP intl extension

Installation

$ cd DIR_PROJECT
$ composer require pchela/events:dev-master

Setup

Fill the specified db parameters

//DIR_PROJECT/config/autoload/local.php

return array(
    'doctrine' => array(
        'connection' => array(
            // default connection name
            'orm_default' => array(
                'driverClass' => 'Doctrine\DBAL\Driver\PDOMySql\Driver',
                'params' => array(
                    'host' => 'DBHOST', 
                    'port' => 'DBPORT',
                    'user' => 'DBUSER',
                    'password' => 'USERPASSWORD',
                    'dbname' => 'DBNAME',
                )
            )
        )
    ),
);

Enable modules in application.config.php

return array(
  'modules' => array(
      // other modules
        'DoctrineModule',
        'DoctrineORMModule',
        'Events',
  ),
  // other content
);

Create db schema

$ cd DIR_PROJECT
$ php vendor/bin/doctrine-module orm:schema-tool:create

Usage

http://your-domain.app/events