Skip to content

Eidansoft/PhpIde

Repository files navigation

PhpIde

PHPIde is a cloud IDE (Integrated Development Environment) solution created just for fun :-) This application has been developed by my-self at my spare time. All sources are available at the GIT repository on Github. Please feel free to try it out or giving me your feedback. I hope you enjoy.

Description

The code uses AngularJS libraries for the web application and some PHP scripts for the server part. You can test this code at your own server, just need the target folder copied into your server with PHP support, then open a browser and navigate to phpide.php file into your server.

Demo

You can test a demo of this project with some limits at the available functions (cannot modify or delete the files). Test it at http://www.eidansoft.com/desarrollos/phpide/

Compilation / configuration

If you are interested into modify or adapt this code to your needs, below I'll provide you some useful information. In order to get the application code minified, you will need Node.js installed in your system, you can get it all minified executing:

  • npm install
  • npm run build You will get the minified code at target folder. My build script is Linux-dependent so it'll not built into a Win machine

The dependencies at zip_dependencies/backend are necessary only if you want Google login support. Please note that Google login support will not work at local (non-public) environments. In order to get the Google login:

  • You just need to unzip zip_dependencies/backend into your server and make sure to configure the constant OPAUTH_LIB_DIR at the file callback.php properly. You can find more info about this library at its page.
  • If you don't want authentication support you can just comment the session check at php_scripts/phpphile.php commenting out the following lines:
// Check user is loggedin
session_start();
if ( !isset($_SESSION) || !isset($_SESSION['phpidesession']) ) {
	endWithError($_REQUEST['format'], "User not logged in", 2);
}

Changelog

V1.3 Adapted to use the phphile module.

V1.2 Created compilation scripts to get all the code minified.

V1.1 Added authentication with Google using the https://github.com/opauth/opauth library

V1.0 First working version:

  • Create new files
  • Modify files
  • Delete files
  • Rename files

Dependencies

License

GPLv3 This code is GPLv3 licenced:

This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program. If not, see http://www.gnu.org/licenses/.

About

A IDE to develop online PHP scripts directly from the browser

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors