bitweb/id-card 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

bitweb/id-card

Composer 安装命令:

composer require bitweb/id-card

包简介

BitWeb extension for Estonian ID-Card authentication and signing.

README 文档

README

Build Status Coverage Status

BitWeb plugin for Id Card authentication ang signing.

Usage:

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;

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

http://www.id.ee/public/Configuring_Apache_web_server_to_support_ID.pdf

Happy using

统计信息

  • 总下载量: 85
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 2
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 2
  • Watchers: 10
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: proprietary
  • 更新时间: 2014-03-07

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固