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 Brussels company that builds or runs a PHP application for a hospital group, an energy supplier, a ministry contractor or a logistics operator will sooner or later receive a supplier questionnaire. Behind it sits the Belgian law of 26 April 2024 establishing a cybersecurity framework for network and information systems of general interest for public security. This page reads that law as a PHP developer needs to: which rules reach application code, which do not, and what evidence a repository can produce.
The text used here is the consolidated Dutch version on the Belgian federal Justel database, published in the Belgisch Staatsblad on 17 May 2024 (Numac 2024202344) and shown there as updated to 19 January 2026. Article 2 states that the law transposes Directive (EU) 2022/2555, known as NIS2. Article 98 says it entered into force on 18 October 2024.
Nothing below is legal advice. Whether your company is in scope is a question for your lawyer or your security officer.
Art. 3 §1 applies the law to public or private entities of the types listed in Annex I or II that are medium-sized or larger. Art. 3 §3 adds entities covered regardless of size, among them certain telecom and trust service providers, DNS and TLD registries, and some federal public bodies. Art. 4 §1 requires the entity to be established in Belgium and to provide services in the EU. Intelligence services, courts, police and the Ministry of Defence are excluded by Art. 5 §4.
The law splits covered entities in two groups:
Art. 11 lets the national authority identify further entities. Under Art. 13 §1, essential and important entities register within five months of the law’s entry into force or of their identification.
For a PHP developer the useful reading is this: if your customer is in either group, your application is part of their network and information systems, and you are one of their suppliers.
Art. 30 §3 lists the minimum cybersecurity risk measures. Three items reach application code directly:
Art. 30 §4 adds that when an entity assesses supplier related measures it considers “de specifieke kwetsbaarheden van elke rechtstreekse leverancier en dienstverlener”, the specific vulnerabilities of each direct supplier and service provider. Two further items of the same list matter for a PHP project: a policy on cryptography (8°) and, where appropriate, multi-factor or continuous authentication (10°).
In a PHP repository the suppliers are concrete. The framework (Symfony or Laravel), every Composer package, every WordPress plugin, the hosting stack and any SaaS API the code calls all count as inputs your customer must be able to account for. A supplier questionnaire usually boils down to one question: can you show what is inside the application and how fast you find out when part of it is vulnerable?
Composer ships an audit command that checks the installed packages against published security advisories. It can run against the lock file, so the result describes what is deployed, not what a developer happens to have locally.
{
"require": {
"php": "^8.3"
},
"config": {
"audit": {
"abandoned": "fail"
},
"lock": true
},
"scripts": {
"audit:ci": "composer audit --locked --format=plain"
}
}The abandoned setting makes an audit fail when a package is marked abandoned, instead of only printing a notice. A CI job then runs composer run audit:ci on every push and on a schedule, so a new advisory for an unchanged lock file still turns the build red. The output, the lock file and the pipeline history form the kind of record a supplier review asks for. They do not prove compliance. They show that dependency vulnerabilities are looked for on a routine.
Two habits go with it. Pin the PHP branch you run, and check the dates on php.net so that the runtime itself stays inside its security support window. And keep an inventory of direct dependencies with owner and purpose, because Art. 30 §4 talks about direct suppliers, not about every transitive package.
Art. 34 §1 requires significant incidents to be reported to the national CSIRT without delay (“onverwijld”). Art. 35 §1 fixes the clock:
| Step | Deadline | Source |
|---|---|---|
| Early warning | within 24 hours of becoming aware | Art. 35 §1 |
| Incident notification | within 72 hours | Art. 35 §1 |
| Final report | at the latest one month after the incident notification was filed | Art. 35 §1 |
| Trust service providers | 24 hour deadline | Art. 35 §2 |
The clock starts when the entity becomes aware, so the application has to make awareness possible. That means error and security events that reach a person, not a log file nobody reads, and a timestamp of the first moment someone confirmed the problem. A small value object keeps the deadlines out of spreadsheets:
<?php
declare(strict_types=1);
final readonly class IncidentClock
{
public function __construct(public DateTimeImmutable $awareAt)
{
}
public function earlyWarningDue(): DateTimeImmutable
{
return $this->awareAt->modify('+24 hours');
}
public function notificationDue(): DateTimeImmutable
{
return $this->awareAt->modify('+72 hours');
}
public function finalReportDue(DateTimeImmutable $notificationFiledAt): DateTimeImmutable
{
return $notificationFiledAt->modify('+1 month');
}
}readonly class needs PHP 8.2 or newer. The +1 month modifier in PHP rolls over at month ends (31 January plus one month lands in March), so the date it returns is a working figure for the runbook. The legal date comes from the text of the law and from your customer’s security officer.
The code is deliberately small. The part that takes real work sits around it: who is paged, who decides that an incident is significant, and who files the early warning with the national CSIRT.
Art. 31 puts the governing bodies in charge. They approve the cybersecurity risk measures, oversee their implementation and are liable for infringements of Art. 30. Under Art. 31 §2 the members complete training so they can assess cyber risks. Art. 32 adds that the essential or important entity itself is responsible for the risk analysis and for choosing and implementing the Art. 30 measures.
For a PHP project this changes who reads the technical report. Output from composer audit, the update policy for the framework and the incident runbook may end up on a board or management agenda, so they should be written for a reader who is not a developer: what was checked, when, what was found, what was done.
Art. 39 and 40 refer to reference frameworks and to accredited conformity assessment bodies. Art. 43 states that the national cybersecurity authority keeps a list of the accredited bodies up to date. Art. 75 says the King sets the deadlines within which essential entities carry out their first regular conformity assessments.
The excerpt of the law checked for this page names no specific framework. What your customer must be assessed against, and by when, is therefore a question for their own security officer and for the authority. An application team can prepare by keeping the documentation an assessor asks for in the repository: architecture notes, dependency inventory, backup and restore tests, access lists and the incident runbook.
The work splits into parts that can be priced and accepted separately:
composer audit --locked in CI, scheduled runs, and a rule for how quickly an advisory is triaged.Work starts from a written brief and runs remotely. The design side, meaning interface layouts and wireframes, is part of the work unless you bring your own mockups. For the WordPress side of a Brussels project see WordPress developer in Brussels and for ongoing updates WordPress maintenance in Brussels. The general overview is on the PHP developer page. To start, describe the application, the customer group and the questionnaire you received through the contact page.
| Question | Evidence a repository can hold |
|---|---|
| Which third party code does the application use? | Lock file and a short inventory of direct dependencies. |
| How are vulnerable packages found? | Scheduled composer audit --locked output. |
| Which PHP version runs in production? | Version pinned in composer.json and in deployment notes. |
| Who is told when a security event happens? | Alert routing and a named responder. |
| How fast can the early warning be prepared? | Runbook with the 24 hour and 72 hour steps. |
| Who approves the risk measures? | A management sign off recorded by the customer. |
Examples of my work.
QUALITY WATCH is a customer experience and service-quality platform presenting mystery shopping, service audits, customer journey work and B2B consulting services.
Ambient System has been providing specific implementation choices in the fire safety industry for over 20 years, specializing in the design, production, and distribution ...
aspirodesign.pl is a website for a creative design business, focused on portfolio presentation, performance, and simple content management.
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.