I am giving up my bed for one night.

My Sleep Out helps youth facing homelessness find safe shelter and loving care at Covenant House. That care includes essential services like education, job training, medical care, mental health and substance use counseling, and legal aid — everything they need to build independent, sustainable futures.

By supporting my Sleep Out, you are supporting the dreams of young people overcoming homelessness.

Together, we are working towards a future where every young person has a safe place to sleep.

Thank you.

Install & Import php-wasm

Include the module in your preferred format:

from a cdn

Using ESM modules, you can import php-wasm directly from a cdn:

jsdelivr

const { PhpWeb } = await import('https://cdn.jsdelivr.net/npm/php-wasm/PhpWeb.mjs');
const php = new PhpWeb;

unpkg

const { PhpWeb } = await import('https://www.unpkg.com/php-wasm/php-wasm/PhpWeb.mjs');
const php = new PhpWeb;

Installing with npm

You can also install php-wasm with npm.

Find php-wasm on npm

Latest Alpha

$ npm i php-wasm@alpha
$ npm i php-cgi-wasm@alpha

Latest Stable

$ npm i php-wasm
$ npm i php-cgi-wasm

Pre-Packaged Static Assets:

If you’re using a bundler, use the vendor’s documentation to learn how to move the files matching the following pattern to your public directory:

node_modules/php-wasm/php-web.mjs.wasm
node_modules/php-cgi-wasm/php-cgi-worker.mjs.wasm

Importing the module

ESM

import { PhpWeb } from 'php-wasm/PhpWeb.mjs';
const php = new PhpWeb;

CJS

const { PhpWeb } = require('php-wasm/PhpWeb.js');
const php = new PhpWeb;