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 PHP application sold to other businesses comes with a question that buyers in the UK can now ask in a standard way: how does the vendor meet the Software Security Code of Practice? I am Mariusz Szatkowski, working from Gdynia, remotely and in writing. I build custom PHP applications and design the screens, or I implement your design. This page reads the Code and the NCSC implementation guidance for a Sheffield company that sells or supplies software built in PHP. I am not a lawyer, and the Code is not law.

Sheffield Town Hall. Photo: Tim Green from Bradford, CC BY 2.0, Wikimedia Commons.
It is a set of 14 principles for software vendors, published on GOV.UK on 7 May 2025 and last updated on 15 January 2026. The Department for Science, Innovation and Technology published it, and the National Cyber Security Centre co-designed it with industry and academic experts. GOV.UK calls it voluntary.
The Code sets out who should do what. The primary audience is senior leaders in vendor organisations, who are expected to make sure the measures are prioritised. Technical teams carry them out, and customers who buy software can use the Code to ask questions. The government provides a self-assessment form that a vendor can use for internal monitoring or share with customers. On certification, the Code says only that further information about a certification process will be shared in due course.
The detail lives in a separate NCSC implementation guidance. The NCSC says it expects vendors to implement the guidance in line with their own risk management and governance.
The Code says it applies to all organisations that develop and/or sell software to businesses or other organisations. That includes standalone software, software services and goods or services that contain software. It is most relevant to proprietary software sold business to business. A table in the Code splits the duties by role:
| Role in the Code | Principles to follow |
|---|---|
| Develops and sells software or software services | all four themes |
| Sells software it did not develop (reseller) | themes 3 and 4, and encourage the developer to follow the Code |
| Develops software but does not sell or distribute it | themes 1 and 2, theme 3 where relevant |
| Open-source developer or maintainer | not the primary audience |
The Code’s own examples for the first row are independent software vendors, SaaS providers and vendors of goods or services with a software component. A Sheffield company that runs a PHP SaaS product for other firms falls there. So does a company that licenses a PHP platform to customers who install it. A bespoke application written for one client is not named anywhere in the text, so I would not claim the Code requires anything specific for that case.
The wording below stays close to the Code. Each line is one principle.
Theme 1, secure design and development
Theme 2, build environment security
Theme 3, secure deployment and maintenance
Theme 4, communication with customers
For principle 1.1 the Code’s glossary says a secure development framework should at least cover threat modelling, secure coding practices, requirements capture, governance and roles, a test strategy, data management and configuration management. The NCSC suggests publishing which framework you follow. The Code itself says it reflects the practices of the US Secure Software Development Framework (SSDF).
Principle 1.2 is about components. The NCSC guidance asks vendors to keep an inventory of every third-party component, which can take any format, such as a software bill of materials (SBOM). Each component should be up to date when first integrated and then checked for vulnerabilities for the lifespan of the product. The inventory should be shareable with customers.
A PHP project managed with Composer already has the raw material. The Composer documentation says that when a composer.lock file exists, composer install uses the exact versions from it instead of resolving them again. The lock file is the list of what ships. The audit command checks those packages, and the documentation lists the options that matter for a release pipeline: --locked audits the lock file regardless of what is in the vendor directory, --no-dev skips development packages, and --abandoned set to fail turns abandoned packages into a failing check.
# release job, run on every build
composer install --no-dev --no-interaction
composer audit --locked --no-dev --abandoned=fail --format=json > audit.jsonThe JSON output can be archived with each release, which also gives the evidence that principle 3.3 asks for. Composer documents an --audit flag for install; it does not say that install audits by default, so the separate audit step is the reliable one.
For principle 1.3 the NCSC lists the practices it expects: tests for every component and for the final package, a baseline of code coverage, static and dynamic analysis before check-in and for each release, and peer review by two or more people. For principle 1.4 it names input validation as early as possible, error messages that do not expose internal details, prepared statements with parameterised queries as standard practice, no hard-coded credentials, and changed default passwords. In PHP terms that means prepared statements for every query and display_errors off in production: the php.net configuration page says the setting supports development and should never be used on production systems, and the bundled php.ini-production sets it to Off. Credentials belong outside the repository, read from the environment at runtime.
The Code’s glossary defines the build environment as the place where software is compiled, built and packaged for release, and says it should be logically or physically separate from where code is written and tested. For a PHP application that is the CI runner and the place where the release archive or container image is assembled, not a developer laptop.
The NCSC guidance for principle 2.1 asks for a policy on who may access the build environment, removal of access when it is no longer needed, logging of actions such as system access, least privilege per account, isolation of external-facing access components, and securely stored credentials with no default credentials. For 2.2 it asks that changes to the build environment are logged and retained, with a policy on who may make changes and when that right ends. Multi-factor authentication for all accounts with build access sits under the NCSC’s additional good practice.
For principle 3.1 the NCSC names a trusted download location, verification of integrity and provenance before installation, transport over TLS, code that is digitally signed throughout the deployment pipeline, code pulled only from an approved list of third parties, and the ability to roll back to a specific version. A PHP release can carry a checksum next to the archive, computed with hash_file('sha256', $path), which php.net documents. A checksum alone proves the file did not change; signing proves who produced it, and the guidance asks for signing.
Principle 3.2 asks vendors to publish a vulnerability disclosure process. The NCSC points to its Vulnerability Disclosure Toolkit as the starting point. Under 3.3 it expects a vulnerability management plan, a security response playbook with assigned roles, root cause analysis, and reporting discovered vulnerabilities to the CVE programme. Principle 3.4 lists who may need to hear about a vulnerability: customers and users, vulnerability databases, regulators where the law requires it, third-party vendors and open-source maintainers.
Under principle 3.5, vulnerabilities should be fixed within a reasonable timeframe according to their priority, critical ones through an out-of-band update. The NCSC also writes that updates and patches should not be a premium feature: security fixes should be provided as standard for a reasonable support period that has been clearly communicated to customers. A pricing page that sells security patches only in a higher tier sits badly with that sentence.
Principle 4.1 asks vendors to tell customers the level of support, and the NCSC adds the frequency of patching, how patches are distributed and how customers are notified. Principle 4.2 asks for at least one year of notice before support ends.
A PHP application inherits a hard limit here. php.net states that each PHP branch is fully supported for two years from its first stable release and then receives critical security fixes only for two more years. The current table:
| PHP branch | Active support until | Security support until |
|---|---|---|
| 8.2 | 31 Dec 2024 | 31 Dec 2026 |
| 8.3 | 31 Dec 2025 | 31 Dec 2027 |
| 8.4 | 31 Dec 2026 | 31 Dec 2028 |
| 8.5 | 31 Dec 2027 | 31 Dec 2029 |
| 8.6 | 31 Dec 2028 | 31 Dec 2030 |
A product that still runs on PHP 8.2 loses upstream security fixes on 31 December 2026, which is less than a month after this page was checked. If a support statement promises fixes beyond the runtime’s end date, the plan to move the product to a newer branch belongs in that statement. With the one-year notice rule, a vendor that intends to drop a version has to say so a year ahead, so the PHP support table is a useful input for the roadmap customers see.
Principle 4.3 asks for a plan, shared with customers in advance, on how the vendor supports them during an incident, prompt notification when one happens, regular updates, and a post-incident report on root cause and prevention.
composer.lock, and run composer audit on the lock file in every release job.The wider picture of my PHP work is on the PHP developer page.
If your Sheffield company sells or supplies a PHP application, send me the repository or product description, the PHP version, how releases reach customers and your deadline through the contact page. Writing the first estimate costs you nothing. Which principles you commit to in front of customers is your decision.
Examples of my work.
pluginfinance.com is a modern, highly scalable WordPress-based service dedicated to showcasing and distributing financial plugins. The project was designed w...
Radio.friko.pl is an internet radio station that operated between 2005 and 2010 as part of the Friko.pl platform, offering users access to music streaming, l...
Terazjemy.pl is an online platform designed to promote a healthy lifestyle by providing users with practical information, recipes, and tips on balanced nutri...
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.