All PHPue topics
Each topic is self-contained and also available as markdown at /knowledge/<topic>.md.
For AI tools, /llms-full.txt contains all of them in one file.
Start here
- What PHPue is (and is not): Definition, mental model, requirements, project layout and the request lifecycle of PHPue 0.0.3.
- Rules for AI coding agents: The hard rules, the things never to bring in from Vue/React/Blade, the verification workflow, and an AGENTS.md / CLAUDE.md to drop into any PHPue project.
- PHPue Agent Skill for Claude Code and Codex: Download the Agent Skill the PHPue author uses (SKILL.md, in-depth references, a starter app and compile/lint scripts) and install it for Claude Code, Codex or the Claude apps.
- Quick start: your first PHPue app: Get the two core files, write App.pvue and a view, run it with php -S, build .dist and deploy.
Core reference
- .pvue files: the four blocks: The script (PHP), header (head tags), template (HTML) and cscript (browser JS) blocks, and how the compiler finds them.
- Templates: {{ }}, p-if, p-for and forms: Escaped output, conditional and repeated elements, raw PHP in templates, forms without p-model, and showing PHPue code as text.
- Components and inherited scope: @require, <Component/> tags, why components need no props (they inherit the parent scope), loops and the rules for component code.
- Views, routing and 404 pages: File-name routing from views/*.pvue, #require, query parameters instead of nested paths, navigation helpers and custom 404 pages.
- @AJAX: server functions for the browser: Declaring @AJAX('POST'|'GET') handlers, calling them with fetch, method enforcement, responses, uploads and security.
- backend/, scope, sessions and language: Auto-loaded backend classes and singletons, variable scope between App, views and AJAX, PHPUE_SESSION lazy sessions, phpue_set_lang and file paths.
- cscript, AlpineJS, x-ssr and HTMX: Passing PHP data to JavaScript, adding AlpineJS, the x-ssr directive for server-rendered lists, and HTMX-style navigation.
Ship it
- Build, deploy, security and caching: Serving modes, php index.php build, the .dist layout, deployment options, Apache/nginx config, dev-tool safety and cacheable pages.
- Official extensions: MetaControl for per-page SEO, Matrix CMS for flat-file content, x-ssr for Alpine, and the multilingual pattern.
Examples
- Copy-ready recipes: Complete, compiler-checked .pvue examples: forms, AJAX counter, lists, components in loops, database pages, dynamic meta.
- PHPue FAQ: Short, direct answers to the questions people ask about PHPue most often.
Avoid mistakes
- Common mistakes and verified fixes: Input-to-output table of the mistakes that silently break PHPue pages, with the fix for each.
- Upgrading from 0.0.2 to 0.0.3: What 0.0.3 changed, how to upgrade, and the 0.0.2-only rules to apply when you maintain an older project.
- Coming from React, Next.js, Vue, Blade or plain PHP: Concept-by-concept mapping from other frameworks to PHPue, and when PHPue is (or is not) the right tool.