Skip to content

Repository files navigation

Knecht

test-php

PHP 8.3 DDEV · nginx-fpm Knecht e2e fixture MIT License

A minimal DDEV PHP project used as an end-to-end test fixture for Knecht. It serves a single page (public/index.php) on three hostnames — a primary plus alpha.* and beta.* — so Knecht can boot the environment, hit each host, and assert against the rendered output. A small Vite bundle (src/) is built into public/dist and included through its manifest by hand, without a framework plugin: the "Vite bundle" row on the page flips from "not loaded" to "loaded" once the built script runs.

Setup

Requires DDEV and a Docker provider (Docker, OrbStack, or Colima).

ddev start          # boot the containers
ddev npm install
ddev npm run build  # build src/ into public/dist (read via the Vite manifest)
ddev launch         # open the site in your browser

The project is then available at:

Role URL
primary https://test-php.ddev.site
alpha https://alpha.test-php.ddev.site
beta https://beta.test-php.ddev.site

About

Minimal DDEV-php project that serves as a e2e test for Knecht.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages