New

Just launched: Vueblocks, a brand-new search engine for Vue packages! Explore Vueblocks →

vkoori/pgp

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

Larablocks Analysis

vkoori/pgp works with any PHP project: the latest release (1.1.0, May 19, 2023) doesn't depend on Laravel.

Recommendation checks

Not advised

Not advised: no release or commit in over 2 years.

  • No release or commit in over 2 years
  • No release in the last 12 months (last: May 19, 2023)
  • 0 downloads a month (needs 10,000)
  • 0 GitHub stars (needs 100)

State

Likely abandoned
  • No release or commit in over 2 years.
  • Last stable release: May 19, 2023.
  • No releases in the last 12 months.
  • First released: Mar 23, 2023.
  • 0 open issues on GitHub.

Data from Packagist and GitHub, checked by Larablocks on Dec 1, 2026.

Install
composer require vkoori/pgp
Latest Version:1.1.0
PHP:>=8.1
Last Updated:May 19, 2023
Links: GitHub  ·  Packagist
Maintainer: vkoori

Installation

composer require vkoori/pgp

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.

Related Packages

vkoori/jwt

Integration of adhocore/jwt library for laravel/lumen.

797 0
vkoori/laravel-jwt

Integration of firebase/php-jwt library for laravel.

1,167 0
jwt
tlx3/laravel-jwt-starter

Boilerplate for using your own API based JWT authentication on Laravel applicati...

305 3
epsoftware/jwt-auth

Auth with jwt

28 1
xaamin/jwt

PHP Implementation of JSON Web token with RSA

10,496 2

Version History

Version Released PHP License
1.1.0 >=8.1
1.0.1 >=8.1
1.0.0 >=8.1