PHPackages                             aamroni/permission - 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. aamroni/permission

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

aamroni/permission
==================

Generating RSA key pairs for microservice authentication in Laravel

v1.0.0(2y ago)028MITPHPPHP &gt;=8.3

Since Apr 9Pushed 2y ago1 watchersCompare

[ Source](https://github.com/md-aamroni/Permission)[ Packagist](https://packagist.org/packages/aamroni/permission)[ RSS](/packages/aamroni-permission/feed)WikiDiscussions master Synced 1mo ago

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

```
   _______    _______   _______   ___      ___   __      ________  ________  __      ______    _____  ___
  |   __ "\  /"     "| /"      \ |"  \    /"  | |" \    /"       )/"       )|" \    /    " \  (\"   \|"  \
  (. |__) :)(: ______)|:        | \   \  //   | ||  |  (:   \___/(:   \___/ ||  |  // ____  \ |.\\   \    |
  |:  ____/  \/    |  |_____/   ) /\\  \/.    | |:  |   \___  \   \___  \   |:  | /  /    ) :)|: \.   \\  |
  (|  /      // ___)_  //      / |: \.        | |.  |    __/  \\   __/  \\  |.  |(: (____/ // |.  \    \. |
 /|__/ \    (:      "||:  __   \ |.  \    /:  | /\  |\  /" \   :) /" \   :) /\  |\\        /  |    \    \ |
(_______)    \_______)|__|  \___)|___|\__/|___|(__\_|_)(_______/ (_______/ (__\_|_)\"_____/    \___|\____\)

```

[![Build Status](https://github.com/md-aamroni/Permission/workflows/tests/badge.svg)](https://github.com/md-aamroni/Permission/actions)[![Total Downloads](https://camo.githubusercontent.com/a261ac3a2bb1df676adf28ca6220c435841e73866686d34d6caa357f256adaa4/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f61616d726f6e692f7065726d697373696f6e)](https://packagist.org/packages/aamroni/permission)[![Latest Stable Version](https://camo.githubusercontent.com/19dd50b70a6947821f3f878706e146f3aeb117e4320bb445d20fb19e62245c6a/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f61616d726f6e692f7065726d697373696f6e)](https://packagist.org/packages/aamroni/permission)[![License](https://camo.githubusercontent.com/49a7c216223987db121b1d67f03c4c9169c9dc92c9e9abef754074df7cc8e382/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f61616d726f6e692f7065726d697373696f6e)](https://packagist.org/packages/aamroni/permission)

Permission
==========

[](#permission)

Generating RSA key pairs for microservice authentication in Laravel

### Composer Install

[](#composer-install)

```
composer require aamroni/permission
```

### Publish Config

[](#publish-config)

```
php artisan vendor:publish --tag=aamroni-permission
```

### Artisan Command

[](#artisan-command)

```
# Create or Update JWT secret
php artisan aamroni:permission-secret

# Create or Update OpenSSL keys
php artisan aamroni:permission-install
```

### Usage Example

[](#usage-example)

```
use Aamroni\Permission\PermissionManager;
use Aamroni\Permission\Facades\Permission;

$object = PermissionManager::instance();
$encode = $object->encode();
$decode = $object->decode(jwtToken: $encode);

// Or using facade

$encode = Permission::encode();
$decode = Permission::decode(jwtToken: $encode);
dd($decode, $encode);
```

###  Health Score

25

—

LowBetter than 37% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity56

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

768d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/802858044d5e6fc5a4a61dc3a1bf663bb23a8ee310750bc4bcba0494fc232ae5?d=identicon)[md-aamroni](/maintainers/md-aamroni)

---

Top Contributors

[![md-aamroni](https://avatars.githubusercontent.com/u/61397934?v=4)](https://github.com/md-aamroni "md-aamroni (3 commits)")

---

Tags

jwt-authenticationjwt-tokenrsa-key-encryptionrsa-signature

###  Code Quality

TestsPest

Code StyleLaravel Pint

### Embed Badge

![Health badge](/badges/aamroni-permission/health.svg)

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

###  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)
