Download the PHP package crada/phalcon-user-plugin without Composer
On this page you can find all versions of the php package crada/phalcon-user-plugin. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download crada/phalcon-user-plugin
More information about crada/phalcon-user-plugin
Files in crada/phalcon-user-plugin
Package phalcon-user-plugin
Short Description User plugin for Phalcon PHP framework
License MIT
Homepage https://github.com/calinrada/PhalconUserPlugin
Informations about the package phalcon-user-plugin
IMPORATNT! You should switch to branch v3.0.0
We have switched to facebook/graph-sdk 5.4 !
Phalcon User Plugin (v 2.0)
- About
- Features
- Installation
- Plug it
- Configuration
- Example controller
- Known issues
- Examples
- TODO
About
This is a plugin based on Vokuro ACL idea.
Features
- Login / Register with Facebook account
- Login / Register with LinkedIn account
- Login / Register with Twitter account
- Login / Register with Google account
- Change password
- Password recovery by email
- Protect different areas from your website, where a user must be logged in, in order to have access
- Protect different actions, based on the ACL list for each user
- User profile: birth date, birth location, current location, profile picture
- Locations - save locations using google API - see Wiki for examples
- Simple notifications system
Installation
The recommended installation is via Composer. Just add the following line to your composer.json
:
Plug it
Add the following lines where to your events manager:
Full example code:
Register Auth, Mail and Acl services
Configuration
You must add configuration keys to your config.php file. If you are using a multimodule application, i recommend you to set up the configuration separately for each module.
Configuration examples
In the example bellow, you will treat your website as public, EXCEPT the actions ACCOUNT and PROFILE from the USER controller:
In the example bellow, the ONLY PUBLIC resources are the actions LOGIN and REGISTER from the USER controller:
In the example bellow, you will treat your website as private, EXCEPT the actions LOGIN and REGISTER from the USER controller:
In the example bellow, the ONLY PRIVATE resources are the actions ACCOUNT and PROFILE from the USER controller:
Configuration example with connectors:
Example controller
- For a complete controller example read the Wiki page: https://github.com/calinrada/PhalconUserPlugin/wiki/Controller
Known issues
- Twitter does not provide us the email. We are generating a random email for the user. It is your choice how you handle this
Examples
TODO
- Implement CRUD templates for ACl, UserManagement, etc
All versions of phalcon-user-plugin with dependencies
swiftmailer/swiftmailer Version 5.4.*
google/apiclient Version 2.2.*
imagine/imagine Version 0.6.*
paragonie/random_compat Version 2.0.*
facebook/graph-sdk Version 5.4.*