Home

Static Badge Discord

Join the community: reddit | discord

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 PHP-CGI In NodeJs.

Demo

Updates

v0.0.9 - Aiming for the (GitHub) Stars

  • Adding PHP-CGI support!
  • Runtime extension loading!
  • libicu, freetype, zlib, gd, libpng, libjpeg, openssl, & phar support.
  • php-wasm, php-cgi-wasm, & php-wasm-builder are now separate packages.
  • Vrzno now facilitates url fopen via the fetch() api.
  • pdo_cfd1 is now a separate extension from Vrzno.
  • pdo_pglite adds local Postgres support.
  • SQLite is now using version 3.46.
  • Demos for CodeIgniter, CakePHP, Laravel & Laminas.
  • Drupal & all other demos now use standard build + zip install.
  • Modules are now webpack-compatible out of the box.
  • Exposing FS methods w/queueing & locking to sync files between tabs & workers.
  • Fixed the bug with POST requests under Firefox.
  • Adding support for PHP 8.3.7
  • Automatic CI testing for PHP 8.0, 8.1, 8.2 & 8.3.

🍻 Licensed under the Apache License, Version 2.0

Licensed under the Apache License, Version 2.0 (the “License”); you may not use this file except in compliance with the License. You may obtain a copy of the License at

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

http://www.apache.org/licenses/LICENSE-2.0