{
  "id": 5984223,
  "title": "Tanuki Framework, a PHP framework for people who actually like writing PHP",
  "url": "https://urgent.news/2026/09/06/tanuki-framework-a-php-framework-for-people-who-actually-like-writing",
  "topic": "tech",
  "section": "Tech",
  "published": "2026-09-06T13:31:53.000Z",
  "source": {
    "name": "Dev.to",
    "slug": "dev-to",
    "url": "https://dev.to/technomantus_corvi/tanuki-framework-a-php-framework-for-people-who-actually-like-writing-php-2pli"
  },
  "original_language": "en",
  "account": "The Tanuki Framework is a lightweight PHP Model-View-Controller (MVC) framework designed for developers who prefer writing raw PHP over learning complex framework features. It addresses the dilemma many PHP developers face when deciding between using a full framework with unnecessary features or building everything from scratch. Tanuki offers a middle ground, providing a real MVC skeleton without the heavy weight.\n\nTanuki features a simple router that maps routes using basic arrays, a Model base class that wraps PDO for ORM-free database interactions, and views that are regular PHP files with inline templating syntax. This approach allows developers to have full control over their code while still benefiting from a structured MVC pattern if desired.\n\nThe framework aims to be minimalistic, covering only the essentials: routing, models, views, session handling, CSRF protection, and a basic internationalization system. Developers can add optional extensions, such as session-based authentication and an admin panel, without being forced to use them. Tanuki also prioritizes security by using prepared statements for all Model methods and implementing CSRF protection explicitly, rather than applying it globally, which could interfere with certain API endpoints.\n\nWith a focus on simplicity and developer freedom, Tanuki offers a straightforward request lifecycle and example code for a complete TODO list CRUD application, demonstrating real-world use cases like CSRF checks, form repopulation, and flash messages. The framework is designed to be easy to understand and extend, without any hidden complexities that might overwhelm new developers.",
  "summary": "The problem I kept running into Every time I started a small PHP project, I had two bad options. Option one: grab a full framework. Get an ORM I have to learn a query language for, a template engine that's basically PHP-but-different, a service container, middleware pipelines, and a folder structure designed by a committee. Half my \"learning\" time goes to the framework's opinions, not my actual…",
  "key_points": [],
  "editors_take": null,
  "illustration": null,
  "coverage": {
    "outlets": 2,
    "also_reported_by": [
      {
        "outlet": "Dev.to",
        "title": "Tanuki Framework, un framework PHP para gente a la que realmente le gusta escribir PHP Vanilla",
        "url": "https://urgent.news/2026/09/06/tanuki-framework-un-framework-php-para-gente-a-la-que-realmente-le",
        "published": "2026-09-06T13:27:51.000Z"
      }
    ]
  },
  "ai_generated": true,
  "disclaimer": "Summaries, key points and the editor’s take are written by software from other outlets’ reporting and may contain errors — always check the linked original."
}