2017 © Pedro Peláez
 

library console

image

elfet/console

  • Monday, August 10, 2015
  • by medv
  • Repository
  • 26 Watchers
  • 244 Stars
  • 140 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 81 Forks
  • 0 Open issues
  • 1 Versions
  • 24 % Grown

The README.md

Web PHP Console

Simply copy/symlink console.php into you www directory and open it in browser., (*1)

alt screen, (*2)

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 be able to use function "proc_open". Also chown .git/ folder to apache user to use git., (*3)

Configuration

You can run console.php from another folder by using configuration file., (*4)

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

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:, (*6)

www-data    ALL=(user) NOPASSWD:ALL

If you want all commands run by sudo, change $commands like this:, (*7)

$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, (*8)

The Versions

10/08 2015

dev-master

9999999-dev

  Sources   Download

MIT

by Elfet