PHPackages                             aetah/jose - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. aetah/jose

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

aetah/jose
==========

Generic PHP library for JOSE and compact JWS processing primitives

0.1.0(1mo ago)0597AGPL-3.0-or-laterPHP ^8.3

Since Jun 21Compare

[ Source](https://github.com/aetah/php-jose)[ Packagist](https://packagist.org/packages/aetah/jose)[ RSS](/packages/aetah-jose/feed)WikiDiscussions Synced 2w ago

READMEChangelogDependencies (3)Versions (2)Used By (0)

Read-Only Split Notice
======================

[](#read-only-split-notice)

This repository is a read-only split of [`aetah/php-openid-toolkit`](https://github.com/aetah/php-openid-toolkit).

- Development happens in the monorepo.
- Feature PRs and issues should be opened against `aetah/php-openid-toolkit`.
- This split repository is published from the monorepo and should not be treated as the source of truth.

JOSE
====

[](#jose)

Generic PHP library for low-level JOSE and compact JWS processing primitives.

Scope
-----

[](#scope)

This package is designed as a reusable base for `aetah/*` libraries and CMS integrations. It provides:

- base64url helpers for JOSE payloads
- compact JWS parsing into typed header/payload/signature data
- signing helpers for `HS*`, `RS*`, and `EdDSA`
- verification helpers for PEM keys, shared secrets, JWKs, and JWKS sets
- RSA JWK to PEM conversion for public-key verification
- duplicate-aware JSON object decoding
- bounded public-RSA JWKS parsing and validation, including public-material, algorithm, key-operation, unique-key-ID, and minimum-strength checks

The package intentionally leaves token profile validation, claim policy, discovery, key persistence, and HTTP endpoint orchestration to host applications.

Install
-------

[](#install)

```
composer require aetah/jose
```

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

[](#quick-start)

```
