PHPackages                             feeria/php-frejaeid - 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. [API Development](/categories/api)
4. /
5. feeria/php-frejaeid

ActiveLibrary[API Development](/categories/api)

feeria/php-frejaeid
===================

Freja eID API PHP integration package. Original development by DSorlov/phpFreja.

022PHP

Since Aug 14Pushed 4y ago1 watchersCompare

[ Source](https://github.com/feeria/php-frejaeid)[ Packagist](https://packagist.org/packages/feeria/php-frejaeid)[ RSS](/packages/feeria-php-frejaeid/feed)WikiDiscussions main Synced today

READMEChangelogDependenciesVersions (1)Used By (0)

phpFreja
========

[](#phpfreja)

Simple PHP wrapper to get information from [Freja eID](https://frejaeid.com/en/developers-section/) [REST API](https://frejaeid.com/rest-api/Freja%20eID%20Relying%20Party%20Developers'%20Documentation.html) for use both in test and production enviroment.

- Supports validation of the JWS but requires external library for that part (thanks to [php-jws](https://github.com/Gamegos/php-jws)).
- Supports both directed and inferred authentication, for use with qr-code and app.
- Supports authentication and signature api but not the assertion service.
- Supports specific data fetching within array [Available data](https://frejaeid.com/rest-api/Authentication%20Service.html)
- Well behaved functions that do not throw (atleast not by design) but always return objects for simpler handling.

To setup your test enviroment and then basic agreement read this information on [Freja eID](https://org.frejaeid.com/en/developers-section/) website.

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

[](#installation)

To run installation type following in your project command line: `composer require feeria/php-frejaeid`

Quickstart
----------

[](#quickstart)

```
use Feeria\PhpFrejaeid\PhpFrejaeid;

// Create FrejaeID API Instance
$frejaApi = new PhpFrejaeid(
  'path_to_your_pfx_certificate.pfx',
  'your_password',
  false, // production mode
);

// Initialize the authorization
$authResponse = $frejaApi->initAuthentication(
  'EMAIL',
  'FREJAEID_USER_EMAIL',
  'BASIC',  // auth level, can be BASIC, EXTENDED, PLUS
  [
    'EMAIL_ADDRESS',
    // and any another from official docs
  ]
);

// Return user data
if ($authResponse->success)
    $authStatus = $frejaApi->checkAuthentication($authResponse->authRef);

    return $authStatus; // all user data from FrejaeID
```

### Create URL for QR-Code

[](#create-url-for-qr-code)

```
$qrInfo = $frejaAPI->createAuthQRCode();

if ($qrInfo->success)
    $imageUrl = $qrInfo->url;
```

### Init, monitor and cancel authentication request

[](#init-monitor-and-cancel-authentication-request)

```
$authResponse = $frejaAPI->initAuthentication('EMAIL','youremail@yourserver.com');

if ($authResponse->success)
    $authStatus = $frejaAPI->checkAuthRequest($authResponse->authRef);

$frejaAPI->cancelAuthentication($authResponse->authRef);
```

### Init, monitor and cancel signature request

[](#init-monitor-and-cancel-signature-request)

```
$signResponse = $frejaAPI->initSignatureRequest('EMAIL','youremail@yourserver.com','Testsign','This is the agreement text');

if ($signResponse->success)
    $signStatus = $frejaAPI->checkSignatureRequest($signResponse->signRef);

$frejaAPI->cancelSignatureRequest($authResponse->signRef);
```

###  Health Score

16

—

LowBetter than 4% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community4

Small or concentrated contributor base

Maturity29

Early-stage or recently created project

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.

### Community

Maintainers

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

### Embed Badge

![Health badge](/badges/feeria-php-frejaeid/health.svg)

```
[![Health](https://phpackages.com/badges/feeria-php-frejaeid/health.svg)](https://phpackages.com/packages/feeria-php-frejaeid)
```

###  Alternatives

[exsyst/swagger

A php library to manipulate Swagger specifications

35916.4M7](/packages/exsyst-swagger)[hubspot/api-client

Hubspot API client

24016.2M20](/packages/hubspot-api-client)[pocketmine/bedrock-protocol

An implementation of the Minecraft: Bedrock Edition protocol in PHP

172445.0k12](/packages/pocketmine-bedrock-protocol)[botman/driver-telegram

Telegram driver for BotMan

93459.5k6](/packages/botman-driver-telegram)

PHPackages © 2026

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