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.

Maintainers

👁 Spomky

Package info

github.com/Spomky-Labs/pki-framework

Homepage

pkg:composer/spomky-labs/pki-framework

Fund package maintenance!

Spomky

Patreon

Statistics

Installs: 33 902 724

Dependents: 8

Suggesters: 0

Stars: 27

Open Issues: 2

1.4.2 2026-03-23 22:56 UTC

Requires

Requires (Dev)

Suggests

  • ext-bcmath: For better performance (or GMP)
  • ext-gmp: For better performance (or BCMath)
  • ext-openssl: For OpenSSL based cyphering

Provides

None

Conflicts

None

Replaces

None

MIT aa576cbd07128075bef97ac2f8af9854e67513d8

  • Joni Eskelinen <jonieske.woop@gmail.com>
  • Florent Morselli <florent.morselli.woop@spomky-labs.com>

cryptographysignaturersax509x.509asn1asn.1encryptdecryptPrivate Keypublic keyverifypkcscertificatesigncsrpemecDERx690x.690attribute certificateaccertification requestalgorithm identifier


README

Note The code in this framework is the same as the one available in https://github.com/sop, 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 textual encodings of cryptographic structures (PEM).
  • Various ASN.1 types for cryptographic applications.
  • Cryptography support for various PKCS applications.

Requirements

  • PHP >=8.1
  • mbstring

The extension gmp or bcmath is highly recommended

Installation

This library is available on Github.

composer require spomky-labs/pki-framework

License

This project is licensed under the MIT License.