PHP developer in Edinburgh

WordPress for businesses in Edinburgh, delivered remotely by one developer.

PHP developer

My place in the WordPress community

  • I have had a wordpress.org account since 2006.
  • I contributed to WordPress core for versions 7.0 and 7.1.
  • I maintain 30 plugins on wordpress.org.
  • I organise and speak at WordCamps.
  • I have attended every WordCamp Europe from 2017 to 2026.

My WordPress.org profile

A buyer of business software in Edinburgh, whether a public body, a financial firm or a company with a security team, will often send a questionnaire before it signs. For cloud products one of the common reference points is the UK National Cyber Security Centre. I am Mariusz Szatkowski. I write PHP from Gdynia, remotely, and I am neither a lawyer nor a security assessor, so nothing I do is a certification. I build the PHP side and keep the evidence your answers need.

Edinburgh Old Town skyline seen from across the city

Edinburgh’s Old Town skyline, a view of the city and not a client reference. Image by Anthony O’Neil from Geograph, CC BY-SA 2.0, hosted on Wikimedia Commons.

#What are the NCSC cloud security principles?

The NCSC publishes 14 Cloud Security Principles to help a buyer choose a cloud provider that meets its security needs. The page states that they apply to both cloud platforms and Software-as-a-Service, and that configuring a service securely is a separate job. The current version is 2.1, reviewed on 7 June 2023. They are guidance and not law.

For each principle the NCSC describes the goals a good service meets, differentiators that give more confidence, suggested ways a provider could meet the goals and related considerations. It stresses that the suggestions are examples, and that a buyer should look at what evidence the provider gives. It also notes that some cloud services have published a written response to the principles, so a buyer can see in one place how the vendor believes it meets them.

The 14 are:

  1. Data in transit protection
  2. Asset protection and resilience
  3. Separation between customers
  4. Governance framework
  5. Operational security
  6. Personnel security
  7. Secure development
  8. Supply chain security
  9. Secure user management
  10. Identity and authentication
  11. External interface protection
  12. Secure service administration
  13. Audit information and alerting for customers
  14. Secure use of the service

#Why does this matter to a PHP SaaS vendor?

The principles are written from the buyer’s side, and the vendor is the provider being assessed. A PHP application sold as a service has three layers in play: the application code, the hosting it runs on and the people who operate it. The NCSC’s shared responsibility model explains how the split works. The provider of a layer takes the duties of that layer, and the customer always stays responsible for configuring the service securely and for deciding what data to store in it.

For a vendor this has two sides. Toward its customers, the vendor is the provider and has to answer for the application. Toward its host, the vendor is a customer and has to configure the platform well. The model recommends SaaS where a service that meets the need exists, and says that to build or host an application it prefers PaaS to IaaS, because more of the security work moves to a provider that works at scale. Principle 8 asks the vendor to understand which party carries which function when its service sits on a third-party platform.

#Which principles land in PHP code?

Seven principles touch the application directly. Each row gives the NCSC’s expectation and the PHP artefact that shows it.

PrincipleWhat the NCSC expectsWhat shows it in a PHP project
3 Separation between customersthe provider explains its security boundaries in compute, storage and network flowsa tenant scope applied in one data layer, with tests that try to cross it
5 Operational securityvulnerability management covering application code and its dependencies, with a list of external dependenciesa lock file, a dependency list and a recorded patch routine
7 Secure developmentreview of all deployed changes, an automated audited pipeline, separate production and test, supported software onlypull request history, a CI pipeline, a staging copy and secrets outside the repository
8 Supply chain securitythe provider understands how data is shared with third partiesa list of every external API and processor the application calls
9 and 10 Users and identitygranular access control with least privilege, MFA, strong service identityroles, MFA, session settings and rotatable API keys
11 External interface protectionevery external interface identified and defendeda route inventory with authentication and rate limits noted
13 Audit informationaudit data on resources, configuration, authentication and data accessan append-only audit table with a retention period

Principles 1, 2, 4, 6, 12 and 14 sit more with the host, the company and its people than with the code, and I do not write about them in detail here.

#What does tenant separation mean in PHP?

Principle 3 says a malicious or compromised customer should not be able to access or affect another customer’s service or data. The NCSC adds a point that decides the design: separation within an application, or enforced by the kernel, usually gives appropriate security separation only for services where customers cannot run executable code, which is the case for SaaS. It also says stronger controls are needed where customers can run custom code.

For a PHP SaaS that does not run customer code, the application is therefore the separation boundary, and the boundary is only as good as the queries. A tenant identifier belongs in one data access layer, not in dozens of controllers. Reads and writes go through that layer. A test suite creates two tenants and checks that tenant B cannot read, change or list the records of tenant A through every route.

SQL injection is the other boundary risk. The PHP manual says that if an application exclusively uses prepared statements, the developer can be sure that no SQL injection will occur, but that it remains possible if other portions of the query are built with unescaped input. The rule in code review is simple: table names and sort columns come from an allow list, values come from parameters.

#What does the NCSC expect for dependencies and patching?

Principle 5.1 asks for a vulnerability management process whose scope includes application code and its dependencies on SaaS and PaaS. The NCSC expects mitigations at once for vulnerabilities exploited in the wild, and prioritised updates otherwise, within a defined timescale after an update is released. It says a provider with good change management should patch faster than a typical organisation. It also expects the provider to hold a list of external dependencies and include them in the process.

Principle 7 adds that the provider risk-manages third-party libraries, uses only supported external software, and watches advisories to pull in fixes promptly. The NCSC notes that standards such as ISO/IEC 30111:2019 do not set acceptable timescales, so a vendor has to set its own and keep a record that it met them.

In a PHP project the record is mostly files. The lock file lists exact versions. The commit history shows when an advisory led to an update. A written patch window, such as a number of days for critical advisories, turns an intention into a promise the NCSC says buyers will test against past performance.

#What does secure development look like in the repository?

Principle 7 lists what a buyer wants to be confident about: a development lifecycle at a standard suited to the data, code review of all deployed changes, an automated integration and deployment pipeline that enforces security and keeps an audit trail, separate production and test environments, and configuration and secrets management. The NCSC says secure development does not require all work to be done in-house or by highly vetted staff, and that extensive automation in the build pipeline should be the main way to gain confidence.

For a solo developer or a small team this converts into habits you can show:

  • every change reaches production through a reviewed pull request, including mine
  • the pipeline runs tests and static analysis on each change and keeps its logs
  • production and staging use separate credentials and separate databases
  • secrets live in the environment, never in the repository

#How should sessions and passwords work?

Principle 10 expects a modern password policy, MFA for user access, equally robust authentication of service identities, credential lifecycles for joiners and leavers, and recommends single sign-on to a corporate directory. It also wants a well-monitored break-glass administrator account so that SSO failure does not lock everyone out.

PHP gives a few of these as built-in functions. password_hash creates a one-way hash, and the manual says PASSWORD_DEFAULT currently uses bcrypt and is designed to change over time, so the database column should be able to grow. bcrypt has a maximum input of 72 bytes. session_set_cookie_params accepts secure, httponly and samesite options and must be called before session_start.

<?php
declare(strict_types=1);

session_set_cookie_params([
    'lifetime' => 0,
    'path' => '/',
    'secure' => true,
    'httponly' => true,
    'samesite' => 'Lax',
]);
session_start();

$hash = password_hash($plainPassword, PASSWORD_DEFAULT);

These lines are the floor. MFA, breached password checks and credential rotation need more than a function call, and the NCSC lists them as goals to evidence.

#Which events should the audit log record?

Principle 13.1 says customers should be given the audit data needed to investigate incidents involving their use of the service. It names what to record: creation, modification and deletion of resources, changes to configuration, authentication events both successful and failed, and data accesses. It wants the customer to know the format, the retention period and how the information is delivered, and wants it protected so that neither the customer nor the provider can delete it during the retention period. The NCSC prefers providers that offer APIs to query and archive the data and an auditor role that can read logs without wider privileges.

In a PHP SaaS that is an audit table written from one place, with the tenant, the actor, the action, the object and the time. The application role that writes it has no update or delete right. An export endpoint or a scheduled export gives the customer its own records.

#What do I need from an Edinburgh client first?

These questions shape the work:

  1. Which buyers send you security questionnaires today, and which questions repeat?
  2. Where does the application run, and which parts of the platform does your host manage?
  3. Is tenant separation enforced in one data layer or spread through the controllers?
  4. Do you have a written patch window and a list of external dependencies?

#Start with your next security questionnaire

Send the questionnaire you last received, with the hosting setup, through the contact page. A written estimate is free, and the first email answer arrives within 24 hours on working days. Wider PHP work, such as upgrades and integrations, is set out on the PHP developer page.

Need this service: PHP developer in Edinburgh?

Describe your project by e-mail. I reply within 24 hours.

Describe your project

Latest PHP developer articles

Dec 2, 2026

Laravel Rust: what does it mean for PHP apps?

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.

Explore other WordPress services and knowledge base