2017 © Pedro Peláez
 

library php-digidoc

A library for signing & verifying documents using estonian id card

image

kgilden/php-digidoc

A library for signing & verifying documents using estonian id card

  • Saturday, December 27, 2014
  • by kgilden
  • Repository
  • 4 Watchers
  • 8 Stars
  • 1,018 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 5 Forks
  • 1 Open issues
  • 7 Versions
  • 7 % Grown

The README.md

PHP DigiDoc

Build Status, (*1)

PHP DigiDoc is a PHP library for digitally signing and verifying digital signatures using estonian id cards., (*2)

Usage

<?php

use KG\DigiDoc\Api;
use KG\DigiDoc\Client;

// This file is generated by Composer
require_once 'vendor/autoload.php';

$api = new Api(new Client());

// First off, let's create a new envelope.
$envelope = $api->create();

// Add the files you want to get signed.
$envelope->addFile('/path/to/file.txt');
$envelope->addFile('/second/path/to/file.md');

// Add a signature or two. Signature takes in certificate id and certificate
// signature. You must retrieve these from the client using the browser plugin.
$envelope->addSignature($signature = new Signature('F1..20', '8F..C0'));

// Sync up with the server. For example, the previous signature is given
// a challenge, which the client must solve.
$api->update($envelope);

printf("Challenge: %s\n", $signature->getChallenge());

// Set the solution for the given signature. This is computed by the borwser
// plugin.
$signature->setSolution('F6..00');

// Sync up with the server once more to send the solution.
$api->update($envelope);

// Time to write it on the disc.
$api->write('/tmp/my-newly-created-envelope.bdoc');

// Make sure to "close" the envelope (basically closes the session in the
// remote DigiDoc service).
$api->close($envelope);

Installation

Install using Composer as kgilden/php-digidoc., (*3)

Requirements

  • PHP >= 5.3.8
  • (php-soap, if you're on a Debian based distro)

Contributing

See CONTRIBUTING.md file., (*4)

Running the Tests

It's as simple as running phpunit., (*5)

License

PHP DigiDoc is released under the MIT License. See the bundled LICENSE file for details., (*6)

The Versions

27/12 2014

dev-master

9999999-dev https://github.com/kgilden/php-digidoc

A library for signing & verifying documents using estonian id card

  Sources   Download

MIT

The Requires

 

The Development Requires

id-card digidoc

27/12 2014

dev-5-verify-ocsp-responses

dev-5-verify-ocsp-responses https://github.com/kgilden/php-digidoc

A library for signing & verifying documents using estonian id card

  Sources   Download

MIT

The Requires

 

The Development Requires

id-card digidoc

26/12 2014

dev-ocsp

dev-ocsp https://github.com/kgilden/php-digidoc

A library for signing & verifying documents using estonian id card

  Sources   Download

MIT

The Requires

 

The Development Requires

id-card digidoc

05/12 2014

dev-2-native-envlope

dev-2-native-envlope https://github.com/kgilden/php-digidoc

A library for signing & verifying documents using estonian id card

  Sources   Download

MIT

The Requires

 

The Development Requires

id-card digidoc

11/10 2014

dev-1-rename-container

dev-1-rename-container https://github.com/kgilden/php-digidoc

A library for signing & verifying documents using estonian id card

  Sources   Download

MIT

The Requires

 

The Development Requires

id-card digidoc

15/07 2014

v0.1.1

0.1.1.0 https://github.com/kgilden/php-digidoc

A library for signing & verifying documents using estonian id card

  Sources   Download

MIT

The Requires

 

The Development Requires

id-card digidoc

05/06 2014

v0.1.0

0.1.0.0 https://github.com/kgilden/php-digidoc

A library for signing & verifying documents using estonian id card

  Sources   Download

MIT

The Requires

 

The Development Requires

id-card digidoc