Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/loilo/php-arena
🥊 A tiny playground for tinkering with PHP snippets in the browser
https://github.com/loilo/php-arena
Last synced: 5 days ago
JSON representation
🥊 A tiny playground for tinkering with PHP snippets in the browser
- Host: GitHub
- URL: https://github.com/loilo/php-arena
- Owner: loilo
- License: mit
- Created: 2023-06-30T22:42:07.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-08-16T07:58:53.000Z (3 months ago)
- Last Synced: 2024-08-16T09:02:13.078Z (3 months ago)
- Language: TypeScript
- Homepage: https://loilo.github.io/php-arena/
- Size: 57.5 MB
- Stars: 4
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# PHP Arena
> A tiny playground for tinkering with PHP snippets in the browser
This is the source code repository of PHP Arena. You can find the app at [loilo.github.io/php-arena](https://loilo.github.io/php-arena/).
## Technologies
The core technologies this project uses are:
Technology | Purpose
-|-
**[Codemirror](https://codemirror.net/)** | A text/code editor, used for the editing area itself.
**[Nuxt](https://nuxt.com/)** | An application framework for Vue.js, used for prerendering, PWA support and overall application structure.
**[`@php-wasm/web`](https://github.com/WordPress/wordpress-playground)** | WASM-compiled builds of the PHP interpreter, made by the WordPress team.
**[`lz-string`](https://www.npmjs.com/package/lz-string)** | A quick and space-efficient compression algorithm, used for serializing the current app state into a shareable URL in as few characters as possible.
**[GitHub Pages](https://pages.github.com/)** | This app does (purposefully) not generate any income. Therefore, free, scalable hosting is essential to keep it running.## Setup
Clone this repository and install its dependencies using [npm](https://npmjs.com/).
```bash
npm ci
```## Local Development
Start a local dev server with hot reloading:
```bash
npm run dev
```## Generate Production Site
Create a production-ready site in the `dist` folder:
```
npm run generate
```Set the `BASE_URL` environment variable to create a build that can be hosted in a subfolder of a domain, e.g.:
```
BASE_URL=/php-arena/ npm run generate
```