2017 © Pedro Peláez
 

library epuap2

ePUAP2 library

image

vircom/epuap2

ePUAP2 library

  • Monday, March 14, 2016
  • by VirCom
  • Repository
  • 1 Watchers
  • 1 Stars
  • 11 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 3 Versions
  • 0 % Grown

The README.md

VirCom ePUAP2 Readme

Build Status, (*1)

VirCom ePUAP2 is a PHP library that makes it easy to communicate with ePUAP2 platform. * Generating URL's for login and logout actions with ePUAP2 platform, (*2)

Installation

The recommended way to install VirCom ePUAP2 library is through Composer., (*3)

# Install Composer
curl -sS https://getcomposer.org/installer | php

Next, you should run command below, to install the latest stable version of package:, (*4)

composer.phar require VirCom/ePUAP2

After installing, you need to require Composer's autoloader:, (*5)

require 'vendor/autoload.php';

Authentication URL generators

This section delivers examples of usage URL generator methods., (*6)

Login code example:, (*7)

require_once('..\vendor\autoload.php');

use VirCom\ePUAP2\AuthenticationFactory;
use VirCom\ePUAP2\Requests\Login;

$factory = new AuthenticationFactory();
$service = $factory->createService();

$url = $service->getLoginUrl(
    new Login(
        'https://hetmantest.epuap.gov.pl/DracoEngine2/draco.jsf',
        'http://your.application.url',
        '/your.application.id'
    )
);

header('Location: ' . $url);
exit();

Logout code example:, (*8)

require_once('..\vendor\autoload.php');

use VirCom\ePUAP2\AuthenticationFactory;
use VirCom\ePUAP2\Requests\Login;

$factory = new AuthenticationFactory();
$service = $factory->createService();

$url = $service->getLogoutUrl(
    new Logout(
        'https://hetmantest.epuap.gov.pl/DracoEngine2/draco.jsf',
        'your.username',
        '/your.application.id'
    )
);

header('Location: ' . $url);
exit();

The Versions

14/03 2016

dev-master

9999999-dev http://vircom.pl

ePUAP2 library

  Sources   Download

MIT

The Requires

 

The Development Requires

epuap2

14/03 2016

dev-develop

dev-develop http://vircom.pl

ePUAP2 library

  Sources   Download

MIT

The Requires

 

The Development Requires

epuap2

14/03 2016

0.0.1

0.0.1.0 http://vircom.pl

ePUAP2 library

  Sources   Download

MIT

The Requires

 

The Development Requires

epuap2