Skip to content

websiteduck/Run-PHP-Code

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Run PHP Code

Download Run PHP Code

or

Try the In-Browser WebAssembly Version

This script gives you the ability to quickly test snippets of PHP code locally. A local web server is required.

  • Create a folder called php or similar in your www folder.
  • Extract the Run PHP Code files into it.
  • Bookmark the URL for easy access.
  • Or clone the repository instead and do a git pull every once in a while.
  • If you get a blank screen you are probably not accessing Run PHP Code from 127.0.0.1. This is a security feature. Add your IP address to line 13 of run.php.

This application is meant to be run locally and should not be made publicly accessible.

screenshot

Features

  • Ace code editor
  • Import gists from GitHub
  • Import pastes from PasteBin and Pastie
  • PHP search for functions, classes, variables, etc.
  • Load/Save files to disk
  • Themes from the Ace editor

Tips

  • Pressing Ctrl-Enter will run your code.
  • Ace supports multiple cursors, just hold ctrl and click where you want your cursors.

Run PHP Code utilizes the following projects:


Ace
Copyright (c) 2010, Ajax.org B.V.
Licensed under the BSD License

Vue.js
Copyright (c) 2018-present, Yuxi (Evan) You Licensed under the MIT License

Pinia
Copyright (c) 2019-present Eduardo San Martin Morote Licensed under the MIT License

Axios
Copyright (c) 2014-present Matt Zabriskie & Collaborators Licensed under the MIT License

About

This script gives you the ability to quickly test snippets of PHP code locally.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages