Sponsored byOutsenseAI that finds your next clients
SponsorGROUOutbound, LinkedIn content and leads for B2B teamsSponsorOutsenseAI that finds your next clientsAd+Your tool hereSeen by people installing AI tools@Weekly picksThe best new tools, one email a week

compile-php-wasm

Skill by WordPress

Compiles PHP.wasm main modules and side modules for Node.js and web platforms in the WordPress Playground repository. Useful for recompiling PHP, adding Emscripten flags, and troubleshooting build failures.

  • Score 78
  • 2k stars
  • GPL-2.0
  • Updated
Works withClaude CodeClaude apps Antigravity CLI

Install compile-php-wasm

Built from the published package, never by AI.

git clone --depth 1 https://github.com/WordPress/wordpress-playground /tmp/wordpress-playground && mkdir -p ~/.claude/skills && cp -r /tmp/wordpress-playground/.agents/skills/compile-php-wasm ~/.claude/skills/compile-php-wasm

Run in your terminal. Claude Code loads skills from ~/.claude/skills automatically.

Step-by-step: install compile-php-wasm in Claude Code

Skills can run scripts on your machine. Some need an API key: check the README.

About

The compile-php-wasm skill gives step-by-step patterns for building PHP.wasm main modules and dynamic extension side modules in the WordPress Playground repository. It covers the build pipeline from the Dockerfile through emcc to the patched JavaScript glue file, along with Emscripten flags such as ASYNCIFY, JSPI and MAIN_MODULE. Commands use npx nx recompile-php targets.

It also documents Emscripten upgrade breakage, extension build requirements for SIDE_MODULE, libtool workarounds, cache busting with Docker and NX, WASM binary inspection commands, and a diagnostic cheat sheet. It is aimed at developers who maintain the PHP WebAssembly build for Node.js and web platforms.

Written from the project's SKILL.md and checked against it.

What it can do

  • Recompile PHP versionsRebuilds PHP.wasm for web and Node.js with JSPI or Asyncify modes using nx targets.
  • Add Emscripten flagsExplains flags such as ASYNCIFY, JSPI, MAIN_MODULE and EXPORTED_FUNCTIONS.
  • Build side modulesCovers compiling PHP extensions like Xdebug, intl and GD as SIDE_MODULE shared libraries.
  • Upgrade EmscriptenLists common breakage categories and fixes when moving to a newer Emscripten version.
  • Debug buildsShows how to produce DWARF debug builds and source maps for stepping through WASM.
  • Inspect WASM binariesLists wasm-objdump, wasm-opt and WebAssembly.Module commands to check exports and imports.
  • Troubleshoot compilation failuresProvides a diagnostic cheat sheet mapping common build and runtime symptoms to actions.

What you need

  • Docker
  • Node.js (version from .nvmrc)
  • npm

Try asking

  • Recompile PHP 8.5 for php-wasm-web with the JSPI mode only
  • Help me build the intl extension as a SIDE_MODULE for PHP.wasm
  • Why does my PHP.wasm build show an R_WASM_MEMORY_ADDR_SLEB error?

Good to know

  • Libtool refuses to create WASM shared libraries, so manual workarounds are needed.
  • Debug builds produce much larger binaries.
  • Pre-built archives not compiled with PIC must be rebuilt from source.

Security check

A

No download-and-run commands, hidden instructions or signs of sending keys out were found.

Checked automatically: .agents/skills/compile-php-wasm/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work

Alternatives to compile-php-wasm

All alternatives →
openclaw-github-repo-commandersickn33
94

Runs a 7-stage workflow for auditing, cleaning up and reviewing GitHub repositories, plus competitor analysis. Written for developers who want a repo checked for secrets, junk files and documentation gaps.

AAA Skill 50k
gradiogradio-app
94

Teaches an AI assistant to build, debug and explain Gradio web UIs and ML demos in Python. It covers the core API, components, event listeners, layouts and the MCP server option. Aimed at Python developers who work with Gradio.

AAA Skill 44k
hig-components-menussickn33
94

Recommends menus, buttons, toolbars and disclosure controls for Apple platforms using Human Interface Guidelines conventions. Built for developers and designers making iOS, iPadOS, macOS or visionOS interfaces. Checks existing project design context before asking questions.

AAA Skill 50k
fastapi-templateswshobson
94

Creates production-ready FastAPI project structures with async patterns, dependency injection, and error handling. It is for developers starting new FastAPI applications or backend API projects.

AAA Skill 43k
appfunctionsandroid
94

Analyzes Android apps to find user workflows to expose as AppFunctions, so AI agents and system shortcuts can run them without opening the app UI. Generates Kotlin code and refines KDoc for Android developers.

AAA Skill 11k
agent-qa-authoringsickn33
94

Creates, edits, validates and runs Agent QA tests, suites and hooks through MCP or CLI. It keeps canonical IDs and schema contracts intact, for developers and QA teams using Agent QA.

AAA Skill 50k

Compare with openclaw-github-repo-commander, gradio or hig-components-menus

compile-php-wasm: common questions

What does compile-php-wasm do?

It documents how to compile PHP.wasm main modules and side modules for Node.js and web platforms in the WordPress Playground repository. It covers Dockerfile builds, Emscripten flags and troubleshooting.

Does it cover building PHP extensions?

Yes. The source has a section on building extensions such as Xdebug, intl and GD as WASM side modules loaded with dlopen.

Why does Docker keep using old build layers?

The source says BuildKit reuses intermediate layers from existing images. It recommends running docker rmi php-wasm:latest and resetting the NX cache before rebuilding.

How do I install compile-php-wasm?

Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.

Is compile-php-wasm free?

The code is published under the GPL-2.0 licence. The service it connects to may have its own pricing.

Is compile-php-wasm safe to use?

It scores 78 of 100. Grades: maintenance A, licence C, quality A. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.

What are alternatives to compile-php-wasm?

Similar skills: openclaw-github-repo-commander, gradio, hig-components-menus, fastapi-templates.

compile-php-wasm Install

Add to stack

Loading.