Contact me

~ / projects / 03

Personal project, 2026

The site you are reading, written in object-oriented PHP with no framework, its content stored in SQLite.

Design, development, content

Architecture7 components

The content does not live in the templates. It is written in PHP files, then php bin/console db:build rebuilds both SQLite databases. During a visit, the site only reads.
Architecture diagram: Visitor to Kernel (HTTP), Kernel to Controllers (route), Controllers to Views (data), Controllers to SQLite (PDO), Content to db:build (reads), db:build to SQLite (generates). PHP SERVER HTTP route data PDO reads generates Visitorbrowser Kernelrouter / headers Controllersobject-oriented PHP ViewsPHP templates Contentdatabase/content/*.php db:buildbin/console SQLiteone database per language

Context

A bilingual portfolio built from scratch. Router, controllers and views written by hand, content stored in two SQLite databases, one per language. No library, on the server or in the browser.

The idea

A portfolio that proves what it claims. The numbers on the home page come from the database, the Skills page shows the actual SQL query, and the code is public.

The constraints

No framework, no CMS. Everything has to run on a plain PHP server, load fast and stay readable on a phone, in French and in English.

What I built6 features

  1. A bilingual router

    Every route exists in both languages, with its own paths: /projets becomes /en/projects. Switching language keeps the current page.

  2. Content in a database

    The texts are written in PHP, then db:build fills one SQLite database per language. The numbers and lists on the site are real queries.

  3. The SQL console

    On the Skills page, visitors tick filters and see the query. Every value goes through an allow list and bound parameters: what is shown is what runs.

  4. A checked translation

    php bin/console i18n:check collects every text on the site and flags the ones with no English translation.

  5. Security headers

    A strict Content Security Policy, X-Frame-Options, nosniff. No external script, and the YouTube video only loads on click.

  6. Light and accessible

    No JavaScript library, self-hosted fonts, animations turned off for people who disable them. Layout checked from 320 to 1500 pixels wide.

Code excerpts2 excerpts

Code copied as is from the repositories:

The headers sent with every page PHP
public function withSecurityHeaders(): self
{
    $clone = clone $this;
    $clone->headers += [
        'X-Content-Type-Options'  => 'nosniff',
        'X-Frame-Options'         => 'DENY',
        'Referrer-Policy'         => 'strict-origin-when-cross-origin',
        'Permissions-Policy'      => 'camera=(), microphone=(), geolocation=(), interest-cohort=()',
        'Cross-Origin-Opener-Policy' => 'same-origin',
        'Content-Security-Policy' => implode('; ', [
            "default-src 'self'",
            "script-src 'self'",
            "style-src 'self' 'unsafe-inline'",
            "img-src 'self' data:",
            "font-src 'self'",
            "connect-src 'self'",
            'frame-src https://www.youtube-nocookie.com',
            "object-src 'none'",
            "base-uri 'self'",
            "form-action 'self'",
            "frame-ancestors 'none'",
        ]),
    ];

    return $clone;
website / src/Http/Response.php Set by the code rather than the server configuration, they protect the site whatever the hosting.
The allow list behind the SQL console PHP
public function __construct(array $domains, array $statuses, string $order, string $locale = 'fr')
{
    // array_intersect garde l'ordre de la liste blanche et écarte toute valeur inconnue.
    $this->domains = array_values(array_intersect(self::DOMAINS, $domains));
    $this->statuses = array_values(array_intersect(self::STATUSES, $statuses));
    $this->order = in_array($order, self::ORDERS, true) ? $order : 'niveau';
    $this->dialect = self::DIALECTS[$locale] ?? self::DIALECTS['fr'];
}
website / src/Service/SkillQuery.php array_intersect only keeps known values: nothing the visitor types reaches the query as is.

Stack8 technologies

Backend

  • PHP 8.5
  • PDO
  • Composer

Frontend

  • JavaScript
  • HTML / CSS

Data

  • SQLite

Tools

  • Git
  • Claude Code

BTS SIO framework10 skills

The framework competencies this project puts to work.

B1IT service support and delivery

  • B1.3Develop the organisation's online presence
  • B1.4Work in project mode
  • B1.5Make an IT service available to users
  • B1.6Organise one's professional development

B2Application design and development (SLAM)

  • B2.1.1Model an application solution
  • B2.1.3Develop an application solution
  • B2.1.4Design and build a user interface
  • B2.2.4Update technical and user documentation
  • B2.3.1Design or adapt a database
  • B2.3.2Carry out operations on a database