BitWeb extension for Estonian ID-Card authentication and signing.

Installs: 64

Dependents: 0

Suggesters: 0

Stars: 2

Watchers: 10

Forks: 0

Open Issues: 2

2.0.1 2014-04-29 14:25 UTC


Build Status Coverage Status

BitWeb plugin for Id Card authentication ang signing.


Adding lib
php composer.phar require bitweb/id-card
# (When asked for a version, type `2.0.*`)

or add following to composer.json

"require": {
  "bitweb/id-card": "2.0.*"
Integrating with apache Add id-card folder into your public folder The folder should contain index.php with following contents:
use BitWeb\IdCard\Authentication\IdCardAuthentication;


// Autoload classes
include 'vendor/autoload.php';
include 'init_autoloader.php';
Zend\Mvc\Application::init(require 'config/application.config.php');

$redirectUrl = urldecode($_GET["redirectUrl"]);

if (!IdCardAuthentication::isSuccessful()) {
    $redirectUrl = '/id-card/no-card-found';
} else {
$headerStr = 'Location: ' . $redirectUrl;

In same folder should exist .htaccess:
SSLVerifyClient require
SSLVerifyDepth 3
Now your link in application should point to this index.php with query parameter redirectUrl. Adding id card support into development environment

Happy using