2017 © Pedro Peláez
 

library certificate

Parsing of digital certificates from all Bulgarian vendors

image

vakata/certificate

Parsing of digital certificates from all Bulgarian vendors

  • Thursday, March 1, 2018
  • by vakata
  • Repository
  • 2 Watchers
  • 0 Stars
  • 608 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 17 Versions
  • 13 % Grown

The README.md

certificate

Latest Version on Packagist ![Software License][ico-license] Build Status Code Climate ![Tests Coverage][ico-cc-coverage], (*1)

Parsing of digital certificates from all Bulgarian vendors (and all other vendors compatible with the common EU standard)., (*2)

Install

Via Composer, (*3)

``` bash $ composer require vakata/certificate, (*4)


## Usage ``` php // 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., (*5)

Read more in the API docs, (*6)

Testing

bash $ composer test, (*7)

Contributing

Please see CONTRIBUTING for details., (*8)

Security

If you discover any security related issues, please email github@vakata.com instead of using the issue tracker., (*9)

Credits

License

The MIT License (MIT). Please see License File for more information., (*10)

The Versions

01/03 2018

dev-master

9999999-dev https://github.com/vakata/certificate

Parsing of digital certificates from all Bulgarian vendors

  Sources   Download

MIT

The Requires

 

The Development Requires

certificate vakata

01/03 2018

2.5.2

2.5.2.0 https://github.com/vakata/certificate

Parsing of digital certificates from all Bulgarian vendors

  Sources   Download

MIT

The Requires

 

The Development Requires

certificate vakata

15/11 2017

2.5.1

2.5.1.0 https://github.com/vakata/certificate

Parsing of digital certificates from all Bulgarian vendors

  Sources   Download

MIT

The Requires

 

The Development Requires

certificate vakata

03/11 2017

2.5.0

2.5.0.0 https://github.com/vakata/certificate

Parsing of digital certificates from all Bulgarian vendors

  Sources   Download

MIT

The Requires

 

The Development Requires

certificate vakata

02/11 2017

2.4.1

2.4.1.0 https://github.com/vakata/certificate

Parsing of digital certificates from all Bulgarian vendors

  Sources   Download

MIT

The Requires

 

The Development Requires

certificate vakata

02/11 2017

2.4.0

2.4.0.0 https://github.com/vakata/certificate

Parsing of digital certificates from all Bulgarian vendors

  Sources   Download

MIT

The Requires

 

The Development Requires

certificate vakata

30/10 2017

2.3.1

2.3.1.0 https://github.com/vakata/certificate

Parsing of digital certificates from all Bulgarian vendors

  Sources   Download

MIT

The Requires

 

The Development Requires

certificate vakata

29/10 2017

2.3.0

2.3.0.0 https://github.com/vakata/certificate

Parsing of digital certificates from all Bulgarian vendors

  Sources   Download

MIT

The Requires

 

The Development Requires

certificate vakata

20/07 2017

2.2.0

2.2.0.0 https://github.com/vakata/certificate

Parsing of digital certificates from all Bulgarian vendors

  Sources   Download

MIT

The Requires

 

The Development Requires

certificate vakata

19/07 2017

2.1.1

2.1.1.0 https://github.com/vakata/certificate

Parsing of digital certificates from all Bulgarian vendors

  Sources   Download

MIT

The Requires

 

The Development Requires

certificate vakata

19/07 2017

2.1.0

2.1.0.0 https://github.com/vakata/certificate

Parsing of digital certificates from all Bulgarian vendors

  Sources   Download

MIT

The Requires

 

The Development Requires

certificate vakata

01/06 2017

2.0.0

2.0.0.0 https://github.com/vakata/certificate

Parsing of digital certificates from all Bulgarian vendors

  Sources   Download

MIT

The Requires

  • php >=7.0

 

The Development Requires

certificate vakata

09/11 2016

1.1.0

1.1.0.0 https://github.com/vakata/certificate

Parsing of digital certificates from all Bulgarian vendors

  Sources   Download

MIT

The Requires

  • php >=5.4.0

 

The Development Requires

certificate vakata

28/10 2016

1.0.3

1.0.3.0 https://github.com/vakata/certificate

Parsing of digital certificates from all Bulgarian vendors

  Sources   Download

MIT

The Requires

  • php >=5.4.0

 

The Development Requires

certificate vakata

27/10 2016

1.0.2

1.0.2.0 https://github.com/vakata/certificate

Parsing of digital certificates from all Bulgarian vendors

  Sources   Download

MIT

The Requires

  • php >=5.4.0

 

The Development Requires

certificate vakata

18/02 2016

1.0.1

1.0.1.0 https://github.com/vakata/certificate

Parsing of digital certificates from all Bulgarian vendors

  Sources   Download

MIT

The Requires

  • php >=5.4.0

 

The Development Requires

certificate vakata

17/02 2016

1.0.0

1.0.0.0 https://github.com/vakata/certificate

Parsing of digital certificates from all Bulgarian vendors

  Sources   Download

MIT

The Requires

  • php >=5.4.0

 

The Development Requires

certificate vakata