PHPackages                             vakata/certificate - 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. [Parsing &amp; Serialization](/categories/parsing)
4. /
5. vakata/certificate

ActiveLibrary[Parsing &amp; Serialization](/categories/parsing)

vakata/certificate
==================

Parsing of digital certificates from all Bulgarian vendors

5.14.3(1y ago)16.1k↓78.2%1MITPHPPHP &gt;=7.0CI failing

Since Feb 17Pushed 1y ago2 watchersCompare

[ Source](https://github.com/vakata/certificate)[ Packagist](https://packagist.org/packages/vakata/certificate)[ Docs](https://github.com/vakata/certificate)[ RSS](/packages/vakata-certificate/feed)WikiDiscussions master Synced yesterday

READMEChangelogDependencies (2)Versions (56)Used By (1)

certificate
===========

[](#certificate)

[![Latest Version on Packagist](https://camo.githubusercontent.com/489fcf334a2d08b0d55af299d58c8bfc2556182fa37185ebcd5d01ef9df59929/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f76616b6174612f63657274696669636174652e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/vakata/certificate)[![Software License](https://camo.githubusercontent.com/55c0218c8f8009f06ad4ddae837ddd05301481fcf0dff8e0ed9dadda8780713e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265)](LICENSE.md)[![Build Status](https://camo.githubusercontent.com/5fbf9e5dfad69d7fd68ab02cc0e9817314d052277be8fcf67f79615d0e441b48/68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f76616b6174612f63657274696669636174652f6d61737465722e7376673f7374796c653d666c61742d737175617265)](https://travis-ci.org/vakata/certificate)[![Code Climate](https://camo.githubusercontent.com/d9bb51fbda30d5f91d5ad527343c068148bf8b95e90cccdf01f20088582f98a4/68747470733a2f2f696d672e736869656c64732e696f2f636f6465636c696d6174652f6769746875622f76616b6174612f63657274696669636174652e7376673f7374796c653d666c61742d737175617265)](https://codeclimate.com/github/vakata/certificate)[![Tests Coverage](https://camo.githubusercontent.com/c8f8c4661997987e7a8e43997ef3768a8e7f14fa0f1c6763176ab336db9b6eed/68747470733a2f2f696d672e736869656c64732e696f2f636f6465636c696d6174652f636f7665726167652f6769746875622f76616b6174612f63657274696669636174652e7376673f7374796c653d666c61742d737175617265)](https://codeclimate.com/github/vakata/certificate)

Parsing of digital certificates from all Bulgarian vendors (and all other vendors compatible with [the common EU standard](http://www.etsi.org/deliver/etsi_en/319400_319499/31941201/01.01.00_30/en_31941201v010100v.pdf)).

Install
-------

[](#install)

Via Composer

```
$ composer require vakata/certificate
```

Usage
-----

[](#usage)

```
// parse the certificate from the current request ($_SERVER['SSL_CLIENT_CERT'])
// on Apache this will work if SSLOptions +ExportCertData is set
$cert = \vakata\certificate\Certificate::fromRequest();

// you can then get various information from the certificate
echo $cert->getNaturalPerson()->getID(); // EGN or PID
if ($cert->isProfessional()) {
    echo $cert->getLegalPerson()->getBulstat(); // BULSTAT
}

// you can also create an instance from a x509 string
$certStr = new \vakata\certificate\Certificate("x509 formatted string");
// or using a static method
$certStr = new \vakata\certificate\Certificate::fromString("x509 formatted string");
// or from a file
$certFile = \vakata\certificate\Certificate::fromFile("/path/to/file.crt");
```

Certificates can also be validated (by checking expiration dates, CRLs and validating the certificate signature). Keep in mind signature verification is implemented using the OpenSSL PHP extension.

Read more in the [API docs](docs/README.md)

Testing
-------

[](#testing)

```
$ composer test
```

Contributing
------------

[](#contributing)

Please see [CONTRIBUTING](CONTRIBUTING.md) for details.

Security
--------

[](#security)

If you discover any security related issues, please email  instead of using the issue tracker.

Credits
-------

[](#credits)

- [vakata](https://github.com/vakata)
- [All Contributors](../../contributors)

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

###  Health Score

40

—

FairBetter than 86% of packages

Maintenance39

Infrequent updates — may be unmaintained

Popularity23

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity72

Established project with proven stability

 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 ~60 days

Recently: every ~187 days

Total

55

Last Release

518d ago

Major Versions

1.1.0 → 2.0.02017-06-01

2.6.0 → 3.0.02018-08-27

3.0.0 → 4.0.02018-08-27

4.1.0 → 5.0.02018-12-12

PHP version history (2 changes)1.0.0PHP &gt;=5.4.0

2.0.0PHP &gt;=7.0

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/146052?v=4)[Ivan Bozhanov](/maintainers/vakata)[@vakata](https://github.com/vakata)

---

Top Contributors

[![vakata](https://avatars.githubusercontent.com/u/146052?v=4)](https://github.com/vakata "vakata (86 commits)")

---

Tags

certificatevakata

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/vakata-certificate/health.svg)

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

###  Alternatives

[mck89/peast

Peast is PHP library that generates AST for JavaScript code

19139.2M47](/packages/mck89-peast)[sop/x509

A PHP library for X.509 public key certificates, attribute certificates, certification requests and certification path validation.

45926.4k10](/packages/sop-x509)[sauladam/shipment-tracker

Parses tracking information for several carriers, like UPS, USPS, DHL and GLS by simply scraping the data. No need for any kind of API access.

9843.5k](/packages/sauladam-shipment-tracker)[jstewmc/rtf

Read and write Rich Text Format (RTF) documents with PHP

45153.1k6](/packages/jstewmc-rtf)[tcds-io/php-jackson

A lightweight, flexible object serializer for PHP, inspired by FasterXML/jackson

113.2k10](/packages/tcds-io-php-jackson)

PHPackages © 2026

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