2017 © Pedro Peláez
 

cakephp-plugin usershell

Additional tools for create, complete and set permission for users, groups in CakePHP applications.

image

vladshish/usershell

Additional tools for create, complete and set permission for users, groups in CakePHP applications.

  • Thursday, October 22, 2015
  • by VladShish
  • Repository
  • 1 Watchers
  • 0 Stars
  • 86 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 7 Versions
  • 0 % Grown

The README.md

usershell

You can use this plugin for create groups and users from configure settings file., (*1)

Load plugin

:: bootstrap.php ::

```php CakePlugin::load('UserShell');, (*2)

Configure

:: core-default.php ::

```php Configure::write('Groups', array( 'modelName' => 'Group', 'data' => array( 'admin' => array( 'id' => 1, 'name' => 'Administrators', 'status' => 0, ), 'member' => array( 'id' => 2, 'name' => 'Members', 'status' => 0, ) ), 'permissions' => array( 'admin' => array( 'id' => 1, 'deny' => [], 'allow' => [ 'controllers', ], ), 'others' => array( 'id !=' => [1], 'deny' => array( 'controllers/users/index', 'controllers/users/edit', 'controllers/users/delete', 'controllers/users/create', 'controllers/groups', ), 'allow' => array( 'controllers', ) ), ), ));, (*3)


```php Configure::write('Users', array( 'modelName' => 'User', 'data' => array( 'admin' => array( 'id' => 1, 'email' => 'example@example.com', 'password' => 'example', 'repead-password' => 'example', 'status' => 1, 'group_id' => 1, ), ), 'conditions' => array( 'status' => array(1, 2), ), ));

Usage

Group will be created if they don`t exists, (*4)

bin/cake UserShall.group init

Add missing groups, (*5)

bin/cake UserShall.group complete

Just set permissions for groups, (*6)

bin/cake UserShall.group set_permissions

Users will be created if they don`t exists, (*7)

bin/cake UserShall.user create

Add missing users, (*8)

bin/cake UserShall.user complete

The Versions

22/10 2015

dev-master

9999999-dev https://github.com/vladshish/usershell

Additional tools for create, complete and set permission for users, groups in CakePHP applications.

  Sources   Download

MIT

The Requires

 

by Vlad Shish

user cakephp shell group

22/10 2015

0.0.6

0.0.6.0 https://github.com/vladshish/usershell

Additional tools for create, complete and set permission for users, groups in CakePHP applications.

  Sources   Download

MIT

The Requires

 

by Vlad Shish

user cakephp shell group

08/09 2015

0.0.5

0.0.5.0 https://github.com/vladshish/usershell

Additional tools for create, complete and set permission for users, groups in CakePHP applications.

  Sources   Download

MIT

The Requires

 

by Vlad Shish

user cakephp shell group

28/07 2015

0.0.4

0.0.4.0 https://github.com/vladshish/usershell

Additional tools for create, complete and set permission for users, groups in CakePHP applications.

  Sources   Download

MIT

The Requires

 

by Vlad Shish

user cakephp shell group

28/07 2015

0.0.3

0.0.3.0 https://github.com/vladshish/usershell

Additional tools for create, complete and set permission for users, groups in CakePHP applications.

  Sources   Download

MIT

The Requires

 

by Vlad Shish

user cakephp shell group

28/07 2015

0.0.2

0.0.2.0 https://github.com/vladshish/usershell

Additional tools for create, complete and set permission for users, groups in CakePHP applications.

  Sources   Download

MIT

The Requires

 

by Vlad Shish

user cakephp shell group

28/07 2015

0.0.1

0.0.1.0 https://github.com/vladshish/usershell

Additional tools for create, complete and set permission for users, groups in CakePHP applications.

  Sources   Download

MIT

The Requires

 

by Vlad Shish

user cakephp shell group