PHPackages                             bitweb/id-card - 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. [Authentication &amp; Authorization](/categories/authentication)
4. /
5. bitweb/id-card

ArchivedLibrary[Authentication &amp; Authorization](/categories/authentication)

bitweb/id-card
==============

BitWeb extension for Estonian ID-Card authentication and signing.

2.0.1(12y ago)285[2 issues](https://github.com/BitWeb/id-card/issues)proprietaryPHPPHP &gt;=5.3.3

Since Mar 8Pushed 11y ago14 watchersCompare

[ Source](https://github.com/BitWeb/id-card)[ Packagist](https://packagist.org/packages/bitweb/id-card)[ Docs](http://bitweb.ee/)[ RSS](/packages/bitweb-id-card/feed)WikiDiscussions master Synced 2mo ago

READMEChangelog (3)Dependencies (4)Versions (4)Used By (0)

id-card
=======

[](#id-card)

[![Build Status](https://camo.githubusercontent.com/dec72bb735591b749d6d79198717574a66b55e6ea457a112288171f771cea4c5/68747470733a2f2f7472617669732d63692e6f72672f4269745765622f69642d636172642e706e673f6272616e63683d6d6173746572)](https://travis-ci.org/BitWeb/id-card)[![Coverage Status](https://camo.githubusercontent.com/f5d11e5cd1393276498864416ecb2864e4d6b1c2f5bc385d0717022d60b53e5e/68747470733a2f2f636f766572616c6c732e696f2f7265706f732f4269745765622f69642d636172642f62616467652e706e673f6272616e63683d6d6173746572)](https://coveralls.io/r/BitWeb/id-card?branch=master)

BitWeb plugin for Id Card authentication ang signing.

### Usage:

[](#usage)

#### Adding lib

[](#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

[](#integrating-with-apache)

##### Add id-card folder into your public folder

[](#add-id-card-folder-into-your-public-folder)

##### The folder should contain index.php with following contents:

[](#the-folder-should-contain-indexphp-with-following-contents)

```
use BitWeb\IdCard\Authentication\IdCardAuthentication;

chdir(dirname(dirname(__DIR__)));

// 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 {
    IdCardAuthentication::login();
}
$headerStr = 'Location: ' . $redirectUrl;

header($headerStr);
```

##### In same folder should exist .htaccess:

[](#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.

[](#now-your-link-in-application-should-point-to-this-indexphp-with-query-parameter-redirecturl)

#### Adding id card support into development environment

[](#adding-id-card-support-into-development-environment)

[http://www.id.ee/public/Configuring\_Apache\_web\_server\_to\_support\_ID.pdf](http://www.id.ee/public/Configuring_Apache_web_server_to_support_ID.pdf)

Happy using

###  Health Score

24

—

LowBetter than 32% of packages

Maintenance0

Infrequent updates — may be unmaintained

Popularity12

Limited adoption so far

Community14

Small or concentrated contributor base

Maturity60

Established project with proven stability

 Bus Factor1

Top contributor holds 87.2% 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 ~26 days

Total

3

Last Release

4393d ago

Major Versions

1.0.1 → 2.0.02014-04-03

### Community

Maintainers

![](https://www.gravatar.com/avatar/ed3aab3128caa0c1b5714b5b220e7e3098665afce1cd5ff0c031c9248b69857d?d=identicon)[tobre](/maintainers/tobre)

---

Top Contributors

[![rammrain](https://avatars.githubusercontent.com/u/4268477?v=4)](https://github.com/rammrain "rammrain (75 commits)")[![Priit87](https://avatars.githubusercontent.com/u/420830?v=4)](https://github.com/Priit87 "Priit87 (6 commits)")[![tobre6](https://avatars.githubusercontent.com/u/1629750?v=4)](https://github.com/tobre6 "tobre6 (5 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/bitweb-id-card/health.svg)

```
[![Health](https://phpackages.com/badges/bitweb-id-card/health.svg)](https://phpackages.com/packages/bitweb-id-card)
```

###  Alternatives

[namshi/jose

JSON Object Signing and Encryption library for PHP.

1.8k99.6M101](/packages/namshi-jose)[league/oauth1-client

OAuth 1.0 Client Library

99698.8M106](/packages/league-oauth1-client)[bezhansalleh/filament-shield

Filament support for `spatie/laravel-permission`.

2.8k2.9M88](/packages/bezhansalleh-filament-shield)[gesdinet/jwt-refresh-token-bundle

Implements a refresh token system over Json Web Tokens in Symfony

70516.4M35](/packages/gesdinet-jwt-refresh-token-bundle)[league/oauth2-google

Google OAuth 2.0 Client Provider for The PHP League OAuth2-Client

41721.2M118](/packages/league-oauth2-google)[illuminate/auth

The Illuminate Auth package.

9327.3M1.0k](/packages/illuminate-auth)

PHPackages © 2026

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