vkoori/pgp 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

vkoori/pgp

最新稳定版本:1.1.0

Composer 安装命令:

composer require vkoori/pgp

包简介

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

关键字:

README 文档

README

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.

统计信息

  • 总下载量: 794
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 1
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 1
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: Unknown
  • 更新时间: 2023-03-23