Skip to content
View DeGraciaMathieu's full-sized avatar
🦖
roaar
🦖
roaar

Sponsoring

@Halleck45

Block or report DeGraciaMathieu

Block user

Prevent this user from interacting with your repositories and sending you notifications. Learn more about blocking users.

You must be logged in to block users.

Content in all repositories owned by your account will be closed.
Maximum 250 characters. Please don’t include any personal information such as legal names or email addresses. This note will only be visible to you.
Report abuse

Contact GitHub support about this user’s behavior. Learn more about reporting abuse.

Report abuse
DeGraciaMathieu/README.md

Mathieu De Gracia

Backend lead and software architect, with nearly fifteen years of professional PHP behind me, and Laravel since version 4. Lead Chapter Backend at GlobalExam, co-founder of Laravel France, author of PHP The Readability Way.

I build with AI agents, and I build the tools that keep their code understandable.

🤖 Building with agents

  • Établi 🔥: a self-hosted forge where an agent writes the code and the decisions stay with you. Today, Claude Code runs headless on an EC2 instance, driven from Telegram, and only comes back to you for what is yours to decide. No inbound port: long polling and SSH over SSM.
  • acp-php 🔥: a PHP SDK for the Agent Client Protocol, to drive coding agents like Claude Code, Codex or Gemini CLI from PHP the way an editor does: open sessions, send prompts, stream updates, answer permission requests. ACP had official SDKs in five languages, none in PHP.
  • What moved 🔥: a GitHub Action that maps what a pull request moved among your PHP contexts and their dependencies. Reviewing a pull request written by an AI starts with a map, not a diff. The analysis lives in what-moved-core.
  • quotabar: a macOS menu bar app showing where you stand on your Claude Code plan limits.
  • claude-game-refactor-plugin: a Claude Code plugin that turns a single-file HTML game prototype into a split, tested and documented codebase.
  • tiny-shakespeare-gpt: a minimal character-level GPT, about a million parameters in a single file, built from scratch to understand how a GPT works.

🏛️ Keeping architecture readable

Tools to measure and explain the structure of a PHP codebase.

  • php-dep: extracts the class dependency graph of a project as JSON, covering inheritance, interfaces, traits, injections, instantiations, static calls, attributes. Files are parsed in parallel. Two tools build on it: php-dep-dashboard, an interactive graph explorer in the browser, and php-dep-louvain, which detects communities of tightly coupled classes.
  • php-class-dependencies-analyzer: measures how classes and components depend on each other, finds dependency cycles and breaks of the Stable Dependencies Principle, then fails your CI when the architecture drifts.
  • Smaller detectors, one signal each: code smells · vocabulary · arguments · line length · variable lifetime · Git history

🔭 Explorations

Going back to where ideas come from: an old architecture and academic algorithms, rebuilt in PHP to understand them.

  • ericsson-1967: a proof of concept of a blocks-and-signals architecture, inspired by the Ericsson telephone exchanges of the late 1960s. No code describes the business scenario: the behaviour emerges from named signals travelling between fixed blocks.
  • algo-louvain-php and GirvanNewman: two community detection algorithms from graph theory, implemented in PHP.
  • php-rasch: the Rasch model from item response theory, implemented in PHP.

🛠️ Applications

  • Trivia: the stories behind the conventions of our trade, like the X- prefix, chmod 777, Ariane 501 or the core dump. A Laravel site with about seventy stories, and an MCP server secured with OAuth 2.1 so agents can read and write them.
  • devdock: a macOS menu bar app for the developer's daily routine: open a project, see what is uncommitted or unpushed, find which process listens on which port.
  • coreload: a macOS menu bar app showing which processes load your CPU, counted in cores.
  • pdf-translate-inplace: translates English PDFs to French in place, keeping the original layout, images and fonts.

🎮 Game lab

Games are where I push AI-assisted development furthest. Since summer 2026 I have built around thirty prototypes. Each one starts as a single HTML file, then my Claude Code plugin, claude-game-refactor-plugin, turns it into native ES modules with tests and documentation. All the games below went through it (most are in French):

Game What it is
Tenir la charge Place servers, caches, queues and databases, then watch your infrastructure take the traffic, the outages and the attacks. 19 missions, a growth mode and a daily challenge.
Tête Carrée Arena survival against waves of zombies, with keyboard, touch or gamepad. Test and performance CI, published on itch.io.
Livre-jeu A choose-your-own-adventure gamebook for phones, with dice rolls and combat.
old-school-wargame A turn-based hex wargame: two armies of equal strength on a map drawn at random each game. Eight turns, against an AI or two players on one screen.
Dwarf A colony simulation inspired by Dwarf Fortress, rendered in ASCII. You give orders, the dwarves decide.
Contrée A solitaire hex-tile game: build a country by closing mountains, drawing rivers and surrounding villages.

✍️ Writing and community

Pinned Loading

  1. php-class-dependencies-analyzer php-class-dependencies-analyzer Public

    PHP dependency analyzer: Robert C. Martin metrics, cycles and stable dependency checks for your components, with CI rules and an interactive HTML report.

    PHP 21

  2. what-moved what-moved Public

    Maps what a pull request moved among your PHP classes and their dependencies, to review AI-written code without the mental load.

    4

  3. etabli etabli Public

    A self-hosted software forge: Claude Code works headless on your repos and asks you on Telegram when a decision is yours.

    PHP 1

  4. hold-the-load hold-the-load Public

    A web architecture game: place servers, caches, queues and databases, then watch your infrastructure take the load.

    JavaScript

  5. tiny-shakespeare-gpt tiny-shakespeare-gpt Public

    A minimal character-level GPT built from scratch in PyTorch, in a single commented file, trained on Shakespeare.

    Python

  6. acp-php acp-php Public

    PHP SDK for the Agent Client Protocol (ACP): drive coding agents like Claude Code, Codex or Gemini CLI from PHP.

    PHP 1