Download the PHP package solution10/auth without Composer
On this page you can find all versions of the php package solution10/auth. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download solution10/auth
More information about solution10/auth
Files in solution10/auth
Package auth
Short Description Powerful and extremely flexible authentication
License MIT
Informations about the package auth
Solution10\Auth
Powerful and extremely flexible authentication
Key Features
- Framework agnostic:
Can work with any framework and any ORM / database layer. Implement two classes to integrate with your tools of choice and Auth will do the rest.
Learn more about Integration - Multiple Instances:
No statics or manky global scope. Every auth instance is totally self contained and can talk to entirely different backends and session handlers.
Learn more about Multiple Instances - Powerful Permissions:
Package based permissions allow you to define broad access control groups, and Overrides allow you to allow/disallow permissions on a per-user basis
Learn more about Permissions
Installation
Installation is as you'd expect, simply via a Composer requirement:
Note: Auth provides absolutely no storage capability (no database layer / access). You will need to provide this by implementing a StorageDelegate. This approach might seem awkward at first, but it allows you to take completely control over the logic of data-retrieval, whilst Auth handles the actual mechanics for you. Learn more about Integration
Basic Usage
Your first step should be to complete everything in the Integration guide, but that doesn't make for a sexy demo, so we'll assume you've done that!
Let's pretend that I have fully implemented a StorageDelegate called "PDOStorageDelegate".
As you may have noticed, we give auth instances names. This gives us a way of referencing them later. More on that in the Instances chapter.
Logging In
Logging Out
Checking Login State
Getting the Current User
Forcing a Login
This should be used with extreme caution, it will allow you to log a user in without their password. Probably only useful after registration.
You can read more about UserRepresentation in the Integration guide
PHP Requirements
- PHP >= 5.4
Documentation
For a user guide: Check out the Wiki here on GitHub.
Author
License
Contributing
All versions of auth with dependencies
solution10/collection Version ^1.0
solution10/managed-instance Version ^1.0
ircmaxell/password-compat Version ^1.0