PHPackages                             vircom/epuap2 - 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. vircom/epuap2

ActiveLibrary

vircom/epuap2
=============

ePUAP2 library

0.0.1(10y ago)231[1 issues](https://github.com/vircom/ePUAP2/issues)MITPHPPHP ^5.4.7 || ^5.5 || ^5.6 || ^7.0

Since Mar 14Pushed 10y ago1 watchersCompare

[ Source](https://github.com/vircom/ePUAP2)[ Packagist](https://packagist.org/packages/vircom/epuap2)[ Docs](http://vircom.pl)[ RSS](/packages/vircom-epuap2/feed)WikiDiscussions master Synced 2mo ago

READMEChangelogDependencies (2)Versions (3)Used By (0)

VirCom ePUAP2 Readme
====================

[](#vircom-epuap2-readme)

[![Build Status](https://camo.githubusercontent.com/7847de3cbd9f0269acc79c835af6506bf5f841f1382b0228df5abc1c100a3b29/68747470733a2f2f7472617669732d63692e6f72672f566972436f6d2f6550554150322e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/VirCom/ePUAP2)

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

Installation
------------

[](#installation)

The recommended way to install VirCom ePUAP2 library is through [Composer](http://getcomposer.org/).

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

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

```
composer.phar require VirCom/ePUAP2
```

After installing, you need to require Composer's autoloader:

```
require 'vendor/autoload.php';
```

Authentication URL generators
-----------------------------

[](#authentication-url-generators)

This section delivers examples of usage URL generator methods.

**Login code example:**

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

```
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();
```

###  Health Score

21

—

LowBetter than 19% of packages

Maintenance10

Infrequent updates — may be unmaintained

Popularity10

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity49

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% 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

Unknown

Total

1

Last Release

3709d ago

### Community

Maintainers

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

---

Top Contributors

[![vircom](https://avatars.githubusercontent.com/u/13232500?v=4)](https://github.com/vircom "vircom (4 commits)")

---

Tags

epuap2

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/vircom-epuap2/health.svg)

```
[![Health](https://phpackages.com/badges/vircom-epuap2/health.svg)](https://phpackages.com/packages/vircom-epuap2)
```

###  Alternatives

[sabre/dav

WebDAV Framework for PHP

1.7k14.8M67](/packages/sabre-dav)[sabre/vobject

The VObject library for PHP allows you to easily parse and manipulate iCalendar and vCard objects

59623.5M40](/packages/sabre-vobject)[num-num/ubl-invoice

A modern object-oriented PHP library to create and read valid UBL and EN 16931/Peppol BIS 3.0 files

135820.5k](/packages/num-num-ubl-invoice)[vitalybaev/google-merchant-feed

PHP package for creating Google Merchant products feed

91979.4k4](/packages/vitalybaev-google-merchant-feed)[cleverit/ubl_invoice

A PHP wrapper for UBL invoices

36283.4k](/packages/cleverit-ubl-invoice)[klsheng/myinvois-php-sdk

MyInvois SDK for PHP

9813.0k](/packages/klsheng-myinvois-php-sdk)

PHPackages © 2026

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