Download the PHP package zhiisland/webman-jwt-lc5 without Composer

On this page you can find all versions of the php package zhiisland/webman-jwt-lc5. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package webman-jwt-lc5

Webman JWT 插件(lcobucci/jwt v5)— 增强版

本插件基于 lcobucci/jwt v5 + lcobucci/clock v3,为 Webman 提供完善、可扩展、可观测的 JWT 认证能力。设计上参考并融合了社区优秀实现(如 yzh52521/webman-jwt-authTinywan/webman-jwt),并拥抱异常(验证错误直接抛出),便于全局统一处理。


目录


特性


快速开始

1) 安装

2) 配置密钥与 guard(编辑 config/plugin/zh/jwt/app.php)

生成 RS256 密钥对:

3) 登录发放

或(静态):

4) 保护路由


安装

Webman 会自动加载 config/plugin/zh/jwt/app.php

克隆到现有项目时请拷贝:


配置详解

关键键位于 config/plugin/zh/jwt/app.php


使用指南

登录颁发

见“快速开始第 3 点”。

保护路由与中间件

示例:

刷新与登出

获取当前用户与 Claims

链式与静态 API

无需显式传 token(自动从请求提取)

提取优先级与键名由配置控制:

JWKS(可选)

开启后导出 RS/PS guard 的公钥,便于其他服务验证签名。

配置:

路由:

要求 guard 配置有 kidpublic_key


高级能力


扩展点


异常一览与错误码映射

建议在全局异常处理中读取 config('plugin.zh.jwt.error_codes'),将异常映射为统一错误码与响应体。


安全建议


迁移指引


版本


All versions of webman-jwt-lc5 with dependencies

PHP Build Version
Package Version
Requires php Version ^8.3
workerman/webman-framework Version ^2.0
lcobucci/jwt Version ^5.0
lcobucci/clock Version ^3.0
webman/redis Version ^2.1
illuminate/events Version ^12.30
ext-openssl Version *
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package zhiisland/webman-jwt-lc5 contains the following files

Loading the files please wait ...