https://github.com/tysonandre/phan-demo
Moved to https://github.com/phan/demo - Run phan entirely in your browser (with emscripten)
https://github.com/tysonandre/phan-demo
phan php
Last synced: 2 months ago
JSON representation
Moved to https://github.com/phan/demo - Run phan entirely in your browser (with emscripten)
- Host: GitHub
- URL: https://github.com/tysonandre/phan-demo
- Owner: TysonAndre
- License: mit
- Created: 2018-09-03T17:35:54.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2019-11-05T01:15:41.000Z (over 6 years ago)
- Last Synced: 2025-01-25T18:31:09.663Z (over 1 year ago)
- Topics: phan, php
- Language: C
- Homepage: https://phan.github.io/demo/
- Size: 5.93 MB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: Readme.md
- License: LICENSE
Awesome Lists containing this project
README
# Phan in Browser
[Run Phan in your browser](https://phan.github.io/demo/) (Requires Firefox and at least 4GB of free RAM)].
[](https://phan.github.io/demo/)
[](https://phan.github.io/demo/)
- This uses emscripten to allow analyzing (or running) PHP scripts entirely in your browser.
PHP Version: 7.4.0RC5
[Phan](https://github.com/phan/phan) Version: 2.4.1
This is based on [oraoto/pib](https://oraoto.github.io/pib/) (PHP In Browser)
## Known issues
+ [Fatal errors (e.g. duplicate classes) do not get reported.](https://github.com/phan/demo/issues/3)
## Building From Source
### Using Docker
TODO: would these instructions work for phan-demo?
The quickest way to build PIB is by using Docker:
```
docker run --rm -v $(pwd):/src trzeci/emscripten:sdk-incoming-64bit bash -c `apt-get update && apt-get install -y autoconf; build.sh`
```
### Setup Emscripten SDK (emsdk) manually
Steps:
1. Setup emsdk (>= 1.39.1), see [Installation Instructions](https://github.com/juj/emsdk#installation-instructions)
2. Run `bash build.sh` (Install `autoconf` if needed)
## Running locally
This requires that a web server be running and serve static files.
`python 3 -m http.server --bind 127.0.0.1 8080` (from the root directory of phan-demo) is one way to do this.
Then, open http://localhost:8080/
## Acknowledgements
This application is based on [PHP in Browser (oraoto/pib)](https://github.com/oraoto/pib).
The Web UI is based on [Rust Playground](https://play.rust-lang.org/).
This uses the [ace](https://ace.c9.io/) editor.