跳转到主要内容

最近更新的页面

Compiling PHP

WordPress Playground 手册

The build pipeline lives in a Dockerfile. It was originally forked from seanmorris/php-wasm In b...

由 壳壳虫 更新于 2 个月前

Asyncify and JSPI: Stack Switching in PHP WebAssembly

WordPress Playground 手册

Asyncify lets synchronous C or C++ code interact with asynchronous JavaScript. Technically, it sa...

由 壳壳虫 更新于 2 个月前

Bundling WordPress for the browser

WordPress Playground 手册

The web bundler Dockerfile turns a vanilla WordPress into a browser-optimized one: Makes WordPres...

由 壳壳虫 更新于 2 个月前

Browser tab orchestrates the execution

WordPress Playground 手册

The main index.html ties the entire application together. It starts all the concurrent processes...

由 壳壳虫 更新于 2 个月前

Service Workers

WordPress Playground 手册

A Service Worker is used to handle the HTTP traffic using the in-browser PHPRequestHandler. Imag...

由 壳壳虫 更新于 2 个月前

Scopes

WordPress Playground 手册

Scopes keep your app working when you open it in two different browser tabs. The Service Worker p...

由 壳壳虫 更新于 2 个月前

PHP Worker Threads

WordPress Playground 手册

PHP is always ran in a web worker to ensure the PHP runtime doesn’t slow down the user interface ...

由 壳壳虫 更新于 2 个月前

Iframe-based rendering

WordPress Playground 手册

To avoid page reloads, all the PHPRequestHandler responses must be rendered in an iframe. Rememb...

由 壳壳虫 更新于 2 个月前

Cross-process communication

WordPress Playground 手册

@php-wasm/web uses the Comlink library to turns the one-way postMessage available in JavaScript ...

由 壳壳虫 更新于 2 个月前

Running PHP apps in the browser with ServiceWorkers and Worker Threads

WordPress Playground 手册

On a high level, WordPress Playground works in web browsers as follows: The index.html file on p...

由 壳壳虫 更新于 2 个月前

Playground API Client

WordPress Playground 手册

The PlaygroundClient object implements the UniversalPHP interface. All the methods from that in...

由 壳壳虫 更新于 2 个月前

Loading PHP extensions

WordPress Playground 手册

PHP reads extension declarations while it starts. In PHP.wasm, that means extensions must be decl...

由 壳壳虫 更新于 2 个月前

PHP extension dependencies

WordPress Playground 手册

Custom PHP.wasm extensions can only link WebAssembly code built with the same Emscripten toolchai...

由 壳壳虫 更新于 2 个月前

Mount data

WordPress Playground 手册

Mount a directory from the browser You can mount a directory from the browser to Playground using...

由 壳壳虫 更新于 2 个月前

`remote.html` vs `index.html`

WordPress Playground 手册

playground.wordpress.net exposes two distinct APIs through two separate HTML files: remote.html ...

由 壳壳虫 更新于 2 个月前

Building PHP extensions

WordPress Playground 手册

Use @php-wasm/compile-extension when you have a phpize extension source directory and want a di...

由 壳壳虫 更新于 2 个月前

Blueprints JSON and the API Client

WordPress Playground 手册

The Playground API client can be initialized with a JSON Blueprint. This is a convenient way of p...

由 壳壳虫 更新于 2 个月前

User Roles and Capabilities

WordPress Common APIs 手册

If your plugin allows users to submit data—be it on the Admin or the Public side—it should check ...

由 壳壳虫 更新于 2 个月前

Sanitizing Data

WordPress Common APIs 手册

Untrusted data comes from many sources (users, third party sites, even your own database!) and al...

由 壳壳虫 更新于 2 个月前

Nonces

WordPress Common APIs 手册

A nonce is a “number used once” to help protect URLs and forms from certain types of misuse, mali...

由 壳壳虫 更新于 2 个月前