PHP Classes

Caribu Console: Read and process console shell commands

Recommend this page to a friend!
  Info   View files Example   View files View files (19)   DownloadInstall with Composer Download .zip   Reputation   Support forum   Blog    
Ratings Unique User Downloads Download Rankings
Not enough user ratingsTotal: 70 All time: 10,229 This week: 83Up
Version License PHP version Categories
caribu-console 1.0.0GNU General Publi...7Console, PHP 7
Description 

Author

This class can process console shell commands.

It can read and parse commands entered by a user in a console.

The class can return the parsed command name and parameters, so the application can process it.

Picture of Maik Greubel
  Performance   Level  
Name: Maik Greubel <contact>
Classes: 10 packages by
Country: Germany Germany
Age: ???
All time rank: 107168 in Germany Germany
Week rank: 45 Up3 in Germany Germany Up
Innovation award
Innovation award
Nominee: 4x

Example

<?php
require '../vendor/autoload.php';

use
Nkey\Caribu\Console\CLI;

$console = new CLI("console");

$input = "";
while (
"exit" !== $input) {
   
$parsed = $console->readLine();
   
$input = $parsed->getCommand();
}


Details

Build Status Scrutinizer Code Quality Code Coverage Dependency Status

PHP Console Class

License is BSD 2.0 simplified

Please use at least PHP 5.6.14 for v1.0.0. Latest version only supports PHP 7.

Why this high version of PHP?

Because of this bug: Bugzilla


  Files folder image Files  
File Role Description
Files folder imagecontrib (2 files)
Files folder imagesrc (5 files)
Files folder imagetests (3 files)
Accessible without login Plain text file .travis.yml Data Auxiliary data
Accessible without login Plain text file build.xml Data Auxiliary data
Accessible without login Plain text file composer.json Data Auxiliary data
Accessible without login Plain text file LICENSE Lic. License text
Accessible without login Plain text file phpcs.xml Data Auxiliary data
Accessible without login Plain text file phpdox.xml Data Auxiliary data
Accessible without login Plain text file phpmd.xml Data Auxiliary data
Accessible without login Plain text file phpunit.xml Data Auxiliary data
Accessible without login Plain text file README.md Doc. Documentation

  Files folder image Files  /  contrib  
File Role Description
  Accessible without login Plain text file phpcs.xsd Data Auxiliary data
  Accessible without login Plain text file phpunit.xsd Data Auxiliary data

  Files folder image Files  /  src  
File Role Description
  Plain text file CLI.php Class Class source
  Plain text file DefaultParser.php Class Class source
  Plain text file ParsedCommand.php Class Class source
  Plain text file Parser.php Class Class source
  Plain text file ParserException.php Class Class source

  Files folder image Files  /  tests  
File Role Description
  Accessible without login Plain text file CLITest.php Test Class source
  Accessible without login Plain text file Manual.php Example Example script
  Accessible without login Plain text file ParserTest.php Test Class source

 Version Control Unique User Downloads Download Rankings  
 100%
Total:70
This week:0
All time:10,229
This week:83Up