SQLite extension loader for php-wasm, providing sqlite3 and pdo_sqlite extensions as shared libraries for PHP in WebAssembly. Current version 0.1.0. Ships TypeScript types. Resolves runtime version (e.g., php8.x-sqlite.so) and bundles libsqlite3.so. Lightweight alternative to building PHP with SQLite statically; works only with php-wasm runtime.
npm install php-wasm-sqliteNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Creates a PhpWeb instance with SQLite extensions loaded and checks that both sqlite3 and pdo_sqlite are enabled.
npm install php-wasm php-wasm-sqlite
Ensure php-wasm is built with WITH_SQLITE=dynamic or WITH_SQLITE=shared. Set in .php-wasm-rc.
Check the shipped libsqlite3.so version inside the package.
Change to: import { PhpWeb } from 'php-wasm/PhpWeb.mjs';Use version '8.4' or another supported version. Check php-wasm documentation for available PHP versions.
Run: npm install php-wasm