Giter Site home page Giter Site logo

console's Introduction

Web PHP Console

Simply copy/symlink console.php into you www directory and open it in browser.

alt screen

Features

  • Just one file.
  • Navigation throw cd commands.
  • Commands aliases and patterns.
  • List of allowed commands.
  • List of denied commands.
  • Digest HTTP Authentication.
  • Themes.
  • Suggest of most commonly used commands.
  • History of commands.
  • Mobile support.

Requrements

PHP must by able to use function "proc_open". Also chown .git/ folder to apache user to use git.

Configuration

You can run console.php from another folder by using configuration file.

Copy console.config.php.example into console.config.php, place it (with your settings inside) near console.php

Use from another user

If you want use console not from www-data use sudo. Set sudo to not asking passwords. Open visudo and add:

www-data    ALL=(user) NOPASSWD:ALL

If you want all commands run by sudo, change $commands like this:

$commands = array(
    '*' => "sudo -u user $1",
);

Usefull commands aliases

$commands = array(
    'symfony*' => "sudo -u user TERM=xterm app/console$1",
    'composer*' => "sudo -u user TERM=xterm /usr/local/bin/composer$1",
    'git*' => "sudo -u user /usr/local/git/bin/git$1",
    '*' => "sudo -u user $1",
);

License

Licensed under the MIT license: http://www.opensource.org/licenses/mit-license.php

console's People

Contributors

andrew8xx8 avatar denis-chmel avatar ismd avatar

Watchers

 avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.