PHPackages                             nyra/sd-jwt - 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. nyra/sd-jwt

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

nyra/sd-jwt
===========

Selective Disclosure for JWTs (SD-JWT) issuer, holder, and verifier tooling

1.0.0-alpha.2(8mo ago)01MITPHPPHP ^8.2

Since Sep 19Pushed 8mo agoCompare

[ Source](https://github.com/nyra-dev/sd-jwt)[ Packagist](https://packagist.org/packages/nyra/sd-jwt)[ RSS](/packages/nyra-sd-jwt/feed)WikiDiscussions main Synced 1mo ago

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

SD-JWT (Selective Disclosure JWT) for PHP
=========================================

[](#sd-jwt-selective-disclosure-jwt-for-php)

A robust PHP library for handling **Selective Disclosure JSON Web Tokens (SD-JWT)**. SD-JWT allows users to selectively reveal claims within a JWT, helping to preserve privacy and minimize data sharing in authentication, credentials, and digital identity workflows.

Features
--------

[](#features)

- **Selective Disclosure**: Reveal only required claims.
- **Privacy-Preserving**: Share credentials with minimal data exposure.
- **Full SD-JWT Flow**: Issue, hold, present, and verify tokens.
- **PSR &amp; Modern PHP**: Strict types, exceptions, and enums.
- **Extensible**: Works with custom JWT signers and verifiers.
- **Well-Documented**: Clear API and example usage.

Installation
------------

[](#installation)

```
composer require nyra/sd-jwt
```

Quick Start
-----------

[](#quick-start)

### 1. Issuing an SD-JWT

[](#1-issuing-an-sd-jwt)

```
