PHP developer in Madrid

WordPress for businesses in Madrid, 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 stores customers, patients, tenants or staff makes privacy decisions long before a lawyer reads the policy. A column is created, a log line is written, a backup runs. I am Mariusz Szatkowski, a developer in Gdynia who works remotely and in writing, and for Madrid projects I use the AEPD guide on data protection by design as the checklist for those decisions. I am not a lawyer. The controller decides the legal position, and I build what the decision requires.

Cuatro Torres Business Area in Madrid

Cuatro Torres Business Area, Madrid. Image: Dewel, licence CC BY-SA 4.0, via Wikimedia Commons.

#What does the AEPD guide on privacy by design say?

The Agencia Española de Protección de Datos publishes the Guía de Privacidad desde el Diseño, a 58-page document dated October 2019. It treats the idea as a risk-based, proactive approach that covers the whole life cycle of a system, from conception to withdrawal, through development, production, operation and maintenance. Its stated aim is that data protection is present from the first phases of development and is not a layer added later.

The guide rests on the seven foundational principles of Ann Cavoukian, among them privacy as the default setting and privacy embedded in the design phase. For the default setting it lists practical points that read like a backlog for a PHP project:

  • collection criteria limited to the purpose of the processing
  • use limited to the purposes for which the data were collected
  • access restricted to the parties involved, by function, through separate access profiles
  • strict retention periods and operational mechanisms that enforce them
  • technical and procedural barriers against unauthorised linking of independent data sources

#Who has to apply it?

Under article 25 GDPR the obligation falls on the controller, and the guide says it applies to every controller regardless of size, type of data or nature of processing. It adds that article 83 treats a failure to meet it as sanctionable. Through recital 78 and article 28 GDPR the guide extends the idea to suppliers, developers of products and applications, and device makers. The controller is expected to select products and processors that offer sufficient guarantees.

For a Madrid company that commissions custom software this has a practical meaning. The controller asks the developer how the application meets these points, and the developer should be able to answer with the schema, the code and the records, not with a promise. That is why the last strategy in the guide, demostrar, matters as much as the technical ones.

#Which eight strategies does the guide list?

The guide takes the strategies from the Privacy Design Strategies work cited in its footnotes and groups them. Minimizar, ocultar, separar and abstraer act on the data. Informar, controlar, cumplir and demostrar act on transparency, control and proof. Each strategy has tactics, and the tactics are where a developer finds work to do.

StrategyTactics in the guideWhat it means in a PHP codebase
Minimizarseleccionar, excluir, podar, eliminarfewer fields, scheduled deletion, deletion that reaches backups
Ocultarrestringir, ofuscar, disociar, agregarroles, hashing, encryption, unlinking tables
Separaraislar, distribuirseparate schemas or databases per purpose
Abstraersumarizar, agrupar, perturbarranges and groups instead of exact values in reports
Informarfacilitar, explicar, notificarlayered notices, breach notification path
Controlarconsentir, alertar, elegir, actualizar, retirarconsent records, export, correction, erasure screens
Cumplirdefinir, mantener, defenderwritten policy, procedures, reviews
Demostrarregistrar, auditar, informardecision log, audit trail, reports to the authority

#How does minimizar show up in the schema?

The guide defines minimizar as collecting and processing the least data possible, either from fewer people or fewer data per person. Its four tactics are specific. Seleccionar means choosing only the relevant individuals and attributes, a whitelist. Excluir is the reverse, excluding what is irrelevant in advance. Podar means removing personal data as soon as it is no longer needed, which requires deciding the retention period for each data item in advance and automatic deletion when it expires. Eliminar means deleting completely, in a way that cannot be undone, including from backup copies.

In a PHP project I turn this into questions asked before the table exists. Does a quote request need a phone number? Does a newsletter signup need a name? Which column holds the data that expires first? A retention job is a small script that runs on a schedule:

<?php
// Retention period comes from the controller's written decision, not from the code.
$limit = (new DateTimeImmutable('-12 months'))->format('Y-m-d H:i:s');

$stmt = $pdo->prepare('DELETE FROM enquiries WHERE created_at < :limit');
$stmt->execute(['limit' => $limit]);

The twelve months above are an example. The guide also describes a softer form of podar: when a record holds other information that must stay, the unneeded fields can be reset to a default value. That is an UPDATE instead of a DELETE, and it suits an order that must remain for accounting while the delivery contact can go.

The backup clause in eliminar is the one projects forget. If deleted rows survive in a nightly dump for a year, the deletion is partial. The fix is a decision, not a script: how long dumps are kept, who can restore them, and how a restore re-applies deletions. I write that into the runbook for the controller to approve.

#How do ocultar and abstraer change reports and storage?

Ocultar limits exposure. The guide names restringir, an access policy based on need to know in space (which data) and in time (which processing stage), and ofuscar, making data unintelligible to unauthorised people with encryption and hashing in storage and transmission. Disociar removes the link between data sets that must stay independent, with special attention to metadata, and agregar groups information about several people to avoid correlations.

For PHP this gives three habits:

  • Passwords go through password_hash() with PASSWORD_DEFAULT. The manual says the constant is designed to change over time as stronger algorithms arrive, so the result length can change, and it recommends a column that can grow beyond 60 bytes, with 255 as a good choice. It also says not to supply a salt, because PHP creates a secure one.
  • A value that has to be compared or joined without being readable, for example an email address in an analytics table, can be replaced with a keyed hash from hash_hmac(). The function takes an algorithm such as sha256, the data and a secret key, and returns a hex string. Keep the key outside the database that holds the hashes.
  • Roles decide which screens and which exports a person can reach. An export button is a data flow, and it deserves the same review as a table.
<?php
// The analytics table stores this value, never the address itself.
function pseudonym(string $email, string $key): string
{
    return hash_hmac('sha256', strtolower(trim($email)), $key);
}

Whoever holds the key can recompute the value from a known address, so the result is pseudonymised data and the key becomes a secret with its own access rules. The guide separates this from anonymisation and mentions k-anonymity as a technique for anonymised data. Abstraer goes the other way: sumarizar replaces exact values with ranges, agrupar replaces individuals with categories, perturbar uses approximate values. A dashboard that shows age bands and monthly counts is cheaper to defend than one that lists people. The guide warns that even aggregated data carry some risk when a person can be placed in a small group, so a band with two members is not abstraction.

#What does separar mean for a monolith?

Separar aims to stop one entity from building a complete profile out of data collected for independent purposes. The tactics are aislar, storing data in logically independent databases or applications, and distribuir, spreading processing over units that are physically independent. In a Symfony or Laravel monolith the cheap version is separate schemas or database users per purpose, so that the marketing module cannot query the support tickets table. Where two sources must be joined, the guide suggests scheduled deletion of the indexing tables that link them.

#How do informar and controlar reach the interface?

Informar is transparency in time and form. The guide points to layered notices: a short first layer at the moment and place of collection, with detailed information on a second layer. It also lists notification of the data subject when data come from elsewhere, within a month at the latest, and notification of breaches that pose a high risk. Controlar covers the rights of access, rectification, erasure, objection, portability and restriction, plus giving and withdrawing consent. The guide says withdrawing consent must be as easy as giving it, and that basic functionality should not depend on consent to processing that is not needed for it.

These are screens and endpoints. An account page with export and delete actions, a consent record with timestamp and wording version, a path from a breach report to the people affected. The guide says these features should be considered from the design of the application, so they are in the first sprint, not after launch.

#What counts as proof under demostrar?

Demostrar is the accountability strategy based on article 24 GDPR: the controller can show data subjects and authorities that the policy and the legal duties are met. The tactics are registrar, documenting each decision over time, including contradictory ones, with who took it, when and why; auditar, systematic and documented review; and informar, documenting audit results and incidents and making them available to the authority.

In a project this becomes a short decision log in the repository: why this field exists, why this retention period, who may export, which processor receives which data. Each entry has a date and a name. When the controller writes an Article 28 processor agreement, the log is the technical annex it can point to. The guide also notes that a data protection impact assessment, where required, and the documented decisions are part of the design of any new processing.

#A short design checklist for a Madrid PHP project

  • List every personal data field and the purpose that justifies it. Delete fields without one.
  • Write a retention period per field, and schedule the deletion.
  • Decide how long backups live and how a restore re-applies deletions.
  • Separate access by role, and review exports as data flows.
  • Hash passwords with password_hash(), and pseudonymise identifiers that only need matching.
  • Keep purposes apart in the schema where a profile of one person could otherwise form.
  • Build consent, access, correction and erasure into the first version.
  • Keep a dated decision log next to the code.

#How does a project run?

  1. You send the application scope, the personal data it holds, the processors involved and your deadline. I answer by email, in writing.
  2. I read the schema and the main flows against the eight strategies, and list the fields, jobs and screens that would change, with questions for the controller.
  3. The build runs on staging, where you check retention jobs, exports and roles with test records.
  4. After your written sign-off on that copy, I deploy. A maintenance plan can keep a WordPress-based part of the system updated.

Development stays with me and is not handed to subcontractors. Broader PHP work is described under PHP developer.

#Send me your application

If your Madrid team runs a PHP application with personal data, describe it through the contact form: the stack, where the data live, which processors touch them and the date you need an answer. The first written estimate costs nothing, and it names the schema and job changes the AEPD strategies would call for. The legal reading stays with you and your adviser.

Need this service: PHP developer in Madrid?

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