PHP
PHP running client-side in the browser using Uniter.
Uniter is a light-weight PHP-to-JavaScript transpiler and runtime with JavaScript interoperability and client-side DOM manipulation. However, only a small subset of PHP's standard library is supported.
Note
If you need better standard library support, you may want to use php-wasm
.
php-wasm
runs PHP in the browser using WebAssembly. This matches the behavior of the official PHP interpreter and allows using PHP's standard library. However, it requires relatively large download and has limited capabilities for client-side DOM manipulation.
Usage
JavaScript Interoperability
Example:
Language Info
Name
php
Extension
.php
Editor
script
Compiler
Version
Uniter v2.18.0
Code Formatting
Using prettier and Prettier PHP Plugin.
Starter Template
https://livecodes.io/?template=php
Links
- PHP
- PHP documentation
- Uniter
- PHP using
php-wasm
in LiveCodes