How to display the current and parent category in WordPress
Need to show the category hierarchy in your theme? Learn how to get the current category and its parent using get_the_category() and get_category_parents().
A Dutch business customer often logs in to a portal with eHerkenning, not with a username created for your application. For a custom PHP portal that raises a concrete question: what does the broker do, and what is still yours to build? I am Mariusz Szatkowski, a PHP developer in Gdynia, and a login that someone else performed is the part I build around. This page covers the scheme as the official sources describe it. I am not a lawyer, and the choice of assurance level is a decision for your organisation and your adviser.

A canal in Amsterdam in July 2006. Photograph by Diliff, released under CC BY 2.5 and hosted on Wikimedia Commons.
Logius describes eHerkenning as an authentication means that lets entrepreneurs, intermediaries and employees log in safely to connected (government) organisations. It does two jobs. It identifies the person (authentication), and it checks that the person is authorised to act for the organisation (authorisation). Logius manages the scheme, the afsprakenstelsel, for the Ministry of the Interior and Kingdom Relations, and publishes the rules at afsprakenstelsel.etoegang.nl.
The official pages describe roles that map to a software design:
So your PHP code never sees a password and never issues credentials. It receives the result of a login that someone else performed, and it has to decide what to do with it.
Logius states plainly that an organisation that wants customers to log in with eHerkenning must engage an eHerkenning broker. The Logius page lists seven steps:
According to eherkenning.nl, five brokers are currently recognised by the national government, and more than 600 service providers are connected, among them UWV, the Tax Administration, RDW, municipalities, pension funds and insurers.
The same page states what a service provider needs: a PKIoverheid server certificate and an SSL certificate. Existing certificates can be used. Digikoppeling is not needed, but the technical conditions differ per broker. It adds that your CRM or website supplier usually knows the technical points that come with connecting, and can help draft questions for the broker. That is the part where a PHP developer is useful: reading a broker’s technical documentation and turning it into a work plan before a contract is signed.
Prices vary per broker. The page says a service provider pays in principle for the connection and an annual subscription, and should add the cost of functional management of its own application. I leave out figures, since they come from the brokers’ quotes.
eherkenning.nl lists three levels and their eIDAS equivalents:
| eHerkenning | eIDAS | Login method |
|---|---|---|
| EH2+ | low | two-factor: username and password plus an SMS code or a token PIN |
| EH3 | substantial | two-factor, with a token or an app with a QR code |
| EH4 | high | PKI certificate |
The service provider decides the level per service. The page says higher levels have more checks when the means is issued, and that identity and authority are verified through the Chamber of Commerce (KVK) registration. It also says EH3 is the most used level and can be seen as the standard. A user with a higher-level means can log in at services that ask for a lower level, and still needs a mandate for each service.
For the PHP code this means the level is a property of the route, not of the whole site. A quote form can accept EH2+, and an invoice archive can demand EH3. The service provider page advises a risk analysis: what type of service, which legal requirements apply, what kind of personal data is exchanged, what damage misuse would cause. A level that is too low risks fraud, and one that is too high needlessly limits use.
A sketch of the check in application code:
<?php
declare(strict_types=1);
enum AssuranceLevel: int
{
case Eh2Plus = 2;
case Eh3 = 3;
case Eh4 = 4;
public function satisfies(self $required): bool
{
return $this->value >= $required->value;
}
}
function requireLevel(AssuranceLevel $granted, AssuranceLevel $required): void
{
if (!$granted->satisfies($required)) {
http_response_code(403);
exit('A higher assurance level is required for this page.');
}
}Which value reaches your code, and in which field, is defined by the broker’s interface. The enum is only the place where your own rules live.
A person who uses eHerkenning for an organisation needs a mandate (machtiging). The official page states that without a mandate eHerkenning does not work. A mandate is personal and records for which services a person may log in on behalf of the organisation. Two kinds exist: a person on behalf of a company, and an intermediary organisation on behalf of a company, called a chain mandate (ketenmachtiging).
Who can issue one is also stated. Only an authorised signatory (tekenbevoegd), as registered in the KVK Handelsregister, may issue a mandate. An authorised signatory can appoint a mandate administrator, who then requests and changes mandates for all people in the organisation, through an online form or through a management module that suppliers offer.
For a PHP application three design decisions follow:
The release notes on eherkenning.nl show how the interface evolves. Release 1.13 let a service provider register several portals under one ServiceProviderID (OIN), described through the service catalogue entry IsPortal, and the notes list attributes such as an intermediary’s entity identifier. The notes say service changes must follow the form described in the scheme. Features are tied to interface versions, and your broker tells you which release your connection uses. A PHP developer should ask for the version in writing, since it decides which attributes arrive.
The broker’s documentation decides the protocol details, and I do not paraphrase them from memory here. What your code owns is the step after the handover:
session_regenerate_id(true), so a pre-login identifier cannot be reused.Plan test cases with the broker early. Step six of the Logius list is testing, and a test needs accounts at every level you plan to require, plus a mandate for each service, plus an intermediary case if your customers use accountants.
Only if you are a service provider with a public task. Eherkenning.nl says the eIDAS obligations have applied since 29 September 2018, and that such providers must accept European recognised means. It names municipalities, provinces, water boards, ministries, implementing organisations, academic hospitals, health insurers, universities and pension funds as examples. If a provider lets Dutch users in at substantial or high level, European users must be let in with a recognised means as well. The user’s level decides, not the service’s level.
Enabling eIDAS needs at least version 1.11 of the eHerkenning interface, and the same interface is used to accept eHerkenning, so one connection serves both. These pages name no such duty for a private-sector portal. Whether your organisation has a public task is a legal question.
I work remotely from Gdynia, in the same time zone as Amsterdam. Broker questions and answers stay in writing, so the service list is settled before the first contract. At handover you keep the repository, the session and mandate code, and the notes for the next person who talks to the broker.
If your Amsterdam organisation plans a PHP portal with eHerkenning, send the list of services and who should reach each one through the contact page. The first written estimate is free and starts from your service list. The PHP developer page covers the rest of the PHP scope.
Examples of my work.
kochamruch.pl is a website for a community focused on movement and physical activity, with content publishing and stable technical foundations.
kredytywarszawa.pl is a WordPress website for a business offering loans and financial services, focused on clear services, performance, and basic security.
led-lumina.pl is a professional online store that presents a comprehensive range of innovative LED solutions for both individual and business customers. The ...
Describe your project by e-mail. I reply within 24 hours.
Describe your projectNeed to show the category hierarchy in your theme? Learn how to get the current category and its parent using get_the_category() and get_category_parents().
Need to get the URL of the first image or link in an article? Prefer DOMDocument over regex. Ready-made WordPress PHP for developers.
On 1 December 2026 Taylor Otwell shipped the Laravel Rust beta, and Laravel Go followed a day later. What the framework contains, what the 18x benchmark really measures, what happens to Laravel PHP and WordPress, and when a rewrite makes sense.
Custom WordPress engineering and architecture.
Scalable headless, ERP, and AI architecture for enterprise.
Stores, checkout flow, and sales logic.
Stability, updates, and post-launch support.
What the monthly care fee covers and what changes it.
Business process automation around WordPress and company systems.
Headless WordPress, Sanity, Strapi, and Contentful with Astro or Next.js.
Astro, MDX, edge delivery, and Core Web Vitals measured on real traffic.

How to start as a WordPress developer in 2026. Local environment, theme and plugin development, REST API and headless paths, security and Core Web Vitals. A practitioner playbook that does not waste your first month.

WordPress 7.0 with AI Client against Astro 7 with the Rust compiler and Vite 8. Speed, cost, SEO and security compared, plus the real bill for my own Astro 6 to 7 migration.

A detailed comparison table of EmDash CMS and WordPress across architecture, security, plugins, AI features, content model, hosting, and ecosystem maturity.