adapik/cms

A PHP Library that allows you to decode ASN.1 CMS using Basic Encoding Rules (BER).

0.3 2023-07-28 07:12 UTC

This package is auto-updated.

Last update: 2024-11-30 02:08:17 UTC


README

A PHP Library that allows you to decode ASN.1 CMS using Basic Encoding Rules (BER)

Coverage Status

Latest Stable Version Total Downloads Latest Unstable Version License

Install

composer require adapik/cms

About

This package allow to convert common cryptographic structures from binary ASN.1 format to PHP Objects.

  • CMS (according to RFC3852)
  • CAdES (according to RFC5126)
  • x.509 Certificates, CRLs (according to RFC 5280)
  • etc.

This is a pure PHP library and does not require any cryptographic extensions (like ext-openssl) to be installed.

You can find examples, how to use this library here

How to extend

You can create your own Map (see examples under Adapik\CMS\Maps namespace) and Object (see examples under Adapik\CMS namespace) and decode any ASN.1 structure.

What this package is not

It's not a tool to create or validate CMS or CAdES, but you can build your own tool, using objects from this library.