Deploy in One Click.

Deploy PHP 8 apps client-side in one click, run PHP in cloudflare with full access to D1 SQL, or write PHP desktop apps with GTK.

Learn More
Php-Wasm runs anywhere Javascript+WASM is supported.
  • Supports NodeJS & Browsers.
  • Full access to Javascript APIs from PHP
  • Works with with Node GTK.
  • Supports SQLite & PostgreSQL.
  • Powerful enough to run Drupal, Laravel & WordPress.
  • Runs in CloudFlare with D1 SQL via PDO.

Php-Wasm is currently powering cutting-edge client side php apps like WordPress-Playground, Drupal-Playground & PlayWithLaravel.

Php Wasm puts PHP right in the browser.

PHP can now run in the browser as a counterpart to Javascript, and can either be invoked from Javascript code or static HTML, where it’s got full access to JS APIs as well as the DOM. Or, it can run a service worker, where it mimics a CGI webserver like Apache or nginx. And yea, it can serve whole websites.

Standard PDO Database Connectors.

Php Wasm supports Sqlite, PostgreSQL, and CloudFlare’s D1 SQL, all via PDO, so you can query your database just like you’ve always done it.

A Full Bridge To Javascript Code

The Vrzno extension allows PHP to gain access to any APIs available to Javascript. Objects, functions, and even classes can be imported from Javascript and used in PHP as if they were native code. That opens up things like DOM APIs, or anything else the browser expose to Javascript. On the desktop, NodeJS packages like NodeGTK can be used to build desktop applications in PHP.

You can see a simple demo of the Curvature framework being used to generate some dynamic html here, or a node-based version that allows PHP to access GTK here.

Field Tested.

Php Wasm is already powering cutting-edge frontend PHP applications like WordPress-Playground, Drupal-Playground, and PlayWithLaravel. You can also find it featured on 3v4l.org.

Fully Loaded with Batteries Included.

Php Wasm comes with support for 17 of the most commonly used PHP extensions, like LibXML, OpenSSL, Intl, ICU, GD, mbString + oniguruma, & zLib. Most of them can be loaded dynamically as shared objects, or compiled statically if your use case requires it. View the whole list.

Extensions can even be loaded in from a CDN like jsdelivr or unpkg, since they’re wrapped in JS modules. You can learn how to do all that and more in the docs.

Isomorphic PHP.

Write code that runs on the backend, the frontend, the edge and the service worker. You can even include classes directly from Packagist with a cloud-based autoloader.

And, of course, its Open Source.

Php Wasm is published 100% for free under the Apache License, Version 2.0. This means Php Wasm is and always will be 100% free. Php Wasm is committed to maintaining the free and open nature of the web, and all the tools the project is based on.

Want to Reach Out?

If you’d like to get involved and contribute code or sponsorship, head over to the GitHub repo, and don’t hesitate to say hi on Discord!