Skip to content
~/caio.barilli
ENPT
← All projects
PHP · PowerShell

PHPorto

A browser panel to manage Windows in one place: WSL commands, Hyper-V VMs, app installs and a local LLM. It runs only on your machine, with token access.

Year
2026
Type
Personal project
Status
Paused

01 · Problem

WSL, Windows admin tasks, Hyper-V VMs and a local LLM are each managed from a different console.

02 · Solution

One PHP panel in the browser, bound to localhost and protected by a token. It runs commands in WSL, runs Windows admin actions from an allowlist, manages Hyper-V VMs and controls a local Ollama instance. It also frees memory with WinMemoryCleaner, showing free RAM before and after.

03 · Stack

  • PHP 8.5
  • PowerShell
  • WSL2
  • Hyper-V
  • Ollama
  • Pest / Pester

04 · Architecture decisions

The decisions that shaped the project.
  1. ADR 0001

    Allowlist and protected folder

    Only actions listed in a manifest, from a protected folder, can run elevated on the host.

  2. ADR 0002

    Single use and UAC per sensitive action

    Each sensitive action needs its own approval; nothing reuses an elevated session.

  3. ADR 0008

    Ollama per user, without elevation

    Pinned version with SHA-256 check, loopback only, and a channel that runs as the regular user.

05 · Screenshots

Home: WSL, Windows, Hyper-V and Ollama one click away
Settings: active database, HTTP API switch, elevated PowerShell and Hyper-V panel
WSL in dark mode: shell commands in the distro, file upload and run history
PHP: the interpreter in use and a guarded php.ini editor with an automatic backup
C in the browser: code compiled in memory with Tiny C Compiler through PHP's FFI

06 · Links

Source on GitHub ↗No public demo
Next projectPHParrot →
PHPorto home with the WSL, WIN, Hyper-V, Ollama and settings buttons
Home: WSL, Windows, Hyper-V and Ollama one click away
1 / 5