Minimal vanilla PHP + vanilla JavaScript starter, built with Vite and Composer, following a simple MVC pattern.
  • PHP 64.9%
  • Dockerfile 19.1%
  • SCSS 8.1%
  • Shell 4.3%
  • JavaScript 3.6%
Find a file Use this template
2026-06-23 21:33:21 +02:00
app feat: setup HTTPS development using docker 2026-06-23 21:33:20 +02:00
public feat: setup the template structure 2026-06-23 21:33:20 +02:00
.gitignore feat: setup HTTPS development using docker 2026-06-23 21:33:20 +02:00
compose.yml fix: change network name 2026-06-23 21:33:20 +02:00
composer.json feat: setup the template structure 2026-06-23 21:33:20 +02:00
console feat: setup HTTPS development using docker 2026-06-23 21:33:20 +02:00
Dockerfile fix: add composer stage 2026-06-23 21:33:21 +02:00
LICENSE Initial commit 2026-06-23 21:33:20 +02:00
package.json feat: setup the template structure 2026-06-23 21:33:20 +02:00
README.md feat: setup the template structure 2026-06-23 21:33:20 +02:00
vite.config.js feat: setup HTTPS development using docker 2026-06-23 21:33:20 +02:00

php js template

Minimal vanilla PHP + vanilla JavaScript starter, built with Vite and Composer, following a simple MVC pattern.

Overview

What it is

  • A lightweight starter to build server-rendered PHP apps with a modern JS dev experience.
  • No framework lock-in — small, explicit, and easy to understand.

Goal

  • Minimal dependencies and easy deployability to shared hosts or containers.

Technology stacks

  • Backend: PHP (8.4+ recommended)
  • Dependency manager: Composer
  • Frontend tooling: Vite (dev server + build)
  • Client: Vanilla JavaScript (ES modules)
  • Pattern: Model-View-Controller