webdevbr / eloquent-zf2
Integration of Illuminate\Database with Zend Framework 2
Installs: 12
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 2
Forks: 0
Open Issues: 0
Type:zf-module
Requires
- php: >=5.5.9
- illuminate/database: ^5.2
- illuminate/events: ^5.2
This package is not auto-updated.
Last update: 2024-11-09 19:20:03 UTC
README
Instalation
Run:
composer require webdevbr/eloquent-zf2
Configuration
In the config\autoload\global.php
put:
return array(
'database' => [
'default' => [
'driver' => 'mysql',
'host' => 'localhost',
'database' => 'database',
'username' => 'root',
'password' => 'password',
'charset' => 'utf8',
'collation' => 'utf8_unicode_ci',
'prefix' => '',
]
],
'eloquent' => [
'database_default'=>'default',
'setAsGlobal'=>true,
]
);