PHP developer in Oslo

WordPress for businesses in Oslo, 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 PHP application that handles personal data meets the privacy rules in its first requirement, not in its privacy policy. I am Mariusz Szatkowski, working remotely from Gdynia on PHP and WordPress since 2006, with every step agreed in writing. I am not a lawyer. Whether a processing activity is lawful is for you and your adviser. What I build is the code and the records that make the decisions visible.

Birkelunden in Oslo

Birkelunden in Oslo. Photo: Leonhard Lenz, CC0, Wikimedia Commons.

#Is the GDPR Norwegian law?

Yes. Personopplysningsloven carries the date 15 June 2018 (LOV-2018-06-15-38) and has been in force since 20 July 2018, according to Lovdata. Section 1 is titled “Gjennomføring av personvernforordningen”. It says the regulation applies as law with the adaptations that follow from Annex XI, Protocol 1 and the EEA Agreement otherwise. Chapter 6 of the act covers supervision and complaints, and chapter 7 covers sanctions.

For a Norwegian company this means the GDPR text is the working rulebook, and Datatilsynet is the authority that reads it. A PHP application built in Oslo, in Gdynia or anywhere else is judged against the same article numbers.

#What does Datatilsynet require from software development?

Datatilsynet’s page on built-in privacy and privacy by default states that Article 25 of the GDPR requires privacy to be built into processing activities. It calls built-in privacy a central requirement of personopplysningsloven and says it means considering privacy in every development phase of a system. The requirement covers all means used to process personal data, regardless of the size of the business.

Three statements from that page matter to anyone who writes code for a client:

  • The controller (behandlingsansvarlig) has the overall responsibility.
  • Suppliers of products and services should aim to develop them in line with the requirement.
  • The controller must be able to show that the requirements are met, for example through risk analyses and data protection impact assessments, also for finished products and services.

Datatilsynet also publishes a development guide, Programvareutvikling med innebygd personvern. Its page for suppliers to the health and care sector calls the guide a supplement to the company’s own development method and says that development should follow a method with fixed activities so that the end product is robust. The same page names seven activities: training, requirements, design, coding, test, release and operation. I could not open the guide’s own web page, so the sections below follow the poster that Datatilsynet publishes with it and the pages above. If your project is regulated by sector rules, read the guide itself.

#Training and requirements: what does the PHP team write down first?

The poster starts with training: a differentiated training plan for the professions involved in development, anchored in management. For a project with one developer and one client contact, that becomes a short written agreement on who reads which rules before building starts.

At the requirements stage the poster asks for an overview of:

  • the types of personal data in the application
  • the legal basis and the purpose
  • who is the controller, the processor and the subcontractors
  • whether consent or a statutory basis carries the processing
  • which data is necessary for the purpose, how detailed it must be, whether history is needed, where it is stored and for how long, who has access and from where
  • security requirements, with OWASP ASVS given as an example
  • transparency toward the people concerned, and how they exercise their rights
  • a defined tolerance level, risk assessments and an assessment of privacy impact

This list is the most useful single page for scoping a PHP build. In a project it turns into a table in the repository, one row per field, with the purpose, the basis, the retention period and the role that may read it. The schema, the forms and the admin screens are then written against that table. When a requirement changes, the table changes first.

Datatilsynet’s own examples show what the table does. For an online bookshop it says birth date and phone number are not needed to sell books, so those fields should not be mandatory in the order form, and e-book sales get a separate form without address fields. For an online shop with a customer database it says marketing analysis and purchasing-power analysis are not part of the original purpose, so the controller has to assess compatibility or leave those features out. The page gives the short rule “select before you collect”.

#Design: how does privacy show up in a PHP data model?

At the design stage the poster asks that the rights of the people concerned are reflected in the design: limit and minimise the data, anonymise or pseudonymise, aggregate, and make privacy the default setting. It also asks for an analysis of how the software could be misused, plus attack surface analysis and threat modelling.

In PHP this decides things that are expensive to change later:

  • which columns exist at all, and which are nullable because the purpose does not need them
  • whether a report needs row-level personal data or an aggregate
  • which user role sees which fields, enforced in a service class and not only in the template
  • how a data subject’s request for access or deletion finds every copy, including search indexes, exports and queue payloads

Datatilsynet’s page on privacy by default adds that defaults must protect the rights of the people concerned as far as possible, and that data must not be kept longer than necessary for the purpose. Organisations must set and justify retention periods, and deletion can be automatic or manual after that time. Anonymisation counts as deletion. A membership system is the page’s example: data is deleted when the membership ends and no legal basis for keeping it remains, and the controller moves from manual to automated deletion.

A retention rule can be a small, testable function with the period read from configuration, so the number lives in one place:

<?php
declare(strict_types=1);

// Deletes closed memberships older than the configured retention period.
function purgeExpiredMembers(PDO $db, DateTimeImmutable $now, int $retentionDays): int
{
    $cutoff = $now->modify("-{$retentionDays} days")->format('Y-m-d');

    $stmt = $db->prepare(
        'DELETE FROM members WHERE membership_ended_on IS NOT NULL AND membership_ended_on < ?'
    );
    $stmt->execute([$cutoff]);

    return $stmt->rowCount();
}

The function takes the clock as an argument, so a test can pass a fixed date and assert how many rows go. The retention period itself is not a developer decision. It comes from the requirements table.

#Coding: libraries, tooling and personal data in logs

For coding the poster lists several measures:

  • describe the permitted tools, processes and frameworks, and risk-assess and approve them internally
  • analyse functions, APIs, third-party libraries and modules, ban the unsafe ones and update those that are outdated or have known vulnerabilities
  • run static code analysis and code review regularly, automatic and supplemented by manual
  • check the data flow, storage and caching of personal data
  • disable unnecessary tracking, logging and collection of personal data

Four of these have direct PHP counterparts.

Permitted frameworks and libraries. The approved list is the composer.json of the project plus a short note on why each package is there. Adding a package is a decision that a person with authority makes, not a side effect of a quick fix.

Known vulnerabilities in dependencies. The Composer manual describes composer audit as a check of installed packages against policies such as security advisories, using the Packagist.org API by default. With the --locked option it audits the packages in the lock file regardless of what is currently in the vendor directory, and it exits with code 1 when it finds packages matching the policies. Run in the build pipeline, it turns the poster’s “update those with known vulnerabilities” into a failing check:

composer audit --locked --format=plain

SQL queries. The PHP manual says that if an application exclusively uses prepared statements, the developer can be sure that no SQL injection will occur. It adds the caveat that SQL injection is still possible if other parts of the query are built with unescaped input. The poster names SQL injection and cross-site scripting as the known flaws to test for. The consequence for code review is simple: a query built by concatenation is a finding, whatever the input looks like today.

Passwords. The manual for password_hash() says the PASSWORD_DEFAULT constant is designed to change over time as stronger algorithms are added, so the result can grow, and it recommends a column that can expand beyond 60 bytes, with 255 bytes a good choice. It also says the function creates a secure salt automatically and recommends against passing one. A schema with a 60-character password column is a design defect that the requirements table would not catch, and a code review would.

For logging, the poster’s point is about what the application writes down. Request logs, exception messages and queue payloads often carry email addresses, names and form content. The remedy is a rule decided at the requirements stage and checked in review: which fields may appear in a log line, and for how long logs live.

#Test: what does Datatilsynet expect before release?

The poster puts security testing inside testing. It asks to test whether the privacy and security requirements are implemented, and implemented correctly, and to run dynamic testing, fuzz testing and penetration testing or vulnerability analysis. It names cross-site scripting and SQL injection and asks to test all input fields and interfaces, with the OWASP Testing Project as an example. It also asks to verify that attack vectors found in the design phase were handled and that new ones introduced during coding were found. Test data should be fictitious or synthetic.

Two habits make this practical in a PHP project:

  • a seeded fixture set with invented people, generated by a script in the repository, so no developer needs a copy of production data
  • a test per requirement row that matters: the field that must be absent from the export, the role that must not read the record, the deletion that must remove the child rows

Whether a pen test is needed for a given application is a risk decision for the controller. The poster treats it as part of testing.

#Release and operation: who signs off?

For release the poster asks for a plan for incident handling that covers tasks, incidents, authority and roles after release, a full security review in which the data protection officer and a security adviser verify that the requirements are implemented and work as intended, and approval of the release by someone with authority. It also asks to archive all assessments, analyses, tests, documentation and code.

For operation it asks to handle incidents and deviations according to the plan, and to run a management system for privacy and information security that covers acquisition, operation and maintenance, with routines for logging, testing and measuring the effect of organisational and technical measures.

In a project this becomes three files in the repository and one staging copy:

  1. The requirements table.
  2. A release checklist, signed by the person you name before the code goes live.
  3. A runbook for incidents: who is called, what is switched off, where the logs are.

The staging copy, with synthetic data, is where each build runs first.

Maintenance after release belongs to the same chain. Updates to PHP, to the framework and to Composer packages are decisions with a record. If you run WordPress next to a custom application, the WordPress maintenance page describes how updates run on a staging copy first.

#What happens when a supplier writes the code?

Datatilsynet’s page on responsibility says the controller must assess whether third-party solutions really have built-in privacy, also when they are developed externally. The controller must require, assess and make sure that processors meet the requirements, and do it again at regular intervals. Suppliers of products and services should aim to develop them in line with the requirement, so that customers can use them.

For a company that orders a PHP application, the practical reading is a short set of questions put to the developer before the contract is signed, and again at each release:

  • Where is the requirements table, and who approved it?
  • Which libraries does the application use, and when was the last advisory check?
  • What personal data reaches logs, backups and test environments?
  • Where does the data live, and which subprocessors touch it?
  • What is the deletion routine, and where is it tested?

A written processor agreement belongs to the project when the developer gets access to personal data. The GDPR article that governs it is Article 28, and the template and wording are for your adviser.

#What does Datatilsynet do when the requirement is not met?

Datatilsynet’s page on enforcement says the authority can supervise compliance with the privacy by design requirement, under Article 58 of the GDPR, and that corrective measures include administrative fines or an order to bring the processing into line with the law. When a fine is imposed, it says, the assessment of a breach of privacy by design is a particularly important factor in setting the size of the fine. The page gives no examples of fines, and I give none here.

#Checklist for a PHP project in Norway

  • Write the requirements table before the schema: data, purpose, basis, retention, access.
  • Keep the list of permitted frameworks and libraries in the repository, with an owner for each decision.
  • Run composer audit --locked in the build and treat a non-zero exit as a failed build.
  • Use prepared statements for every query, and review any query built by concatenation.
  • Decide which fields may reach logs, and for how long logs live.
  • Automate deletion where the retention period is known, and test it with a fixed clock.
  • Use synthetic data outside production.
  • Name the person who approves a release, and archive the review.
  • Put the processor agreement in place before the developer reads personal data.

#How does a project run?

  1. You send the application, the data it handles, the hosting and your deadline. On working days I answer email within 24 hours.
  2. I write down the scope and my assumptions, with questions that come from the requirements list above.
  3. I build on a staging copy with synthetic data, and you check the result there.
  4. The release goes live after your written acceptance. Everything stays in email and shared documents, and you keep the repository at handover.

My full PHP offer is described on the PHP developer page.

#Send me your application

If you plan a custom PHP application in Oslo that handles personal data, send me the scope, the data it holds, the hosting and your deadline through the contact form. For an Oslo project the first written estimate is free of charge. Which legal basis you rely on, and whether you need a data protection impact assessment, is for you and your adviser to decide.

See also in Norway

Need this service: PHP developer in Oslo?

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