PHPackages                             onza-me/backend\_jwt - 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. onza-me/backend\_jwt

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

onza-me/backend\_jwt
====================

Template of laravel package for DomDa project.

0521PHPCI failing

Since Oct 28Pushed 4y ago2 watchersCompare

[ Source](https://github.com/Onza-Me/backend_jwt)[ Packagist](https://packagist.org/packages/onza-me/backend_jwt)[ RSS](/packages/onza-me-backend-jwt/feed)WikiDiscussions master Synced today

READMEChangelogDependenciesVersions (1)Used By (1)

JWT package
===========

[](#jwt-package)

Generating RSA keys

```
php artisan jwt:rsa:generate

```

By default command will create directory: `storage/app/rsa`, with files `access_token_id_rsa` and `access_token_id_rsa.pub`

`access_token_id_rsa` - Private key

`access_token_id_rsa.pub` - Public key

If you will run command again your old keys will renamed like this: `access_token_id_rsa.1591959685.bak`

Usage
-----

[](#usage)

Generate new AccessToken model

```
// Attributes: token, expires_at, refresh_token
use OnzaMe\JWT\Models\AccessToken;

$accessToken = new AccessToken(['super secret data'], ['test']);

```

Decode data

```
use OnzaMe\JWT\JWT;
use OnzaMe\JWT\RSAKeys;
use OnzaMe\JWT\Services\AccessTokenService;

$service = new AccessTokenService(new JWT(), new RSAKeys());

$mixedData = $service->decode("JWToken");

```

Environment variables
---------------------

[](#environment-variables)

`JWT_TOKEN_EXPIRES_IN` - JWToken life in seconds, Default: `1800`

`JWT_REFRESH_TOKEN_EXPIRES_IN` - JWToken for refresh life time in seconds, Default: `604800`

`JWT_USER_CLASS` - Please set your User class if you wanna use JWTAuth middleware

###  Health Score

17

—

LowBetter than 6% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity28

Early-stage or recently created project

 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.

### Community

Maintainers

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

---

Top Contributors

[![acrossoffwest](https://avatars.githubusercontent.com/u/1808737?v=4)](https://github.com/acrossoffwest "acrossoffwest (25 commits)")

### Embed Badge

![Health badge](/badges/onza-me-backend-jwt/health.svg)

```
[![Health](https://phpackages.com/badges/onza-me-backend-jwt/health.svg)](https://phpackages.com/packages/onza-me-backend-jwt)
```

###  Alternatives

[namshi/jose

JSON Object Signing and Encryption library for PHP.

1.8k99.6M101](/packages/namshi-jose)[league/oauth1-client

OAuth 1.0 Client Library

99698.8M106](/packages/league-oauth1-client)[bezhansalleh/filament-shield

Filament support for `spatie/laravel-permission`.

2.8k2.9M88](/packages/bezhansalleh-filament-shield)[gesdinet/jwt-refresh-token-bundle

Implements a refresh token system over Json Web Tokens in Symfony

70516.4M35](/packages/gesdinet-jwt-refresh-token-bundle)[league/oauth2-google

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

41721.2M118](/packages/league-oauth2-google)[illuminate/auth

The Illuminate Auth package.

9327.3M1.0k](/packages/illuminate-auth)

PHPackages © 2026

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