PHPackages                             sjaakp/yii2-pluto - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Authentication &amp; Authorization](/categories/authentication)
4. /
5. sjaakp/yii2-pluto

ActiveYii2-extension[Authentication &amp; Authorization](/categories/authentication)

sjaakp/yii2-pluto
=================

User management extension for Yii2

1.0.13(1y ago)91.5k12[19 issues](https://github.com/sjaakp/yii2-pluto/issues)[2 PRs](https://github.com/sjaakp/yii2-pluto/pulls)1MITPHPPHP &gt;=7.0.0

Since May 15Pushed 1y ago3 watchersCompare

[ Source](https://github.com/sjaakp/yii2-pluto)[ Packagist](https://packagist.org/packages/sjaakp/yii2-pluto)[ RSS](/packages/sjaakp-yii2-pluto/feed)WikiDiscussions master Synced 3w ago

READMEChangelog (10)Dependencies (4)Versions (15)Used By (1)

yii2-pluto
==========

[](#yii2-pluto)

User management module for Yii2 framework
-----------------------------------------

[](#user-management-module-for-yii2-framework)

[![Latest Stable Version](https://camo.githubusercontent.com/3c8b6425181d811c21a7cf61e970fdd4cef037f0481d75d1d6e7d6282c912814/68747470733a2f2f706f7365722e707567782e6f72672f736a61616b702f796969322d706c75746f2f762f737461626c65)](https://packagist.org/packages/sjaakp/yii2-pluto)[![Total Downloads](https://camo.githubusercontent.com/baf71cee7dcc1c87a5558e6ae19bd9f793e94f53a0d7a5cbb68c2bbddd59f29d/68747470733a2f2f706f7365722e707567782e6f72672f736a61616b702f796969322d706c75746f2f646f776e6c6f616473)](https://packagist.org/packages/sjaakp/yii2-pluto)[![License](https://camo.githubusercontent.com/6c394a40db4e6e4b1fe076064e1b2c29fde0fc19b04241d9a22b2be7c8dab108/68747470733a2f2f706f7365722e707567782e6f72672f736a61616b702f796969322d706c75746f2f6c6963656e7365)](https://packagist.org/packages/sjaakp/yii2-pluto)

**Pluto** is a complete user management module for the [Yii 2.0](https://www.yiiframework.com/ "Yii") PHP Framework.

It manages log in and log out of users, sign up, email-confirmation, blocking and assigning roles. Users can change their email-address, ask for a reset of their password. The site administrator can define roles and permissions and assign permissions to roles.

A demonstration of **Pluto** is [here](https://demo.sjaakpriester.nl).

Prerequisites
-------------

[](#prerequisites)

[**Pluto**](#pluto) relies on [Role-Based Access Control](https://www.yiiframework.com/doc/guide/2.0/en/security-authorization#rbac "Yii2")(RBAC). Therefore, the [`authManager`](https://www.yiiframework.com/doc/api/2.0/yii-base-application#$authManager-detail "Yii2")application component has to be configured. **Pluto** works with Yii's PhpManager as well as with the DbManager.

Because **Pluto** sends emails, the `mailer` component of the application has to be up and running. Be sure that the `'adminEmail'` parameter of the application has a sensible value. If you prefer, you may set the `'supportEmail'` parameter as well; if set, **Pluto** will use this.

**Pluto** uses Yii2 [flash messages](https://www.yiiframework.com/wiki/21/how-to-work-with-flash-messages "Yii2"), so these have to be configured as well. If the site is set up using one of Yii's [project templates](https://www.yiiframework.com/doc/guide/2.0/en/start-installation "Yii2"), this will be taken care of.

Installation
------------

[](#installation)

Install **yii2-pluto** in the usual way with [Composer](https://getcomposer.org/). Add the following to the require section of your `composer.json` file:

`"sjaakp/yii2-pluto": "*"`

or run:

`composer require sjaakp/yii2-pluto`

You can manually install **yii2-pluto** by [downloading the source in ZIP-format](https://github.com/sjaakp/yii2-pluto/archive/master.zip).

#### Module

[](#module)

**Pluto** is a [module](https://www.yiiframework.com/doc/guide/2.0/en/structure-modules#using-modules "Yii2")in the Yii2 framework. It has to be configured in the main configuration file, usually called `web.php` in the `config`directory. Add the following to the configuration array:

```
