PHPackages                             kuma-guy/jwt-auth-module - 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. kuma-guy/jwt-auth-module

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

kuma-guy/jwt-auth-module
========================

JWT authentication module for BEAR.Sunday

1.0.0(9y ago)5261MITPHPPHP &gt;=7.0.0

Since Sep 26Pushed 7y ago1 watchersCompare

[ Source](https://github.com/kuma-guy/BEAR.JwtAuthModule)[ Packagist](https://packagist.org/packages/kuma-guy/jwt-auth-module)[ RSS](/packages/kuma-guy-jwt-auth-module/feed)WikiDiscussions master Synced 2mo ago

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

BEAR.JwtAuthModule
==================

[](#bearjwtauthmodule)

[![Build Status](https://camo.githubusercontent.com/65df86d094db75c417a45e43af077d7c9cddbfc96cdb70562718913b8a207011/68747470733a2f2f7472617669732d63692e6f72672f6b756d612d6775792f424541522e4a7774417574684d6f64756c652e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/kuma-guy/BEAR.JwtAuthModule) [![Scrutinizer Code Quality](https://camo.githubusercontent.com/b4f7f94b96e499414626dd3ffb0044ad618ade329ab01d85e4de870dcce3d558/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f6b756d612d6775792f424541522e4a7774417574684d6f64756c652f6261646765732f7175616c6974792d73636f72652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/kuma-guy/BEAR.JwtAuthModule/?branch=master)

JSON Web Token Authentication for BEAR.Sunday

Installation
------------

[](#installation)

### Composer install

[](#composer-install)

```
$ composer require kuma-guy/jwt-auth-module

```

### Module install

[](#module-install)

This package contains two modules for installing JSON Web Token Authentication.

#### Symmetric way

[](#symmetric-way)

```
use Ray\Di\AbstractModule;
use BEAR\JwtAuth\Auth\Auth;
use BEAR\JwtAuth\SymmetricJwtAuthModule;

class AppModule extends AbstractModule
{
    protected function configure()
    {
        $this->install(new SymmetricJwtAuthModule('symmetric algorithm', 'token time-to-live', 'secret'));
        $this->bind(Auth::class)->toProvider(AuthProvider::class)->in(Scope::SINGLETON);
    }
}
```

#### Asymmetric way

[](#asymmetric-way)

```
use Ray\Di\AbstractModule;
use BEAR\JwtAuth\Auth\Auth;
use BEAR\JwtAuth\AsymmetricJwtAuthModule;

class AppModule extends AbstractModule
{
    protected function configure()
    {
        $this->install(new AsymmetricJwtAuthModule('asymmetric algorithm', 'token time-to-live', 'private key', 'public key', 'pass phrase'));
        $this->bind(Auth::class)->toProvider(AuthProvider::class)->in(Scope::SINGLETON);
    }
}
```

### Authentication

[](#authentication)

your user is injected by auth provider, you need to add this line in your resource class

```
use AuthInject;

```

###  Health Score

28

—

LowBetter than 54% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity16

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity58

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

3516d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/3edf42babdb017f2ec023b6cad24e3db1eacf0941bf97ea10bbd32978c3dd8be?d=identicon)[shingo-kumagai](/maintainers/shingo-kumagai)

---

Top Contributors

[![kuma-guy](https://avatars.githubusercontent.com/u/7978290?v=4)](https://github.com/kuma-guy "kuma-guy (25 commits)")

---

Tags

bearjwt-authenticationjwtBEAR.Sunday

###  Code Quality

TestsPHPUnit

Code StylePHP\_CodeSniffer

### Embed Badge

![Health badge](/badges/kuma-guy-jwt-auth-module/health.svg)

```
[![Health](https://phpackages.com/badges/kuma-guy-jwt-auth-module/health.svg)](https://phpackages.com/packages/kuma-guy-jwt-auth-module)
```

###  Alternatives

[php-open-source-saver/jwt-auth

JSON Web Token Authentication for Laravel and Lumen

8359.8M53](/packages/php-open-source-saver-jwt-auth)

PHPackages © 2026

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