2017 © Pedro Peláez
 

cakephp-plugin users-plugin

Users plugin for CakePHP

image

propellerstudios/users-plugin

Users plugin for CakePHP

  • Wednesday, May 18, 2016
  • by dsmithhayes
  • Repository
  • 2 Watchers
  • 0 Stars
  • 5 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 2 Versions
  • 0 % Grown

The README.md

Users plugin for CakePHP

A CakePHP 3.x plugin for users. The original concept is boilerplate user management using the default CakePHP Auth component., (*1)

To use this plugin simply require it with Composer., (*2)

$ composer require propellerstudios/users-plugin

Once Composer has the necessary files, run a migration to add the users table to your database., (*3)

$ bin/cake migrations migrate -p Propeller/Users

Configuration

In order for this plugin to work properly, you must set the bootstrap directive on the plugin load command in your applications bootstrap file. The purpose of the plugin's bootstrap file is to load the configuration properly. The plugin also sets and handles routes., (*4)

Plugin::load('Propeller/Users', ['bootstrap' => true, 'routes' => true]);

There are several keys for configuring the Users plugin., (*5)

  • use_email_as_username
  • first_user_is_admin
  • use_main_route_scope
  • use_dashboard_route
  • open_registration
  • send_email_verification
  • white_list

All of these keys are boolean values save for white_list which is an array of actions that are available to non-authorized visitors of the site. To overwrite any of these, after your Plugin::load() command, just rewrite the keys that you wish like so:, (*6)

Configure::write('Users.white_list', ['index', 'view']);
Configure::write('Users.use_email_as_username', false);

The Versions

18/05 2016

dev-master

9999999-dev

Users plugin for CakePHP

  Sources   Download

The Requires

 

The Development Requires

22/10 2015

v0.1.0

0.1.0.0

Users plugin for CakePHP

  Sources   Download

The Requires

 

The Development Requires