PHP Classes

AShell: Manage a command line shell in pure PHP

Recommend this page to a friend!
     
  Info   View files Files   Install with Composer Install with Composer   Download Download   Reputation   Support forum   Blog    
Ratings Unique User Downloads Download Rankings
StarStarStar 40%Total: 1,558 All time: 2,531 This week: 36Up
Version License PHP version Categories
ashell 1.0.0GNU Lesser Genera...5.0.0PHP 5, Console
Description 

Author

This package can be used create and manage a command line shell in pure PHP.

It can read commands from the standard input and execute recognized commands implemented by separate classes.

The list of recognized commands can be customized by registering PHP classes that implement new custom command handler.

The main class enters in an event loop that displays a prompt, reads commands from the standard input and dispatches the commands calling the command handler classes. The loop ends when the exit command is executed.

Several built-in custom command handlers classes are provided to execute actions like listing all registered commands, providing usage help about a command and example hello world command.

Innovation Award
PHP Programming Innovation award nominee
September 2007
Number 10
Scripting languages can be useful to command applications in a controlled fashion, i.e. giving the developer the ability to control the application without compromising the security and integrity of the application data.

This package implements a scripting language shell based on set a of commands implemented in PHP. The language can be extended by the means of new commands implemented by additional custom command classes.

It can be useful for implementing scripting languages to control PHP based applications.

Manuel Lemos
Picture of Sylvain Rabot
Name: Sylvain Rabot <contact>
Classes: 6 packages by
Country: United States United States
Age: 37
All time rank: 27234 in United States United States
Week rank: 178 Up22 in United States United States Up
Innovation award
Innovation award
Nominee: 3x

  Files folder image Files (2)  
File Role Description
Plain text file ashell.class.php Class Sources
Accessible without login Plain text file shell.php Example Example

The PHP Classes site has supported package installation using the Composer tool since 2013, as you may verify by reading this instructions page.
Install with Composer Install with Composer
 Version Control Unique User Downloads Download Rankings  
 0%
Total:1,558
This week:0
All time:2,531
This week:36Up
 User Ratings  
 
 All time
Utility:58%StarStarStar
Consistency:58%StarStarStar
Documentation:-
Examples:58%StarStarStar
Tests:-
Videos:-
Overall:40%StarStarStar
Rank:3756