{"id":18249918,"url":"https://github.com/phan/demo","last_synced_at":"2025-04-04T16:31:03.114Z","repository":{"id":59744370,"uuid":"219360196","full_name":"phan/demo","owner":"phan","description":"Run phan entirely in your browser (with emscripten)","archived":false,"fork":false,"pushed_at":"2022-11-10T01:44:13.000Z","size":29847,"stargazers_count":19,"open_issues_count":8,"forks_count":5,"subscribers_count":4,"default_branch":"master","last_synced_at":"2024-04-28T04:49:18.524Z","etag":null,"topics":["phan","php","static-analysis","wasm","webassembly"],"latest_commit_sha":null,"homepage":"https://phan.github.io/demo/","language":"C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/phan.png","metadata":{"files":{"readme":"Readme.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-11-03T20:20:36.000Z","updated_at":"2024-01-17T20:28:00.000Z","dependencies_parsed_at":"2023-01-22T18:00:57.232Z","dependency_job_id":null,"html_url":"https://github.com/phan/demo","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/phan%2Fdemo","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/phan%2Fdemo/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/phan%2Fdemo/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/phan%2Fdemo/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/phan","download_url":"https://codeload.github.com/phan/demo/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":223149584,"owners_count":17095951,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["phan","php","static-analysis","wasm","webassembly"],"created_at":"2024-11-05T09:41:51.130Z","updated_at":"2024-11-05T09:41:52.049Z","avatar_url":"https://github.com/phan.png","language":"C","funding_links":[],"categories":["C"],"sub_categories":[],"readme":"# Phan in Browser\n\n[Run Phan in your browser](https://phan.github.io/demo/) (Requires Firefox/Chrome and at least 4GB of free RAM)].\n\n[![Preview of analyzing PHP](static/preview.png)](https://phan.github.io/demo/)\n[![Preview of running php](static/run.png)](https://phan.github.io/demo/)\n\n- This uses emscripten to allow analyzing (or running) PHP scripts entirely in your browser.\n\nPHP Version: 8.0.0\n\n[Phan](https://github.com/phan/phan) Version: 4.0.0-RC2\n\nThis is based on [oraoto/pib](https://oraoto.github.io/pib/) (PHP In Browser)\n\nThere is also a [demo for PHP 8.0.0-dev](https://phan.github.io/demo/8/)\n\n## Building From Source\n\n### Using Docker\n\nTODO: would these instructions work for phan/demo?\n\nThe quickest way to build PIB is by using Docker:\n\n```\ndocker run --rm -v $(pwd):/src trzeci/emscripten:sdk-incoming-64bit bash -c `apt-get update \u0026\u0026 apt-get install -y autoconf; build.sh`\n```\n\n### Setup Emscripten SDK (emsdk) manually\n\nSteps:\n\n1. Setup emsdk (\u003e= 2.0.9), see [Installation Instructions](https://emscripten.org/docs/getting_started/downloads.html#installation-instructions)\n2. Run `bash build.sh` (Install `autoconf` if needed)\n\n## Running locally\n\nThis requires that a web server be running and serve static files.\n`python3 -m http.server --bind 127.0.0.1 8080` (from the root directory of phan-demo) is one way to do this.\nThen, open http://localhost:8080/\n\n## Acknowledgements\n\nThis application is based on [PHP in Browser (oraoto/pib)](https://github.com/oraoto/pib).\n\nThe Web UI is based on [Rust Playground](https://play.rust-lang.org/).\nThis uses the [ace](https://ace.c9.io/) editor.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fphan%2Fdemo","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fphan%2Fdemo","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fphan%2Fdemo/lists"}