Download the PHP package wp-kit/auth without Composer
On this page you can find all versions of the php package wp-kit/auth. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Package auth
Short Description A wp-kit component that handles authentication
License MIT
Homepage https://github.com/wp-kit/auth
Informations about the package auth
wp-kit/auth
This is a wp-kit component that handles authentication.
was built to work with as currently there are no authentication middlewares built into however with built into , we are able to run on and .
achives compatibility with by providing a UserProvider that integrates directly with WordPress to authenticate users.
comes aliased with four types of :
- Authentication (Illuminate): auth
- Basic Authentication (Illuminate): auth.basic
- Start Session (Illuminate): start_session
- Guest Redirection (WP Kit): guest
-
WP Login Authentication (WP Kit): auth.wp_login
comes with a Controllers so you can use traditional form authentication just like in Laravel.
Installation
Install via in the root of your installation:
Setup
Add Service Provider(s)
Just register the service provider and facade in the providers config and theme config:
Add Config File
Note: This will be changing to a traditional config file similar to that found in Laravel once the Guard has been built
The recommended method of installing config files for components is via command.
First, install WP CLI, and then install this component, will automatically be installed with , once installed you can run:
For more information, please visit .
Alternatively, you can place the config file(s) in your directory manually.
Allowing Headers
If using middleware, make sure you add the following line to your file to allow headers:
Usage
You can activate on the route group or route itself:
Middleware on Group
Middleware on Route
Using Traits in Controllers
The AuthenticatesUsers
trait handles everything for logging the user in using a custom form.
Make sure you add routes:
Make sure you add a login form view:
Config
Please install and study the default config file as described above to learn how to use this component.
Get Involved
To learn more about how to use check out the docs:
Any help is appreciated. The project is open-source and we encourage you to participate. You can contribute to the project in multiple ways by:
- Reporting a bug issue
- Suggesting features
- Sending a pull request with code fix or feature
- Following the project on GitHub
- Sharing the project around your community
For details about contributing to the framework, please check the contribution guide.
Requirements
Wordpress 4+
PHP 5.6+
License
wp-kit/auth is open-sourced software licensed under the MIT License.
All versions of auth with dependencies
illuminate/auth Version ^6.0
illuminate/cookie Version ^6.0
illuminate/cache Version ^6.0
illuminate/validation Version ^6.0
wp-kit/config Version 2.*
wp-kit/kernel Version 1.*
wp-kit/wp-login-auth Version 1.*
wp-kit/hashing Version 2.*
wp-kit/utils Version 2.*