PHPackages                             alikhaleghi/basesys - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. alikhaleghi/basesys

ActiveLibrary

alikhaleghi/basesys
===================

Base System for Khaleghi Projects.

v1.0.alpha(1y ago)05MITPHPPHP ^7.4 || ^8.0

Since Aug 13Pushed 1y ago1 watchersCompare

[ Source](https://github.com/ravandar/BaseSys)[ Packagist](https://packagist.org/packages/alikhaleghi/basesys)[ Docs](https://github.com/alikhaleghi/basesys)[ RSS](/packages/alikhaleghi-basesys/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (1)Dependencies (9)Versions (2)Used By (0)

Myth:Auth
=========

[](#mythauth)

Flexible, Powerful, Secure API package for CodeIgniter 4.

Project Notice
--------------

[](#project-notice)

Things are supposed to work on CI4.2+

Requirements
------------

[](#requirements)

- PHP 8.1+
- CodeIgniter 4.2+

Features
--------

[](#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)

Installation is best done via Composer. Assuming Composer is installed globally, you may use the following command:

```
    > composer require AliKhaleghi/BaseSys
```

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:

```
    > php spark migrate -all
```

Manual Labor
============

[](#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
-------

[](#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`

```
public array $filters = [
    'jwt_logged_in' => ['before' => ['api/client/*']],
    'jwt_admin' => ['before' => ['api/client/*']],
];
```

Registration Requirements
-------------------------

[](#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:

```
/**
 * --------------------------------------------------------------------
 * Require Confirmation Registration via Email
 * --------------------------------------------------------------------
 *
 * When enabled, every registered user will receive an email message
 * with an activation link to confirm the account.
 *
 *  Validation Via Email: AliKhaleghi\BaseSys\Authentication\Activators\EmailActivator
 *  Validation Via SMS: AliKhaleghi\BaseSys\Authentication\Activators\SMSActivator
 *
 * @var string|null Name of the ActivatorInterface class
 */
public $requireActivation = 'AliKhaleghi\BaseSys\Authentication\Activators\EmailActivator';
```

if above value is not set yet registration requires activation, `EmailActivator` will be used as default.

###  Health Score

19

—

LowBetter than 10% of packages

Maintenance34

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community4

Small or concentrated contributor base

Maturity30

Early-stage or recently created project

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

635d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/d4d1dd4acd176aac7fc65596b56ad2f11e6e76c90b9b5eba47aa9bf010b54bc2?d=identicon)[notawli](/maintainers/notawli)

---

Tags

codeigniterkhaleghi cms

### Embed Badge

![Health badge](/badges/alikhaleghi-basesys/health.svg)

```
[![Health](https://phpackages.com/badges/alikhaleghi-basesys/health.svg)](https://phpackages.com/packages/alikhaleghi-basesys)
```

###  Alternatives

[composer/installers

A multi-framework Composer library installer

1.4k136.0M6.0k](/packages/composer-installers)[codeigniter4/shield

Authentication and Authorization for CodeIgniter 4

417372.4k21](/packages/codeigniter4-shield)[kenjis/ci-phpunit-test

An easier way to use PHPUnit with CodeIgniter 3.x

5861.2M3](/packages/kenjis-ci-phpunit-test)[myth/auth

Flexible authentication/authorization system for CodeIgniter 4.

641147.9k14](/packages/myth-auth)[codeigniter4/settings

Settings library for CodeIgniter 4

93499.3k23](/packages/codeigniter4-settings)[codeigniter4/devkit

Development toolkit for CodeIgniter libraries and projects

68187.1k82](/packages/codeigniter4-devkit)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
