Base de conhecimento

Local development with zinnector dev

How zinnector dev runs a real WordPress on your machine: WebAssembly with no Docker or native PHP in Docker, choosing PHP and WordPress versions, and Node 26.

Zinn®, o nosso viking, a ler a sua lista de verificação ao lado de um índice de artigos com um aberto.

zinnector dev runs a real WordPress on your own machine, serving the plugins and themes in your project, with a PHP version you choose. This article explains the two runtimes it can use, how to pick versions, what is served from where, and where the runtime lives on disk — so that what you test locally is what you deploy.

The two runtimes, and why both are real

Playground is the default. WordPress Playground compiles PHP to WebAssembly and runs it inside Node, so a laptop with nothing installed but Node boots a WordPress in seconds. Any PHP from 5.2 to 8.5 is available. It carries a small set of PHP extensions (intl, redis, memcached as measured on the current build), which is enough for most plugin and theme work.

Docker runs native php-fpm and MariaDB containers. It is slower, needs a Docker daemon and about 1.2 GB of images, and supports PHP 7.4 to 8.5 — but it runs a native PHP with the full extension set, including imagick and gd. It is the honest answer when what you need to test is an extension the WebAssembly build does not carry.

zinnector dev                       # playground
zinnector dev --runtime docker      # native PHP + MariaDB

Docker is never fallen back to silently. A developer who thinks they are on WebAssembly and is actually on Docker has been given the wrong answer by a tool trying to help, so it has to be asked for by name.

Choosing PHP and WordPress versions

zinnector dev --php 8.1 --wp 6.7    # develop against a specific pair
zinnector dev --port 9401           # when 9400 is taken
zinnector dev --no-login            # do not sign in to wp-admin automatically
zinnector dev --verbose             # show the runtime's own output

The defaults come from zinnector.json in the project — php, wordpress, runtime and port — which zinnector new writes and which you should commit, so everyone on the project runs the same versions. A flag on the command line wins over the file for that run.

The version you declare and the version that runs are different facts. zinnector dev --once boots the runtime, prints what it actually reports — PHP version, WordPress version, loaded extensions — and stops. zinnector check --probe uses the same measurement when it compares your project against a hosting slot.

What is served from your project

The runtime mounts your project's wp-content/plugins, wp-content/themes and wp-content/mu-plugins directories directly, so a file you save is live on the next reload. Directories that exist but hold no real content are deliberately not mounted: an empty themes/ mounted over the runtime's own themes would leave WordPress with no theme at all, which is a blank 500 rather than your site. That is why the scaffold keeps empty directories with a .gitkeep and why they do not shadow anything until you put a theme in them.

Where the runtime lives

The WordPress runtime is downloaded on first use rather than shipped with the CLI — the package that carries every PHP build is about 570 MB, and a developer who only ever lists sites should not pay for it. It is kept in Zinnector®'s own cache, ~/.cache/zinnector/runtimes/playground/<version> (or wherever ZINNECTOR_CACHE_DIR points), never in your project, so it cannot end up in your repository or in the tree zinnector push measures. The download is done by your own npm, run as node npm-cli.js — never through a shell.

The runtime version is pinned to the CLI version, so two developers on one project run the same PHP builds. zinnector dev --reset-runtime throws the installed runtime away and installs it again, which is the fix for a runtime that installed but will not boot.

On Node 26 or newer

The CLI itself runs on any Node from 24 up. The runtime's native module, however, ships prebuilt binaries only for Node 24 and 25 (as of September 2026). Rather than compile anything — which on Windows means installing Visual Studio — Zinnector® fetches a Node 24 for the runtime alone, about 30 MB, verified against the checksums nodejs.org publishes, into the same cache. The install prompt says so when it applies. Nothing about your own Node changes.

Related

Este artigo ainda não foi traduzido para o seu idioma, pelo que está a ler a versão em inglês.

Toda a documentação para programadores →

Mais recentes do blogue

O que temos escrito sobre alojamento, SEO e gestão de sites em escala.

SEO and Link Building from the Hosting Layer: A 2026 Operator's View

How hosting shapes indexing and link equity in 2026: keeping pages indexed, vetting aged domains before you build on them, link building without a footprint, and an honest line on what infrastructure can and cannot do for SEO.

Ler o artigo →

Making WordPress Fast and Secure: A Performance and Plugin Checklist

A practical checklist for fast, secure WordPress: server-level caching, a per-site object cache, the handful of plugins worth running, keeping the stack current, and the WooCommerce pages you must never cache.

Ler o artigo →

How to Choose Managed Web Hosting in 2026: A Buyer's Guide

What actually separates good managed hosting from a cheap box with a control panel — migrations, backups, isolation, real caching and honest scaling — and how to judge it before you commit.

Ler o artigo →

Ler o blogue →

Ainda com dúvidas?

O suporte está incluído em todos os planos, o apoio está disponível 24 horas por dia e pode escrever-nos em qualquer um dos nossos 59 idiomas — respondemos-lhe no seu.

Contactar o suporte Todos os artigos