Download the PHP package alikhaleghi/basesys without Composer
On this page you can find all versions of the php package alikhaleghi/basesys. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download alikhaleghi/basesys
More information about alikhaleghi/basesys
Files in alikhaleghi/basesys
Package basesys
Short Description Base System for Khaleghi Projects.
License MIT
Homepage https://github.com/alikhaleghi/basesys
Informations about the package basesys
Myth:Auth
Flexible, Powerful, Secure API package for CodeIgniter 4.
Project Notice
Things are supposed to work on CI4.2+
Requirements
- PHP 8.1+
- CodeIgniter 4.2+
Features
Authentication/Authorization
- Login/Register/Account Recovery
-
User Panel -- Dashboard -- User Profile --- Account Details Modification --- Password Modification --- Contact Info Modification
- Admin Panel -- Dashboard -- User Management --- User Modification --- User Group Management ---- User Group Add/Delete
Installation
Installation is best done via Composer. Assuming Composer is installed globally, you may use the following command:
This will add the latest stable release of AliKhaleghi/BaseSys as a module to your project.
Ensure your database is setup correctly, then run the Auth migrations:
Manual Labor
You will need to add some more configuration to get things working.
Open or Create the file /app/config/Auth.php
.
In here we will need to add JSON Web Token library to Myth/Auth Authentication configuration.
find the variable $authenticationLibs
and add the following element to the array.
'jwt' => 'AliKhaleghi\BaseSys\Authentication\JWTAuthenticator', // JSON Web Token Authenticator Class
`
/**
-
- Libraries
-
- @var array */ public $authenticationLibs = [ 'local' => 'Myth\Auth\Authentication\LocalAuthenticator', 'jwt' => 'AliKhaleghi\BaseSys\Authentication\JWTAuthenticator', // JSON Web Token Authenticator Class ]; `
Filters
Please note that in order to keep the API End Points secure you will need to implant the following code
to your App\Config\Filters.php
Registration Requirements
In order to get any sort of activation before allowing new users to log in,
you will need tou update your App\Config\Auth.php
configuration as follows:
if above value is not set yet registration requires activation, EmailActivator
will be used as default.
All versions of basesys with dependencies
firebase/php-jwt Version ^6.3
myth/auth Version ^1.2
codeigniter4/settings Version ^2.1
morilog/jalali Version ^3