Download the PHP package michalsn/codeigniter-kinde without Composer
On this page you can find all versions of the php package michalsn/codeigniter-kinde. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download michalsn/codeigniter-kinde
More information about michalsn/codeigniter-kinde
Files in michalsn/codeigniter-kinde
Package codeigniter-kinde
Short Description Kinde integration for the CodeIgniter 4 framework
License MIT
Homepage https://github.com/michalsn/codeigniter-kinde
Informations about the package codeigniter-kinde
CodeIgniter Kinde
Basic integration for Kinde authentication.
Installation
Composer
composer require michalsn/codeigniter-kinde
Manually
In the example below we will assume, that files from this project will be located in app/ThirdParty/kinde
directory.
Download this project and then enable it by editing the app/Config/Autoload.php
file and adding the Michalsn\CodeIgniterKinde
namespace to the $psr4
array, like in the below example:
Also add the required helper to the same file under $files
array:
Database
php spark migrate --all
Config
See what configuration variables can be set by looking at the src/Config/Kinde.php
file and use the .env
file to set them.
See the getting started article for reference.
Routes
login
register
logout
callback
Filers
kinde
Commands
To copy config file to the application namespace.
php spark kinde:publish
Helper functions
authenticated()
will check if current user is authenticatedcan('permission')
will check if current user has a permissionuser_id()
will return current user ID (database)user()
oruser('field')
will return current user info (database)kinde_user()
will return the Kinde user array ornull