Eye4web/Eye4webZfcUserBan

View on GitHub
README.md

Summary

Maintainability
Test Coverage
Eye4webZfcUserBan
==========
[![Build Status](https://travis-ci.org/Eye4web/Eye4webZfcUserBan.svg?branch=master)](https://travis-ci.org/Eye4web/Eye4webZfcUserBan)
[![Latest Stable Version](https://poser.pugx.org/eye4web/eye4web-zfc-user-ban/v/stable.svg)](https://packagist.org/packages/eye4web/eye4web-zfc-user-ban)
[![Latest Unstable Version](https://poser.pugx.org/eye4web/eye4web-zfc-user-ban/v/unstable.svg)](https://packagist.org/packages/eye4web/eye4web-zfc-user-ban)
[![Code Climate](https://codeclimate.com/github/Eye4web/Eye4webZfcUserBan/badges/gpa.svg)](https://codeclimate.com/github/Eye4web/Eye4webZfcUserBan)
[![Test Coverage](https://codeclimate.com/github/Eye4web/Eye4webZfcUserBan/badges/coverage.svg)](https://codeclimate.com/github/Eye4web/Eye4webZfcUserBan)
[![Total Downloads](https://poser.pugx.org/eye4web/eye4web-zfc-user-ban/downloads.svg)](https://packagist.org/packages/eye4web/eye4web-zfc-user-ban)
[![License](https://poser.pugx.org/eye4web/eye4web-zfc-user-ban/license.svg)](https://packagist.org/packages/eye4web/eye4web-zfc-user-ban)

Introduction
==========
This module will allow you to ban a user by setting a flag in your database.

Installation
------------
#### With composer

1. Add this project composer.json:

    ```json
    "require": {
        "eye4web/eye4web-zfc-user-ban": "dev-master"
    }
    ```

2. Now tell composer to download the module by running the command:

    ```bash
    $ php composer.phar update
    ```

3. Enable it in your `application.config.php` file.

    ```php
    <?php
    return array(
        'modules' => array(
            // ...
            'Eye4web\ZfcUser\Ban'
        ),
        // ...
    );
    ```

4. Make your user entity implement `Eye4web\ZfcUser\Ban\UserBannableInterface`

Change 'banned' landing page
------------
If you want to use your own view, for the user banned landing page, all you have to is create a new view file in this
path: ´view/eye4web/zfc-user/ban/index.phtml`.
Alternatively you can overwrite the route `eye4web_zfcuser_ban` and point it to your own controller.