PHPackages                             sop/crypto-types - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. sop/crypto-types

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

sop/crypto-types
================

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

0.3.0(6y ago)111.4M↓22.5%4[2 issues](https://github.com/sop/crypto-types/issues)[1 PRs](https://github.com/sop/crypto-types/pulls)20MITPHPPHP &gt;=7.2

Since Jul 14Pushed 4y ago1 watchersCompare

[ Source](https://github.com/sop/crypto-types)[ Packagist](https://packagist.org/packages/sop/crypto-types)[ Docs](https://github.com/sop/crypto-types)[ RSS](/packages/sop-crypto-types/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (3)Versions (8)Used By (20)

CryptoTypes
===========

[](#cryptotypes)

[![Build Status](https://camo.githubusercontent.com/33adf4dcc7bd4ddfa668e97e29adcf98177777d3937133e8880fd588d983dae6/68747470733a2f2f7472617669732d63692e636f6d2f736f702f63727970746f2d74797065732e7376673f6272616e63683d6d6173746572)](https://travis-ci.com/sop/crypto-types)[![Scrutinizer Code Quality](https://camo.githubusercontent.com/2fedb7dcde7086dc6c2f885acf7bb8a80193b20155d94c01c8977c8a66e5c1b5/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f736f702f63727970746f2d74797065732f6261646765732f7175616c6974792d73636f72652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/sop/crypto-types/?branch=master)[![Coverage Status](https://camo.githubusercontent.com/d0b2b1979696bcf2dab6fe56c2338f34db1bcce6b7c51d0e1a7d024c4b7a977f/68747470733a2f2f636f766572616c6c732e696f2f7265706f732f6769746875622f736f702f63727970746f2d74797065732f62616467652e7376673f6272616e63683d6d6173746572)](https://coveralls.io/github/sop/crypto-types?branch=master)[![License](https://camo.githubusercontent.com/d8e304b726fd317c628bd734f99410933c59ebb36d1f660d58eccb71ec01fd82/68747470733a2f2f706f7365722e707567782e6f72672f736f702f63727970746f2d74797065732f6c6963656e7365)](https://github.com/sop/crypto-types/blob/master/LICENSE)

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

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

[](#requirements)

- PHP &gt;=7.2
- gmp
- [sop/asn1](https://github.com/sop/asn1)
- [sop/crypto-encoding](https://github.com/sop/crypto-encoding)
- [sop/x501](https://github.com/sop/x501)

Features
--------

[](#features)

- Asymmetric keys
    - [`RSAPrivateKey`](https://tools.ietf.org/html/rfc2437#section-11.1.2), [`RSAPublicKey`](https://tools.ietf.org/html/rfc2437#section-11.1.1)
    - [`ECPrivateKey`](https://tools.ietf.org/html/rfc5915#section-3), [`ECPublicKey`](https://tools.ietf.org/html/rfc5480#section-2.2)
    - [`PrivateKeyInfo`](https://tools.ietf.org/html/rfc5208#section-5)([PKCS #8](https://tools.ietf.org/html/rfc5208))
    - [`SubjectPublicKeyInfo`](https://tools.ietf.org/html/rfc5280#section-4.1)([X.509](https://tools.ietf.org/html/rfc5280))
- [RSA](https://tools.ietf.org/html/rfc2313#section-10) and [EC](https://tools.ietf.org/html/rfc3278#section-8.2) signature types
- Various `AlgorithmIdentifier` types and their OID's

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

[](#installation)

This library is available on [Packagist](https://packagist.org/packages/sop/crypto-types).

```
composer require sop/crypto-types

```

License
-------

[](#license)

This project is licensed under the MIT License.

###  Health Score

37

—

LowBetter than 83% of packages

Maintenance16

Infrequent updates — may be unmaintained

Popularity47

Moderate usage in the ecosystem

Community22

Small or concentrated contributor base

Maturity53

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% 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 ~135 days

Recently: every ~164 days

Total

6

Last Release

2553d ago

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

0.2.0PHP &gt;=7.0

0.3.0PHP &gt;=7.2

### Community

Maintainers

![](https://www.gravatar.com/avatar/35cf70dd6be68d37fd42490e3ad9c199d2a1f1dd4420f71658998b7d8b694e97?d=identicon)[sop](/maintainers/sop)

---

Top Contributors

[![sop](https://avatars.githubusercontent.com/u/1017000?v=4)](https://github.com/sop "sop (46 commits)")

---

Tags

algorithm-identifierasn1cryptographyecprivate-keypublic-keyrsasignaturecryptographysignaturersaasn1Private Keypublic keyecalgorithm identifier

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/sop-crypto-types/health.svg)

```
[![Health](https://phpackages.com/badges/sop-crypto-types/health.svg)](https://phpackages.com/packages/sop-crypto-types)
```

###  Alternatives

[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)[phpseclib/phpseclib

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

5.6k434.8M1.3k](/packages/phpseclib-phpseclib)[vlucas/pikirasa

PKI public/private RSA key encryption using the OpenSSL extension

104101.1k1](/packages/vlucas-pikirasa)[sop/crypto-encoding

A PHP implementation of textual encodings of cryptographic structures.

161.4M27](/packages/sop-crypto-encoding)[ionux/phactor

Phactor is a high-performance PHP implementation of the elliptic curve math functions required to generate &amp; verify private/public (asymmetric) EC keypairs and ECDSA signatures based on secp256k1 curve parameters. This library also includes a class to generate Service Identification Numbers (SINs) based on the published Identity Protocol v1 spec.

5275.0k30](/packages/ionux-phactor)[asymmetricrypt/asymmetricrypt

A simple PHP public key cryptography library

114.1k](/packages/asymmetricrypt-asymmetricrypt)

PHPackages © 2026

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