PHPackages                             spomky-labs/pki-framework - 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. [Framework](/categories/framework)
4. /
5. spomky-labs/pki-framework

ActiveLibrary[Framework](/categories/framework)

spomky-labs/pki-framework
=========================

A PHP framework for managing Public Key Infrastructures. It comprises X.509 public key certificates, attribute certificates, certification requests and certification path validation.

1.4.2(1mo ago)2725.9M—7.8%5[1 PRs](https://github.com/Spomky-Labs/pki-framework/pulls)8MITPHPPHP &gt;=8.1CI passing

Since Aug 22Pushed 1mo ago1 watchersCompare

[ Source](https://github.com/Spomky-Labs/pki-framework)[ Packagist](https://packagist.org/packages/spomky-labs/pki-framework)[ Docs](https://github.com/spomky-labs/pki-framework)[ GitHub Sponsors](https://github.com/Spomky)[ Patreon](https://www.patreon.com/FlorentMorselli)[ RSS](/packages/spomky-labs-pki-framework/feed)WikiDiscussions 1.5.x Synced 1mo ago

READMEChangelog (10)Dependencies (31)Versions (22)Used By (8)

Public Key Infrastructure
=========================

[](#public-key-infrastructure)

> **Note**The code in this framework is the same as the one available in , but modified to fulfil with the Spomky-Labs requirements. All credits go to the original developer

A PHP Framework

- X.509 public key certificates, attribute certificates,
- X.690 Abstract Syntax Notation One (ASN.1) Distinguished Encoding Rules (DER) encoding and decoding
- X.501 ASN.1 types, X.520 attributes and DN parsing.
- [RFC 7468](https://tools.ietf.org/html/rfc7468) textual encodings of cryptographic structures *(PEM)*.
- Various ASN.1 types for cryptographic applications.
- Cryptography support for various PKCS applications.

Requirements
------------

[](#requirements)

- PHP &gt;=8.1
- `mbstring`

The extension `gmp` or `bcmath` is highly recommended

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

[](#installation)

This library is available on [Github](https://github.com/Spomky-Labs/pki-framework).

```
composer require spomky-labs/pki-framework
```

License
-------

[](#license)

This project is licensed under the MIT License.

###  Health Score

64

—

FairBetter than 99% of packages

Maintenance90

Actively maintained with recent releases

Popularity60

Solid adoption and visibility

Community24

Small or concentrated contributor base

Maturity65

Established project with proven stability

 Bus Factor1

Top contributor holds 78.8% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~77 days

Recently: every ~38 days

Total

18

Last Release

56d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/ccc6c59de7d9ddc53219653bc58f1e082ef83d96632d233eedc0b7097cf80ea3?d=identicon)[Spomky](/maintainers/Spomky)

---

Top Contributors

[![Spomky](https://avatars.githubusercontent.com/u/1091072?v=4)](https://github.com/Spomky "Spomky (104 commits)")[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (24 commits)")[![emteknetnz](https://avatars.githubusercontent.com/u/4809037?v=4)](https://github.com/emteknetnz "emteknetnz (1 commits)")[![pmeulen](https://avatars.githubusercontent.com/u/1485300?v=4)](https://github.com/pmeulen "pmeulen (1 commits)")[![stof](https://avatars.githubusercontent.com/u/439401?v=4)](https://github.com/stof "stof (1 commits)")[![zll600](https://avatars.githubusercontent.com/u/71714656?v=4)](https://github.com/zll600 "zll600 (1 commits)")

---

Tags

cryptographysignaturersax509asn1encryptdecryptPrivate Keypublic keyverifypkcscertificatesigncsrpemecDERx690attribute certificateaccertification requestalgorithm identifier

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan, Rector

Code StyleECS

Type Coverage Yes

### Embed Badge

![Health badge](/badges/spomky-labs-pki-framework/health.svg)

```
[![Health](https://phpackages.com/badges/spomky-labs-pki-framework/health.svg)](https://phpackages.com/packages/spomky-labs-pki-framework)
```

###  Alternatives

[phpseclib/phpseclib

PHP Secure Communications Library - Pure-PHP implementations of RSA, AES, SSH2, SFTP, X.509 etc.

5.6k434.8M1.3k](/packages/phpseclib-phpseclib)[sop/crypto-types

A PHP library of various ASN.1 types for cryptographic applications.

111.4M33](/packages/sop-crypto-types)[sop/x509

A PHP library for X.509 public key certificates, attribute certificates, certification requests and certification path validation.

45884.0k10](/packages/sop-x509)[kelunik/certificate

Access certificate details and transform between different formats.

11038.3M8](/packages/kelunik-certificate)[acmephp/acmephp

Let's Encrypt client written in PHP

649155.1k](/packages/acmephp-acmephp)[sop/crypto-encoding

A PHP implementation of textual encodings of cryptographic structures.

161.4M27](/packages/sop-crypto-encoding)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
