PHP developer in Marseille

WordPress for businesses in Marseille, 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.
  • Local WordPress meetup: Marseille WordPress Meetup

My WordPress.org profile

A custom PHP application in Marseille that handles customer, employee or patient data has a French reference for how to build it: the CNIL’s GDPR guide for development teams. I am Mariusz Szatkowski, a developer in Gdynia who has worked with WordPress since 2006 and builds custom PHP on Laravel and Symfony, remotely and in writing. This page takes the fiches that change PHP code most and shows what each one asks for in practice. I am not a lawyer, and the controller decides the legal basis and retention periods.

Rows of moored boats inside the Vieux-Port basin of Marseille

The Old Port basin, Marseille. Picture by Clément Bardot, under CC BY-SA 4.0, hosted on Wikimedia Commons.

#What is the CNIL GDPR guide for developers?

The French data protection authority, the CNIL, publishes the Guide RGPD de l’équipe de développement. Its source text lives in a public GitHub repository of the CNIL’s innovation lab, LINC, published under GPLv3 and the French Licence Ouverte 2.0. When I read it on 4 December 2026, the repository had last changed in April 2024.

The guide has 18 thematic fiches with code examples. It addresses developers working alone or in a team, people who manage a team, and contractors who develop for third parties. The CNIL says clearly what it is not: the good practices do not cover every regulatory requirement and are not meant to be prescriptive. They are a first level of measures, and some processing will need more.

Three fiches deal with trackers, audience measurement and defence against attacks. They are left out of this page on purpose. What follows covers the parts that decide how a PHP codebase is organised: the starting inventory, source code, minimisation, user management, libraries, testing, data subject rights and retention.

#Where does a GDPR-ready PHP project start?

Fiche 0 sets six steps before any code. In short:

  1. learn the main GDPR principles, and in a team name one person who steers compliance
  2. map and categorise the data and the processing, ideally in a record of processing activities
  3. prioritise actions before development starts
  4. manage risks, with a data protection impact assessment where processing is likely to be high risk
  5. organise internal processes for events such as a security flaw, an access request or a change of provider
  6. document compliance so it can be shown at any time

The second step contains a warning that matters for PHP applications. The CNIL notes that personal data turns up in unexpected places: server logs, cache files, spreadsheets. In a PHP project that means the inventory has to include the framework’s log directory, session storage, any file cache, queued job payloads and the exports someone downloads from an admin screen.

For the build this produces a short document at the start of the project: which tables and columns hold personal data, which processes read them, where copies end up. It is the basis for every later decision on this page.

#How should the repository handle secrets?

Fiche 4 asks for a source code manager from the first day, with strong authentication or SSH keys, access levels per person, regular backups, and protected branches where the tool supports them. It notes that a plain FTP server is not a source code manager.

On secrets the guide is specific. Passwords and keys stay out of the repository: in files that are never committed and are listed in .gitignore, in environment variables, in a separate restricted store, or in a dedicated secrets manager. If personal data or another secret has been committed, the history has to be purged completely, because a later commit does not remove it from earlier versions.

The guide adds a detail that PHP developers meet often: environment variables must not be written to logs or shown when the application throws an error. PHP itself has two settings that help here, both documented on php.net:

  • display_errors decides whether errors are printed to the page. The bundled php.ini-production sets it to Off, and the manual says displaying errors should never be used on systems connected to the internet.
  • Since PHP 8.2 the SensitiveParameter attribute marks a function parameter whose value is redacted when it appears in a stack trace.
<?php
declare(strict_types=1);

final class PaymentGatewayClient
{
    public function __construct(
        private string $endpoint,
        #[\SensitiveParameter] private string $apiKey,
    ) {}
}

If the constructor throws, the trace shows a placeholder object instead of the key. That keeps one common leak path, an exception logged with full arguments, from copying credentials into log files that the CNIL counts as personal data stores.

#Which data should the application collect?

Fiche 7 restates the GDPR minimisation rule: collect only data that is adequate, relevant and necessary for the purpose defined at the time of collection. The guide turns it into concrete steps:

  • document the types of data before building, and skip fields that a category of users does not need
  • reduce precision, for example store only the year of birth when the application only needs the year
  • avoid health or criminal record data unless the purpose requires it
  • keep sensitive data and passwords out of logs
  • make optional features, such as geolocation for a search, a choice the user makes, and keep their data only as long as the feature needs it

For a PHP form or API endpoint the practical test is simple. Every field in the validation rules and the database migration should match a line in the inventory from fiche 0. A field without a purpose does not get a column.

#How should user accounts and roles work?

Fiche 8 asks for unique identifiers for every person, authentication before any access to personal data, and access policies defined at design time with separate rights for reading, writing and deleting. Roles group those rights. Generic shared accounts are to be avoided, and administrator or root accounts are not for routine work.

For password storage in PHP, php.net documents password_hash(). With PASSWORD_DEFAULT it currently uses bcrypt, and the manual warns that the constant is designed to change as stronger algorithms are added. It therefore recommends a database column that can grow beyond 60 bytes, with 255 bytes as a good choice. A VARCHAR(60) column in a legacy schema is a migration to plan before the default changes.

The fiche also allows activity logging to detect fraudulent access, with two limits: logs serve only the correct use of the system, and they are not kept longer than needed.

#How do you control Composer dependencies?

Fiche 9 treats every library and SDK as added attack surface. Its advice:

  • weigh each new dependency, and enable only the features you use
  • prefer maintained projects with an active community and documentation
  • check what data an SDK collects and where it sends it, with consent, transfer rules and an Article 28 processor contract where they apply
  • read the documentation and change insecure default configuration
  • map transitive dependencies and watch for typosquatting and changes of package ownership
  • have a documented procedure to deploy security updates quickly, and replace components that reach end of support

Composer covers part of this out of the box. According to getcomposer.org, composer audit checks installed packages against security advisories from the Packagist.org API, also detects abandoned packages and packages flagged as malware, and returns exit code 1 when it finds something. The --locked option audits what the lock file says regardless of the vendor directory.

composer audit --locked --format=summary

Run in CI on every pull request, it gives the documented update procedure the fiche asks for a trigger. The commit history of composer.lock then shows when each fix reached the code.

#Can test environments use production data?

No, according to fiche 11. The CNIL says real production data must not be used during development and testing, because doing so diverts the data from its original purpose and increases security risks: more people see it, and it is stored in more places. It recommends a fictitious dataset that looks like the real one, and anonymisation where production configuration has to be imported.

The fiche also allows one fallback: if personal data is used outside production after all, the test environment needs the same security measures as production. In practice that is rarely cheaper than seeding fake data.

In a PHP project this means scripts that generate plausible French names, addresses and IBANs for the test database, and a rule in the runbook that nobody restores a production dump to a laptop or a shared staging server. Automated tests run in continuous integration, which the fiche also recommends, alongside security tests such as fuzzing and vulnerability scans.

#How should retention purges be built?

Fiches 7 and 14 work together. Personal data cannot be kept indefinitely. The CNIL describes three phases: the active database, intermediate archiving, then final archiving or deletion. Two warnings matter for developers:

  • marking a row as archived while leaving it in the active database does not count as archiving
  • archived data should be reachable only by a specific team, through separate access

The guide recommends automatic purges when a retention period expires, deletion that is real rather than logical, and a log of each purge run as proof of erasure. Its example retention periods include 6 months to one year for logs and 3 years for the contact details of a prospect who never responded.

The CNIL’s own example uses the MySQL event scheduler. In a PHP application the same job often runs as a scheduled command, so it can share code with the erasure feature, which fiche 14 explicitly recommends.

<?php
declare(strict_types=1);

// Scheduled daily. Retention period comes from the controller's documented decision.
$cutoff = (new DateTimeImmutable('now'))->modify('-3 years')->format('Y-m-d');
$stmt = $pdo->prepare('DELETE FROM prospects WHERE last_contact_at < :cutoff AND responded = 0');
$stmt->execute(['cutoff' => $cutoff]);
$logger->info('prospect purge', ['deleted' => $stmt->rowCount(), 'cutoff' => $cutoff]);

The purge log records a count and a date, never the deleted rows themselves.

#Which data subject rights belong in the code?

Fiche 13 says every organisation must tell people where and how to exercise their rights. Building the rights into the application is not mandatory, but the CNIL notes it meets user expectations and cuts the time spent on each request. Any self-service action needs secure authentication, and every operation that changes personal data should be traced.

The fiche proposes one implementation per right:

RightPossible implementation in the guide
Accessa screen showing all data about the person, or a downloadable archive when it is large
Erasuredelete everything about the person, notify processors automatically, and handle backups so erased data is not restored
Objectiona control to object, after which data already collected is deleted and no more is collected
Portabilitya download in a standard machine-readable format such as CSV, XML or JSON
Rectificationediting directly in the user account
Restrictionan admin “quarantine” in which the person’s data can be neither read nor changed

The erasure row is the one most often left half done. Deleting the user row is easy. The backup question needs a decision from the controller and a technical answer, such as a list of erased identifiers that a restore procedure applies again.

#How does a project run?

  1. You send a description of the application, the framework and PHP version, who the users are, and the deadline. My email answer to that first message comes within 24 hours on working days.
  2. I write down the scope, my assumptions and the questions on data, roles and retention that the controller has to answer.
  3. Work happens in your repository, on a staging copy seeded with fictitious data.
  4. You review and accept in writing before anything goes live, and you keep the repository and documentation.

When I need access to personal data, a written Article 28 processor arrangement comes first. Nobody else touches the code: I am a sole trader and hand no part of the development to subcontractors. The wider offer for PHP projects is on the PHP developer page.

#Send the application details

For a Marseille PHP application that should follow the CNIL guide, write through the contact form with the framework, the PHP version, the kinds of personal data it holds and your deadline. A first written estimate costs you nothing. Retention periods and the legal basis stay your decision, made with your data protection officer or adviser.

Need this service: PHP developer in Marseille?

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