genkgo/php-asn1
Encode and decode arbitrary ASN.1 structures in PHP using ITU-T X.690 (DER/BER). Build or parse X.509/PKI data like CSRs, certificates, and CRLs, manipulate objects, then re-encode. Requires supported PHP plus gmp or bcmath.
web-token/jwt (which lack ASN.1 support).Adopt if:
Look elsewhere if:
web-token/jwt instead).phpasn1/phpasn1).For Executives: "This package eliminates the need to build or maintain custom ASN.1 parsers, reducing technical debt for our PKI/certificate workflows. It’s a drop-in solution for handling X.509 certificates, CSRs, and CRLs—critical for security compliance and legacy system integration. The MIT license and PHP 8.x support ensure long-term viability, while the template parser adds validation safety. Estimated dev time saved: 3–6 months vs. a custom implementation."
For Engineering: *"php-asn1 provides a battle-tested, MIT-licensed library to encode/decode ASN.1 structures (DER/BER) with PHP classes for universal types (Integer, Sequence, OID, etc.). Key benefits:
For Architects: *"This fills a gap in PHP’s security ecosystem by providing a structured way to work with ASN.1 binary data. Ideal for:
How can I help you explore Laravel packages today?