PHPackages                             srvkit/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. srvkit/auth

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

srvkit/auth
===========

An advance and flexible authentication package for codeigniter 4+

v1.1.4(9mo ago)112[1 issues](https://github.com/rahulsharmagg/srvkit-auth/issues)MITPHP

Since Jul 14Pushed 9mo agoCompare

[ Source](https://github.com/rahulsharmagg/srvkit-auth)[ Packagist](https://packagist.org/packages/srvkit/auth)[ RSS](/packages/srvkit-auth/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (1)Dependencies (4)Versions (8)Used By (0)

Srvkit Auth
===========

[](#srvkit-auth)

[![Latest Version](https://camo.githubusercontent.com/17c13100d94e4297c3fc3f4b4c48f3006b51595ca1de1b96776ba774b09feda1/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f762f72656c656173652f726168756c736861726d6167672f7372766b69742d617574683f6c6162656c3d76657273696f6e)](https://camo.githubusercontent.com/17c13100d94e4297c3fc3f4b4c48f3006b51595ca1de1b96776ba774b09feda1/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f762f72656c656173652f726168756c736861726d6167672f7372766b69742d617574683f6c6162656c3d76657273696f6e)[![CI4 Compatibility](https://camo.githubusercontent.com/4a6947ee2eaf8e8095f1c3636cfe49d115b91685c2706d75cb5e7bac5d6d4455/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f436f646549676e69746572342d253545342e342d626c75653f6c6f676f3d636f646569676e69746572)](https://camo.githubusercontent.com/4a6947ee2eaf8e8095f1c3636cfe49d115b91685c2706d75cb5e7bac5d6d4455/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f436f646549676e69746572342d253545342e342d626c75653f6c6f676f3d636f646569676e69746572)[![License: MIT](https://camo.githubusercontent.com/c9976f14039bee981f255ff250600a1e78489f3c6e442422638ffe9b6e016af2/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f4c6963656e73652d4d49542d6f72616e67652e737667)](https://opensource.org/licenses/MIT)[![Issues](https://camo.githubusercontent.com/f71eea0e301cbbf32a4b90eaabc819e9003581d16b03ce5106d7fd49638722c4/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6973737565732f726168756c736861726d6167672f7372766b69742d61757468)](https://camo.githubusercontent.com/f71eea0e301cbbf32a4b90eaabc819e9003581d16b03ce5106d7fd49638722c4/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6973737565732f726168756c736861726d6167672f7372766b69742d61757468)[![Stars](https://camo.githubusercontent.com/a4ee4589c96edbb5cebe862b95b21a03b1d518a9330eaa5b56c89d54e98b97c6/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f73746172732f726168756c736861726d6167672f7372766b69742d617574683f7374796c653d736f6369616c)](https://camo.githubusercontent.com/a4ee4589c96edbb5cebe862b95b21a03b1d518a9330eaa5b56c89d54e98b97c6/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f73746172732f726168756c736861726d6167672f7372766b69742d617574683f7374796c653d736f6369616c)

**Srvkit Auth** is a plug-and-play authentication system for CodeIgniter 4, designed to be developer-friendly, cleanly structured, and easy to extend.
It supports login, registration, password reset, token-based auth, and is flexible enough for JWT or session-based use.

---

✨ Features
----------

[](#-features)

- 🚀 Simple &amp; **advance** plug-in for CI4 (Composer-ready)
- 🔐 Login / Register / Forgot Password / Reset Password
- 🔁 Refresh token + Access token logic
- 📱 Multi-device refresh token handling
- 🪪 JWT and opaque token support
- 📩 Magic Link support (Forgot Password, Email Login)
- 🧱 Modular: Easily extensible via services, traits, and config
- 🌗 API and web (form) both supported

---

📦 Installation
--------------

[](#-installation)

1. Insall by composer:

```
composer require srvkit/auth
```

2. Publish config and views:

```
php spark auth:setup
```

3. Run migrations:

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

###  Health Score

25

—

LowBetter than 37% of packages

Maintenance38

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity41

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

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

Every ~7 days

Total

6

Last Release

273d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/09e79243df0a2cc8bd79e7b545031ee81f9d357ab197c6d46376f4ae4d5185f0?d=identicon)[srvkit](/maintainers/srvkit)

---

Top Contributors

[![rahulsharmagg](https://avatars.githubusercontent.com/u/36887105?v=4)](https://github.com/rahulsharmagg "rahulsharmagg (42 commits)")

###  Code Quality

TestsPHPUnit

Static AnalysisPsalm

Type Coverage Yes

### Embed Badge

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

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

###  Alternatives

[google/auth

Google Auth Library for PHP

1.4k272.7M162](/packages/google-auth)[thenetworg/oauth2-azure

Azure Active Directory OAuth 2.0 Client Provider for The PHP League OAuth2-Client

2509.6M48](/packages/thenetworg-oauth2-azure)[stevenmaguire/oauth2-keycloak

Keycloak OAuth 2.0 Client Provider for The PHP League OAuth2-Client

2275.9M27](/packages/stevenmaguire-oauth2-keycloak)[robsontenorio/laravel-keycloak-guard

🔑 Simple Keycloak Guard for Laravel

5161.1M3](/packages/robsontenorio-laravel-keycloak-guard)[patrickbussmann/oauth2-apple

Sign in with Apple OAuth 2.0 Client Provider for The PHP League OAuth2-Client

1132.5M6](/packages/patrickbussmann-oauth2-apple)[wp-graphql/wp-graphql-jwt-authentication

JWT Authentication for WPGraphQL

361118.4k1](/packages/wp-graphql-wp-graphql-jwt-authentication)

PHPackages © 2026

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