PHPackages                             adapik/cms - 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. adapik/cms

ActiveLibrary

adapik/cms
==========

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

0.4.3(5mo ago)147.2k↓37.1%4[1 issues](https://github.com/Adapik/CMS/issues)1MITPHPPHP &gt;=8.0CI passing

Since Jul 13Pushed 5mo ago2 watchersCompare

[ Source](https://github.com/Adapik/CMS)[ Packagist](https://packagist.org/packages/adapik/cms)[ Docs](https://github.com/Adapik/CMS)[ RSS](/packages/adapik-cms/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (10)Dependencies (2)Versions (21)Used By (1)

CMS
===

[](#cms)

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

[![build status](https://github.com/adapik/CMS/actions/workflows/tests.yaml/badge.svg?branch=master)](https://github.com/adapik/CMS/actions/workflows/tests.yaml/badge.svg?branch=master)[![codecov](https://camo.githubusercontent.com/121190343bfc696e77c510911910a02106d94b546cd906cebd1c4d0711f1776b/68747470733a2f2f636f6465636f762e696f2f67682f61646170696b2f434d532f67726170682f62616467652e7376673f746f6b656e3d4f545848595357523547)](https://codecov.io/gh/adapik/CMS)

[![Latest Stable Version](https://camo.githubusercontent.com/58bd5d2ff8a12d8852492d69403b4a8e1e01eaa6d54cf2caafa988004e001d20/68747470733a2f2f706f7365722e707567782e6f72672f41646170696b2f636d732f762f737461626c652e706e67)](https://packagist.org/packages/Adapik/cms)[![Total Downloads](https://camo.githubusercontent.com/a3112a089e7e7893ae18d8d460202ed117dac150bac0b3b60b90ddd357c40e39/68747470733a2f2f706f7365722e707567782e6f72672f41646170696b2f636d732f646f776e6c6f6164732e706e67)](https://packagist.org/packages/Adapik/cms)[![License](https://camo.githubusercontent.com/cdc71821ec88465e7dc52b760cf5b79fefe9139c09b21f0ff1653526e48f6e28/68747470733a2f2f706f7365722e707567782e6f72672f41646170696b2f636d732f6c6963656e73652e706e67)](https://packagist.org/packages/Adapik/cms)

Install
-------

[](#install)

```
composer require adapik/cms

```

About
-----

[](#about)

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

- CMS (according to [RFC3852](https://datatracker.ietf.org/doc/html/rfc3852))
- CAdES (according to [RFC5126](https://datatracker.ietf.org/doc/html/rfc5126))
- x.509 Certificates, CRLs (according to [RFC 5280](https://datatracker.ietf.org/doc/html/rfc5280))
- 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](example)

How to extend
-------------

[](#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
------------------------

[](#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.

###  Health Score

50

—

FairBetter than 96% of packages

Maintenance70

Regular maintenance activity

Popularity33

Limited adoption so far

Community15

Small or concentrated contributor base

Maturity67

Established project with proven stability

 Bus Factor1

Top contributor holds 52.6% 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 ~219 days

Total

15

Last Release

164d ago

PHP version history (3 changes)0.1.0PHP &gt;=7.0

0.2PHP &gt;=7.2

0.4PHP &gt;=8.0

### Community

Maintainers

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

---

Top Contributors

[![Falseclock](https://avatars.githubusercontent.com/u/3299139?v=4)](https://github.com/Falseclock "Falseclock (60 commits)")[![adapik](https://avatars.githubusercontent.com/u/10532067?v=4)](https://github.com/adapik "adapik (54 commits)")

---

Tags

asn1encodingDERx690cmsbinarydecodingberpkcs7cades

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/adapik-cms/health.svg)

```
[![Health](https://phpackages.com/badges/adapik-cms/health.svg)](https://phpackages.com/packages/adapik-cms)
```

###  Alternatives

[falseclock/advanced-cms

A PHP Library that allows you to decode and manipulate CAdES or in other words CMS Advanced Electronic Signatures described in ETSI standart TS 101 733.

223.2k](/packages/falseclock-advanced-cms)[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.

2725.9M11](/packages/spomky-labs-pki-framework)[sop/asn1

A PHP library for X.690 ASN.1 DER encoding and decoding.

601.7M39](/packages/sop-asn1)[freedsx/asn1

An ASN.1 library for PHP.

15216.5k9](/packages/freedsx-asn1)[xobotyi/basen

Text and integers encoding utilities for PHP with no extensions dependencies. Base32, Base58, Base64 and much more!

1219.6k](/packages/xobotyi-basen)

PHPackages © 2026

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