Skip to content

kowalski-piotr/Events

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Zend Framework 2 Events Module

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

About

Zend Framework 2 Events Module

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published