PHPackages                             vkoori/pgp - 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. vkoori/pgp

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

vkoori/pgp
==========

This package is used for communication between laravel/lumen services.

1.1.0(2y ago)0794PHPPHP &gt;=8.1

Since Mar 23Pushed 2y ago1 watchersCompare

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

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

Installation
============

[](#installation)

```
composer require vkoori/pgp
```

Setting
=======

[](#setting)

You need to add the following to the env file:

```
JWT_BLACK_LIST=false
JWT_KEY=secret
JWT_ALGO=HS256
JWT_MAX_AGE=3600
JWT_LEEWAY=0

```

When you want to send a request to a service, set the received value in the request header according to the following code:

```
\Kooriv\PGP\Send::header(payload:['key' => 'value']);

```

If you are the recipient of the request, use the following middleware to validate the received request:

```
\Kooriv\PGP\Middlewares\JWT::class

```

If you are the recipient of the request and want to recognize the sender of the request, use the following code:

```
\Kooriv\PGP\Receive::serviceName();

```

If you are the recipient of the request and want to get all/specific payload, use the following code:

```
\Kooriv\PGP\Receive::payload();
\Kooriv\PGP\Receive::payload('key');

```

> **Warning**
>
> When sending a request, the `APP_NAME` value is sent in the payload. So make sure the `.env` file values are correct.

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity13

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity55

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 ~28 days

Total

3

Last Release

1093d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/87c1574170082a3c779cca97f90846e478dcc46114fc66480fbd04975b71a746?d=identicon)[vkoori](/maintainers/vkoori)

---

Top Contributors

[![vkoori](https://avatars.githubusercontent.com/u/9253797?v=4)](https://github.com/vkoori "vkoori (7 commits)")

---

Tags

jwtPGP

### Embed Badge

![Health badge](/badges/vkoori-pgp/health.svg)

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

###  Alternatives

[firebase/php-jwt

A simple library to encode and decode JSON Web Tokens (JWT) in PHP. Should conform to the current spec.

9.8k445.7M2.1k](/packages/firebase-php-jwt)[lcobucci/jwt

A simple library to work with JSON Web Token and JSON Web Signature

7.5k316.6M895](/packages/lcobucci-jwt)[tymon/jwt-auth

JSON Web Token Authentication for Laravel and Lumen

11.5k49.1M350](/packages/tymon-jwt-auth)[namshi/jose

JSON Object Signing and Encryption library for PHP.

1.8k99.6M101](/packages/namshi-jose)[web-token/jwt-framework

JSON Object Signing and Encryption library for PHP and Symfony Bundle.

94518.9M77](/packages/web-token-jwt-framework)[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)
