├── .github ├── FUNDING.yml └── workflows │ ├── ci.yml │ └── demo.yml ├── demo ├── src │ └── index.php ├── .gitignore └── public │ └── index.html ├── .gitignore ├── .env ├── docker-bake.hcl ├── .editorconfig ├── NOTICE ├── LICENSE ├── CHANGELOG.md ├── source └── phpw.c ├── Dockerfile └── README.md /.github/FUNDING.yml: -------------------------------------------------------------------------------- 1 | github: [soyuka] 2 | -------------------------------------------------------------------------------- /demo/src/index.php: -------------------------------------------------------------------------------- 1 | 2 | 29 |
30 | 44 | -------------------------------------------------------------------------------- /CHANGELOG.md: -------------------------------------------------------------------------------- 1 | # php-wasm aka PIB 2 | 3 | Changes 4 | 5 | ## 0.0.3 - New Horizons 6 | 7 | * php.exec() may be used to evaluate a single php expression & return its result. 8 | * php may now access & traverse the dom and access nodes. 9 | * The querySelector method is available on dom nodes. 10 | * addEventListener/removeEventListener is also available on dom nodes. 11 | * sqlite3 v3.33 is now statically linked to php & the sqlite3 extension is enabled. 12 | * The following extensions are now enabled: sqlite3, pdo, & pdo-sqlite. 13 | * Totally revamped build process that tracks build artifact relationships. 14 | * Builds for web, node, shell, worker & webview. 15 | 16 | ## 0.0.2 - Gaining Momentum 17 | 18 | * php objects now have persistent memory, may be cleared with `php.refresh();`. 19 | * php code may now access Javascript (and thus, the DOM) via the [VRZNO](https://github.com/seanmorris/vrzno) project. The extension is preinstalled with php-wasm. 20 | * `