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 Porto company that runs a custom PHP application for a healthcare provider, a water or energy utility, a transport operator or a public body may now be part of a regulated supply chain. I am Mariusz Szatkowski, a PHP developer in Gdynia who has worked remotely and in writing since 2006. I design the interface myself or build to yours. On this topic the customer decides its legal position under the regime, and my job is a codebase and a delivery process that can stand up to the questions the customer will have to ask.

The Dom Luis I bridge spanning the Douro between Porto and Vila Nova de Gaia. Photographed by Diego Delso, licence CC BY-SA 3.0, from Wikimedia Commons.
Decreto-Lei 125/2025 of 4 December 2025 did. It was published in Diário da República 234/2025, series I, and its own summary says it transposes Directive (EU) 2022/2555, the NIS2 directive. The decree approves the cybersecurity legal regime (regime jurídico da cibersegurança) as an annex, and the gazette page lists it as in force on diariodarepublica.pt.
Article 9 of the decree revokes, among others, three texts that a Portuguese IT team may still have in old policy documents:
Article 11 says the decree enters into force 120 days after its publication. Counting from 4 December 2025 puts that in early April 2026; that date is my own count, and the decree gives only the rule.
A contract or security annex that still cites Decreto-Lei 65/2021 points at a revoked text. That is worth a line in the next contract review, whatever else changes.
Article 3(1) applies the regime to private entities of the types listed in annexes I and II that are medium-sized enterprises or larger under Commission Recommendation 2003/361/EC and provide services or carry out activities in the EU. Article 3(2) adds entities regardless of size in specific cases, for example public electronic communications providers, trust service providers, DNS and top-level domain services, the sole provider of an essential service, or an entity whose disruption could seriously affect public safety or health. Public administration, higher education institutions and critical entities under Directive (EU) 2022/2557 are covered through article 3(3) to (6).
Article 6 sorts the covered entities. Essential entities include annex I types above the medium-sized thresholds, and important entities are the annex I and II types that are not essential.
One annex I sector matters to anyone who looks after applications for other businesses: “ICT service management (business to business)”, with managed service providers and managed security service providers. Article 2(y) defines a managed service provider as an entity that provides services related to the installation, management, operation or maintenance of ICT products, networks, infrastructure, applications or other network and information systems, through assistance or active administration on the customer’s premises or remotely. A software house in Porto that hosts and maintains client applications should read that definition against its own contracts, and check its size against article 3(1).
I am one person, below the medium-sized thresholds, so the regime does not reach me as an entity under article 3(1). It reaches the work through the customer.
Article 27(1) lists the areas the measures of essential and important entities must cover. Two of them name the developer’s world directly. Point (c) is security of the supply chain, including the relationship between the entity and its direct suppliers or service providers. Point (d) is security in the acquisition, development and maintenance of network and information systems, including vulnerability handling and disclosure. Point (i) asks for multi-factor or continuous authentication.
Article 28 then says what the supply chain measures must consider, among others:
Point 3 is the one a PHP supplier will be asked about. The customer is the party bound by the law. In practice it will ask its developer how code is written, reviewed, tested and released, and it will want something written to file with its risk analysis under article 29, which must be documented.
Article 10(2) of the decree splits the timing. Articles 27(1) and (2), 28 to 30 and 33, and the matching fines in article 61(1)(b), (c) and (f), take effect 24 months after publication of the regulation referred to in articles 8, 14, 26, 31, 32 and 83 of the regime.
The CNCS published that regulation as Regulation 756/2026 of 22 June 2026, in Diário da República 118/2026, series II, on diariodarepublica.pt. Its preamble lists those articles among the ones it implements, and its article 35(1) says it takes effect without prejudice to article 10(2) of the decree. On my reading the measures and the supplier rule apply from June 2028. That date is my inference from the two texts, and the CNCS or your adviser is the right place to confirm it.
Incident notification under articles 40 to 44 is not in the deferred list. Neither is registration on the CNCS electronic platform. On my reading a customer can therefore face reporting duties well before the supplier rule applies, with the procedure detailed in CNCS technical instructions, and the application has to support both.
Annex III of Regulation 756/2026 lists the minimum measures for essential and important entities by conformity level: basic, substantial and high. Article 28 of the regulation derives the level from a risk matrix per sector and the entity’s size, and article 30(2) says the substantial and high levels also carry the measures of the levels below. These controls land on a PHP project:
| Control in annex III | Level | What the customer must show |
|---|---|---|
| PR.GA-3, authentication mechanisms | basic | multi-factor authentication on remote access and privileged accounts |
| GR.CA-5, supplier contracts | substantial | contract templates with specific cybersecurity clauses and the means of sharing sensitive information |
| PR.SP-4, secure development life cycle | substantial | security by design and by default in the life cycle, an impact analysis in a separate test environment before a change reaches production, change management records |
| PR.RI-2, separate environments | substantial | development and test isolated from production, with technical evidence |
The verification criteria in annex III ask for evidence, and evidence is the part a supplier can prepare in advance. For a PHP project that can mean:
composer audit in the pipeline. The Composer documentation says the command checks installed packages against security advisories from Packagist.org by default, also reports abandoned packages and packages flagged as malware, and returns a non-zero exit code when it finds one, so a release can stop on it.Article 40 requires essential, important and relevant public entities to notify any significant incident to the competent cybersecurity authority through the electronic platform. Article 40(3) gives the parameters for “significant”: number of affected users, total users of the service, duration, severity of the disruption and the scale of the economic and social impact.
The timeline in articles 41 to 44:
| Step | Deadline |
|---|---|
| Initial notification | without undue delay, within 24 hours of concluding a significant incident exists or may exist |
| Update with an initial assessment | within 72 hours, where necessary |
| End of significant impact | within 24 hours after the impact ends |
| Final report | within 30 working days of the end of impact notice |
If the incident is resolved within two hours of detection, article 41(2) says only the end of impact notice is due. Article 40(5) keeps other reporting duties alive, for example to the CNPD for personal data.
For the developer, 24 hours is the binding number. A customer cannot report what nobody told it. The contract should say how fast the developer reports a suspected incident to the customer, through which channel, and what the first message contains. The initial notification in article 42(2) asks for the start or detection time, a short description with cause and effects, and an estimate of affected users, duration and geographic spread. Application logs that record logins, admin actions and errors with timestamps make that estimate possible in hours.
Article 38 makes CERT.PT the national coordinator for coordinated vulnerability disclosure, acting as a trusted intermediary between the person reporting and the vendor or provider. Article 45 lets anyone notify incidents, near misses or vulnerabilities voluntarily. For a PHP application, the practical step is a published security contact and a written promise to answer it, so a researcher who finds a flaw has somewhere to go before CERT.PT has to step in.
Article 61(1) lists very serious offences, including failure to adopt the measures under articles 27 to 29 and failure to notify under articles 40 to 44. Article 61(2) sets fines for a legal person:
Article 64 punishes negligence too, with the limits halved. Article 65 lets entities ask the authority to waive fines under articles 61(2) and 62(2) during the first 12 months after entry into force, if they had no internal adaptation procedure. These fines fall on the regulated entity. A supplier’s exposure comes through its contract.
composer audit in the release pipeline and keep the PHP branch supported.I am not a lawyer. Whether your company is essential or important, which conformity level applies, what counts as a significant incident and when the deferred articles take effect are for you, your adviser and the CNCS. This page covers the decree and the regulation as published in the Diário da República, plus the php.net and Composer documentation, and leaves out sector rules such as the DORA regulation (EU) 2022/2554 for the financial sector, which article 3(9) of the regime says it does not affect.
If your Porto company builds, hosts or buys a PHP application for a customer covered by the regime, send me the scope, the hosting, the customer’s sector and your deadline through the contact form. You get the first estimate in writing, free of charge. Whether your customer is essential or important, and what its conformity level requires, stays with you and your adviser.
Examples of my work.
Andrzej Karałow is a talented pianist and composer whose artistic journey began in 2010 when he graduated from the Karol Szymanowski Music School in Warsaw u...
exco.pl is a professional website in my WordPress developer portfolio, created as a platform for outsourcing and consulting services for businesses. This modern project stands out for its elegant design, multilingual support, and advanced content management features.
Floresy is a leading manufacturer, wholesaler and retailer of artificial plants, flowers and trees with over 25 years of experience in creating the finest silk plants on the market.
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.