2017 © Pedro Peláez
 

library digidoc

Library to interface with the Estonian national identification platform (DigiDocService)

image

bigbank/digidoc

Library to interface with the Estonian national identification platform (DigiDocService)

  • Thursday, September 1, 2016
  • by bigbank
  • Repository
  • 2 Watchers
  • 3 Stars
  • 5,118 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 3 Forks
  • 0 Open issues
  • 6 Versions
  • 0 % Grown

The README.md

PHP Library for Estonian Digital ID (DigiDocService)

Latest Stable Version on Packagist Software License Build Status Total Downloads, (*1)

This is a PHP library for communicating with the Certification Centre's DigiDocService API. The API is SOAP-based, documentation is available here., (*2)

Install

Via Composer, (*3)

``` bash $ composer require bigbank/digidoc, (*4)


The library requires PHP `>=5.6`, `curl`, `soap`, `xml`, `mbstring` and `openssl` extensions. ## Usage ``` php // Instantiate the main class $digiDoc = new DigiDoc(DigiDoc::URL_TEST); // Ask for a service (see: Services) /** @var AuthenticatorInterface $authenticator */ $authenticator = $digiDoc->getService(AuthenticatorInterface::class); // Start mobile ID authentication $userDetails = $authenticator->authenticate('14212128025', '+37200007', 'Testimine', 'My Test App', false); // Wait for the user to complete the process $authenticator->waitForAuthentication(function ($authResult) { return $authResult === 'USER_AUTHENTICATED' ? 'welcome!' : 'not authenticated'; });

More detailed usage examples are provided in the examples directory., (*5)

To use a HTTP proxy, set HTTP_PROXY environment variable., (*6)

Services

The library provides access to the following services:, (*7)

Authentication With Mobile ID

Authenticate the user with his mobile ID., (*8)

  • Interface Name: AuthenticatorInterface
  • DigiDocService: 7. Queries and Responses for Authentication / 7.1 MobileAuthenticate

Usage

See examples/mobile/authentication.php., (*9)

Digital Signature With Mobile ID

Allow users to digitally sign files using mobile ID., (*10)

  • Interface Name: FileSignerInterface
  • DigiDocService: 8. Queries and Responses for Digital Signature

Usage

See examples/mobile/signing.php., (*11)

Change log

Please see CHANGELOG for more information what has changed recently., (*12)

Testing

bash $ composer test, (*13)

Known Issues

  • Challenge verification is not done for authentication queries (see Challenge and SPChallenge parameters for MobileAuthenticate query). This is planned in future versions.

Contributing

Please see CONTRIBUTING and CONDUCT for details., (*14)

Security

If you discover any security related issues, please email :author_email instead of using the issue tracker., (*15)

Credits

License

The Apache 2 License. Please see License File for more information., (*16)

The Versions

01/09 2016

dev-master

9999999-dev

Library to interface with the Estonian national identification platform (DigiDocService)

  Sources   Download

Apache-2.0

The Requires

 

The Development Requires

01/09 2016

dev-develop

dev-develop

Library to interface with the Estonian national identification platform (DigiDocService)

  Sources   Download

Apache-2.0

The Requires

 

The Development Requires

01/09 2016

0.3.1

0.3.1.0

Library to interface with the Estonian national identification platform (DigiDocService)

  Sources   Download

Apache-2.0

The Requires

 

The Development Requires

29/08 2016

0.3.0

0.3.0.0

Library to interface with the Estonian national identification platform (DigiDocService)

  Sources   Download

Apache-2.0

The Requires

 

The Development Requires

02/02 2016

0.2.0

0.2.0.0

Library to interface with the Estonian national identification platform (DigiDocService)

  Sources   Download

Apache-2.0

The Requires

 

The Development Requires

04/11 2015

0.1.0

0.1.0.0

Library to interface with the Estonian national identification platform

  Sources   Download

Apache-2.0

The Requires

 

The Development Requires