PHPackages                             anwarqasem/ci\_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. anwarqasem/ci\_auth

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

anwarqasem/ci\_auth
===================

Simple CI Auth

1.0.0(4y ago)038MITPHP

Since Jan 11Pushed 4y ago1 watchersCompare

[ Source](https://github.com/AnwarQasem/ciauth)[ Packagist](https://packagist.org/packages/anwarqasem/ci_auth)[ RSS](/packages/anwarqasem-ci-auth/feed)WikiDiscussions main Synced 2d ago

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

CiAuth
======

[](#ciauth)

Because the library is in development mode if you want to install it add in your composer.json:

```
composer config minimum-stability dev
```

after `composer request anwarqasem/ci_auth`

Instalation &amp; Configuration
-------------------------------

[](#instalation--configuration)

### JWT Token Settings

[](#jwt-token-settings)

Add in you `.env` file:

```
#--------------------------------------------------------------------
# JWT Token
#--------------------------------------------------------------------
JWT_SECRET=
JWT_ISS=
JWT_AUD=
JWT_SUB=
JWT_EXP=
```

`JWD_EXP` in hours. Eg: `JWT_EXP=5`

### Filters `app/Config/Filters.php`

[](#filters-appconfigfiltersphp)

Find `$aliases` array and add `'is_logged_in' => AuthLibrary::class,`. On a new CI installation it should looks something like this:

```
 public $aliases = [
        'csrf'     => CSRF::class,
        'toolbar'  => DebugToolbar::class,
        'honeypot' => Honeypot::class,
        'is_logged_in' => AuthLibrary::class,
    ];

```

Find `$globals` array and add `'is_logged_in' => [ 'except' => [ '/', 'auth/*' ] ],`. On a new CI installation it should looks something like this:

```
public $globals = [
        'before' => [
            // 'honeypot',
            // 'csrf',
            'is_logged_in' => [
                'except' => [
                    '/',
                    'auth/*'
                ]
            ]
        ],
        'after' => [
            // 'toolbar',
            // 'honeypot',
        ],
    ];

```

Usage
-----

[](#usage)

###  Health Score

23

—

LowBetter than 27% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity49

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

Unknown

Total

1

Last Release

1582d ago

### Community

Maintainers

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

---

Top Contributors

[![AnwarQasem](https://avatars.githubusercontent.com/u/3440041?v=4)](https://github.com/AnwarQasem "AnwarQasem (1 commits)")

### Embed Badge

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

```
[![Health](https://phpackages.com/badges/anwarqasem-ci-auth/health.svg)](https://phpackages.com/packages/anwarqasem-ci-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)
