zf2-boiler-app/app-access-control

ZF2 BoilerApp Access control module

dev-master / 1.0.x-dev 2013-10-07 19:18 UTC

This package is auto-updated.

Last update: 2024-10-24 04:54:05 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 "Access control" module is a Zend Framework 2 module that provides access control for 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:

    "repositories":[
        {
            "type": "package",
            "package": {
                "version": "dev-master",
                "name": "fortawesome/font-awesome",
                "source": {"url": "https://github.com/FortAwesome/Font-Awesome.git","type": "git","reference": "master"}
            }
        },
        {
            "type": "package",
            "package": {
                "version": "dev-master",
                "name": "fabiomcosta/mootools-meio-mask",
                "source": {"url": "https://github.com/fabiomcosta/mootools-meio-mask.git","type": "git","reference": "master"}
            }
        },
        {
            "type": "package",
            "package": {
                "version": "dev-master",
                "name": "arian/iFrameFormRequest",
                "source": {"url": "https://github.com/arian/iFrameFormRequest.git","type": "git","reference": "master"}
            }
        },
        {
            "type": "package",
            "package": {
                "version": "dev-master",
                "name": "nak5ive/Form.PasswordStrength",
                "source": {"url": "https://github.com/nak5ive/Form.PasswordStrength.git","type": "git","reference": "master"}
            }
        },
        {
            "type": "vcs",
            "url": "http://github.com/Nodge/lessphp"
        }
    ],
    "require": {
        "zf2-boiler-app/app-access-control": "1.0.*"
    }
  2. Now tell composer to download ZF2 BoilerApp "Access control" module by running the command:

    $ php composer.phar update

Post installation

  1. Enabling it in your application.config.php file.

    return array(
        'modules' => array(
            // ...
            'DoctrineModule',
    		'DoctrineORMModule',
    		'AssetsBundle',
    		'TwbBundle',
    		'BoilerAppDb',
    		'BoilerAppUser',
    		'BoilerAppDisplay',
    		'BoilerAppMessenger',
    		'BoilerAppAccessControl'
        ),
        // ...
    );

Features

  • Two steps registrations (confirm email adress)
  • Login with username or email adress
  • Authentication access is independent of the user account
  • An authentication access can be used to access multiple accounts
  • An account can be accessed by multiple authentication access