PHPackages                             jellelampaert/ci4\_auth - 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. [Authentication &amp; Authorization](/categories/authentication)
4. /
5. jellelampaert/ci4\_auth

ActiveLibrary[Authentication &amp; Authorization](/categories/authentication)

jellelampaert/ci4\_auth
=======================

An authentication-library for Codeigniter 4

0.1(4y ago)191MITPHPPHP &gt;=7.2

Since Feb 22Pushed 4y ago2 watchersCompare

[ Source](https://github.com/jellelampaert/ci4_auth)[ Packagist](https://packagist.org/packages/jellelampaert/ci4_auth)[ RSS](/packages/jellelampaert-ci4-auth/feed)WikiDiscussions main Synced today

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

Autentication and authorization-system for CodeIgniter 4
========================================================

[](#autentication-and-authorization-system-for-codeigniter-4)

Configuration
-------------

[](#configuration)

Configuration is done in `Config/Auth.php`, or in the `.env`-file.

Events
------

[](#events)

There are certain events you can subscribe to in your `Config/Events.php`.

- *login($user\_id)* - A user has logged in
- *logout($user\_id)* - A user has logged out
- *user\_created($user\_id)* - A new user was created, either by using the registration form or in code.
- *user\_registered($user\_id)* - A new user has registered by using the registration form
- *user\_must\_be\_activated($user\_id)* - Called when a new users has been created, but an admin must activate the user
- *user\_must\_be\_validated($user\_id)* - Called whenever a new validation-hash is created, e.g. when a user is created and must be validated or when a user's validation hash was reset (due to hash timeout)
- *user\_reset\_hash\_created($user\_id)* - Called whenever a password reset hash has been created

FAQ
---

[](#faq)

*How can I check if a user is logged in?*
You can check if a user is logged in, by implementing a filter for the pages you need protected. In *Config/Filters.php*, add following to the aliasses: `'auth' 	   => \jellelampaert\ci4_auth\Filters\Auth::class`Next, add a filter for the protected pages, e.g.: `public $filters = [ 'auth' => ['before' => ['admin', 'admin/*']] ];`

###  Health Score

18

—

LowBetter than 8% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community5

Small or concentrated contributor base

Maturity34

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

1592d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/3541955?v=4)[Jelle Lampaert](/maintainers/JelleLampaert)[@jellelampaert](https://github.com/jellelampaert)

---

Tags

Authenticationcodeigniter4

### Embed Badge

![Health badge](/badges/jellelampaert-ci4-auth/health.svg)

```
[![Health](https://phpackages.com/badges/jellelampaert-ci4-auth/health.svg)](https://phpackages.com/packages/jellelampaert-ci4-auth)
```

###  Alternatives

[codeigniter4/shield

Authentication and Authorization for CodeIgniter 4

422436.1k28](/packages/codeigniter4-shield)[agungsugiarto/boilerplate

CodeIgniter4 Boilerplate based on AdminLTE 3 with user management, roles, permissions, ...

1658.0k](/packages/agungsugiarto-boilerplate)[agungsugiarto/codeigniter4-authentication

Provides an API for authentication and includes concrete authentication adapters for common use case scenarios

494.6k2](/packages/agungsugiarto-codeigniter4-authentication)

PHPackages © 2026

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