2017 © Pedro Peláez
 

library asn1

An ASN1 encoder / decoder

image

vakata/asn1

An ASN1 encoder / decoder

  • Friday, June 29, 2018
  • by vakata
  • Repository
  • 1 Watchers
  • 9 Stars
  • 652 Installations
  • PHP
  • 1 Dependents
  • 0 Suggesters
  • 1 Forks
  • 0 Open issues
  • 11 Versions
  • 13 % Grown

The README.md

asn1

Latest Version on Packagist ![Software License][ico-license] Build Status Scrutinizer Code Quality ![Code Coverage][ico-scrutinizer], (*1)

Am ASN1 encoder / decoder., (*2)

Install

Via Composer, (*3)

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


## Usage The main part of the library are the `Decoder` and `Encoder` classes. ```php // first create an instance (there is a fromFile static method as well) $decoded = \vakata\asn1\Decoder::fromString("...ASN1 data here ..."); // you can then inspect the parsed raw data $decoded->structure(); // more info $decoded->values(); // just values // or map the data to an existing map $decoded->map($mapArray); // the encoder on the otherhand needs some data and a map \vakata\asn1\Encoder::encode($dataArray, $mapArray);

There are helper classes in the structures namespace - these help with working with common known structures. All the structures have fromString and fromFile static constructor methods, and a toArray method., (*5)

``` php // Timestamp example: \vakata\asn1\structures\TimestampRequest::fromString($tsq)->toArray(); \vakata\asn1\structures\TimestampResponse::fromFile('/path/to/timestamp/response')->toArray(); \vakata\asn1\structures\TimestampRequest::generateFromFile('/path/to/file/to/timestamp'); // You can also work with Certificate, CRL, OCSPRequest, OCSPResponse, P7S, (*6)


Read more in the [API docs](api.md) ## Testing ``` bash $ composer test

Contributing

Please see CONTRIBUTING for details., (*7)

Security

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

Credits

License

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

The Versions

29/06 2018

dev-master

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

An ASN1 encoder / decoder

  Sources   Download

MIT

The Requires

  • php >=5.4.0

 

The Development Requires

asn1 vakata

03/11 2017

1.3.2

1.3.2.0 https://github.com/vakata/asn1

An ASN1 encoder / decoder

  Sources   Download

MIT

The Requires

  • php >=5.4.0

 

The Development Requires

asn1 vakata

02/11 2017

1.3.1

1.3.1.0 https://github.com/vakata/asn1

An ASN1 encoder / decoder

  Sources   Download

MIT

The Requires

  • php >=5.4.0

 

The Development Requires

asn1 vakata

02/11 2017

1.3.0

1.3.0.0 https://github.com/vakata/asn1

An ASN1 encoder / decoder

  Sources   Download

MIT

The Requires

  • php >=5.4.0

 

The Development Requires

asn1 vakata

30/10 2017

1.2.0

1.2.0.0 https://github.com/vakata/asn1

An ASN1 encoder / decoder

  Sources   Download

MIT

The Requires

  • php >=5.4.0

 

The Development Requires

asn1 vakata

20/07 2017

1.1.3

1.1.3.0 https://github.com/vakata/asn1

An ASN1 encoder / decoder

  Sources   Download

MIT

The Requires

  • php >=5.4.0

 

The Development Requires

asn1 vakata

19/07 2017

1.1.2

1.1.2.0 https://github.com/vakata/asn1

An ASN1 encoder / decoder

  Sources   Download

MIT

The Requires

  • php >=5.4.0

 

The Development Requires

asn1 vakata

19/07 2017

1.1.1

1.1.1.0 https://github.com/vakata/asn1

An ASN1 encoder / decoder

  Sources   Download

MIT

The Requires

  • php >=5.4.0

 

The Development Requires

asn1 vakata

18/07 2017

1.1.0

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

An ASN1 encoder / decoder

  Sources   Download

MIT

The Requires

  • php >=5.4.0

 

The Development Requires

asn1 vakata

27/10 2016

1.0.1

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

An ASN1 encoder / decoder

  Sources   Download

MIT

The Requires

  • php >=5.4.0

 

The Development Requires

asn1 vakata

06/03 2016

1.0.0

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

An ASN1 encoder / decoder

  Sources   Download

MIT

The Requires

  • php >=5.4.0

 

The Development Requires

asn1 vakata