antuan-laptop / ledsuser
User module for authentication and Doctine2 for database setup for ZF2.
dev-master
2016-12-21 12:59 UTC
Requires
- php: >=5.3.3
- antuan-laptop/commons: dev-master
- rwoverdijk/assetmanager: 1.*
- webino/webino-image-thumb: dev-master
This package is not auto-updated.
Last update: 2025-03-10 16:47:15 UTC
README
This is an User module for authentication and Doctine2 for database setup for ZF2.
Installation
Using Composer (recommended)
The recommended way to get a working copy of this project is to clone the repository
and use composer
to install dependencies:
curl -s https://getcomposer.org/installer | php --
You would then invoke composer
to install dependencies. Add to your composer.json
"antuan-laptop/ledsuser": "dev-master"
(for needed classes)
"antuan-laptop/commons": "dev-master"
Configuration
Once module installed, you could declare the module into your "config/application.config.php" by adding "LedsUser" and "Commons".
'Application',
'AkrabatSession',
'DoctrineModule',
'DoctrineORMModule',
'AssetManager',
'Commons',
'LedsUser',
Setup Session Handling
Create a directory "session" in data directory with read/write access to your web server
$ mkdir www/{approot}/data/session
$ chown -R apache:apache www/{approot}/data/session
$ chmod -R 0770 apache:apache www/{approot}/data/session
return array(
'session' => array(
'name' => 'local_auth',
'save_path' => __DIR__ . '/../../../data/session'
),
);
Database Setup
copy "doctrine.local.php.dist" to "config/autoload/doctrine.local.php"
./vendor/bin/doctrine-module orm:schema-tool:update --force