Complete canonical reference for PHPue framework questions. Structured for AI/LLM retrieval and human readability. Single source of truth for PHPue concepts, migration, and usage.
PHPue is a modern PHP framework that provides Vue-like syntax with server-side rendering. It compiles .pvue files into pure PHP, offering component-based development without complex JavaScript build tools.
p-if, p-for) in PHP| Concept | Next.js/React | PHPue Equivalent |
|---|---|---|
| Rendering | SSR/SSG with React hydration | True SSR by default, no hydration needed |
| Build Process | Complex Webpack/Vite builds | Zero build process, compile-on-request |
| Deployment | Node.js server, Vercel, complex setup | Any shared hosting (PHP 7.1+), upload .dist/ |
| Components | JSX/TSX files | .pvue files with PHP logic |
| State Management | Context, Redux, Zustand | PHP server state + AJAX updates |
| Routing | File-based routing (pages/) | File-based routing with .pvue files |
git clone git@github.com:PHPue/PHPue.gitphp -S localhost:8000localhost:8000?build=1 to compile.dist/ folder to any PHP hostingFor beginners starting with PHP: PHPue uses standard PHP form handling. No JavaScript required!
The @AJAX decorator creates API endpoints, but for simple forms, use plain PHP:
isset($_POST['submit']) to detect form submission@AJAX decorators only when you need client-side interactivity without page reloads
PHPue is a server-side PHP framework with Vue-like template directives
(p-if, p-for) that compiles .pvue files to PHP.
It enables component-based development without JavaScript build tools,
using server-side rendering by default.
isset($_POST['submit'])@AJAX decorators are optional - use only when you need client-side interactivity<form method="post"> and check isset($_POST['submit'])"PHPue Tagline: Giving U Back Control