PHPackages                             bitweb/id-services - 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-services

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

bitweb/id-services
==================

BitWeb extension for Estonian ID-Card and Mobile ID authentication and signing.

2.1.0(7y ago)55.9k5[2 issues](https://github.com/BitWeb/id-services/issues)[1 PRs](https://github.com/BitWeb/id-services/pulls)BSD-3-ClausePHPPHP &gt;=5.6

Since Oct 20Pushed 7y ago15 watchersCompare

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

READMEChangelog (5)Dependencies (7)Versions (5)Used By (0)

id-services
===========

[](#id-services)

[![Build Status](https://camo.githubusercontent.com/0c2edc91dd400521a4d29495117498a63623968427b6ab9e8fc3e50b6cfbdc78/68747470733a2f2f7472617669732d63692e6f72672f4269745765622f69642d73657276696365732e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/BitWeb/id-services)[![Coverage Status](https://camo.githubusercontent.com/6e9342e13d0a7b6472428c405a0a534dd97cd705ede7f8608186d9ca830f72a1/68747470733a2f2f696d672e736869656c64732e696f2f636f766572616c6c732f4269745765622f69642d73657276696365732e737667)](https://coveralls.io/r/BitWeb/id-services?branch=master)

BitWeb plugin for Estonian Id Card and Mobile ID authentication and signing.

**Requires PHP version 5.6 and up.**

### Usage:

[](#usage)

#### Adding lib

[](#adding-lib)

```
php composer.phar require bitweb/id-services
# (When asked for a version, type `1.0.*`)
```

or add following to composer.json

```
"require": {
  "bitweb/id-services": "1.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\IdServices\Authentication\IdCard\Authentication;

// make everything relative to the project root
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 (!Authentication::isSuccessful()) {
    $redirectUrl = '/id-card/no-card-found';
} else {
    Authentication::login();
}
$headerString = 'Location: ' . $redirectUrl;

header($headerString);
```

##### 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

32

—

LowBetter than 72% of packages

Maintenance12

Infrequent updates — may be unmaintained

Popularity25

Limited adoption so far

Community19

Small or concentrated contributor base

Maturity61

Established project with proven stability

 Bus Factor1

Top contributor holds 85.7% 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 ~388 days

Total

5

Last Release

2674d ago

Major Versions

1.0.2 → 2.0.02017-06-02

PHP version history (2 changes)1.0.0PHP &gt;=5.3.3

2.0.0PHP &gt;=5.6

### 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 (108 commits)")[![tobre6](https://avatars.githubusercontent.com/u/1629750?v=4)](https://github.com/tobre6 "tobre6 (7 commits)")[![Priit87](https://avatars.githubusercontent.com/u/420830?v=4)](https://github.com/Priit87 "Priit87 (6 commits)")[![rang501](https://avatars.githubusercontent.com/u/757596?v=4)](https://github.com/rang501 "rang501 (4 commits)")[![MulOnPomm](https://avatars.githubusercontent.com/u/2427073?v=4)](https://github.com/MulOnPomm "MulOnPomm (1 commits)")

---

Tags

signingAuthenticationID Cardmobile-idautentimineallkirjastaminemobiil idmobiilIDID kaart

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

###  Alternatives

[tymon/jwt-auth

JSON Web Token Authentication for Laravel and Lumen

11.5k49.1M350](/packages/tymon-jwt-auth)[league/oauth2-server

A lightweight and powerful OAuth 2.0 authorization and resource server library with support for all the core specification grants. This library will allow you to secure your API with OAuth and allow your applications users to approve apps that want to access their data from your API.

6.6k136.0M248](/packages/league-oauth2-server)[league/oauth2-client

OAuth 2.0 Client Library

3.8k118.6M1.2k](/packages/league-oauth2-client)[google/auth

Google Auth Library for PHP

1.4k272.7M162](/packages/google-auth)[pragmarx/google2fa

A One Time Password Authentication package, compatible with Google Authenticator.

2.0k82.4M164](/packages/pragmarx-google2fa)[paragonie/sodium_compat

Pure PHP implementation of libsodium; uses the PHP extension if it exists

930131.6M155](/packages/paragonie-sodium-compat)

PHPackages © 2026

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