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
Requires
- php: >=7.2
- adapik/phpasn1: ^2.2
Requires (Dev)
- phpunit/phpunit: ^9.5
- satooshi/php-coveralls: ^1.0
README
A PHP Library that allows you to decode ASN.1 CMS using Basic Encoding Rules (BER)
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.