Dedicated, script-managed E2E testing environment for verifying TweakPHP connection types:
- 🐳 Docker Connections: Testing connections to local running containers (
tweakphp-docker-app). - ⛵ Laravel Sail Connections: Testing connections to containerized Laravel Sail apps (
tweakphp-sail-app). - 🔑 SSH Connections: Testing remote execution over SSH (
tweakphp-ssh-appon port2222). - ☸️ Kubernetes (kubectl) Connections: Testing connection execution inside pods running in a local cluster (
tweakphp-testnamespace).
-
Pre-Built Dedicated Docker Image (
Dockerfile):- Built on
php:8.3-cliwithpdo_sqlite,zip,unzip,git,openssh-server, and Composer pre-baked. - Eliminates runtime
apt-getdelays,dpkglock conflicts, andZipDownloadererrors.
- Built on
-
In-Container Provisioning:
composer create-projectruns INSIDE the PHP 8.3 container viadocker exec.vendor/composer/platform_check.phpis generated natively by PHP 8.3.33, ensuring 100% platform check compliance with zero host PHP version leakage.- All test apps (
docker-app,sail-app,ssh-app) are automatically configured with SQLite (database/database.sqlite).
-
Kubernetes Provisioning:
- The Kubernetes deployment builds a Laravel application with SQLite inside its PHP 8.3 pod before reporting as ready.
start.shwaits for the deployment rollout, so the displayed pod name is ready for a TweakPHP connection.
A helper Makefile is included to streamline all lifecycle operations:
# View all available targets and help
make
# Start the environment (builds if necessary, starts services, displays credentials)
make up
# Display connection parameters anytime
make info
# Stop services safely (preserves apps/ for instant next start)
make down
# Clean teardown (stops services and wipes apps/)
make clean