Home

Static Badge Discord

Join the community: reddit | discord

Nightly builds are announced in the #nightly-builds channel on the php-wasm Discord server.

Getting Started

To install php-wasm with npm, see INSTALLING.

For instructions on using PHP inside of JS scripts, see PHP In Javascript.

If you want to write pure frontend PHP and skip the JS entirely, see PHP In Static HTML.

If you’d like to spin up a webserver right in your browser, see PHP-CGI In Service Workers.

If you’d like to serve websites with Node.js, see PHP-CGI In Node.js.

To run PHP at the edge with Cloudflare Workers or Pages and D1, see PHP in Cloudflare.

Demo

Nightly Builds

Find successful builds on develop in the Build Artifacts workflow. Choose a run and keep its matching JavaScript/Wasm assets together. The ordinary matrix covers PHP 8.0–8.5 with static, shared, and dynamic libraries; Cloudflare uses its dedicated package and profile. Nightly announcements are posted in Discord’s #nightly-builds channel.

For historical release notes, see the CHANGELOG.

🍻 Dual licensed under the Apache License, Version 2.0 and the GNU GPL, Version 2

php-wasm is dual licensed under the Apache License, Version 2.0 and the GNU General Public License, Version 2; you may use it under the terms of either license.

Unless required by applicable law or agreed to in writing, software distributed under the Licenses is distributed on an “AS IS” BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the Licenses for the specific language governing permissions and limitations under the Licenses.