PHP Classes

Caribu Console: Read and process console shell commands

Recommend this page to a friend!
     
  Info   Example   View files Files   Install with Composer Install with Composer   Download Download   Reputation   Support forum   Blog    
Ratings Unique User Downloads Download Rankings
Not enough user ratingsTotal: 73 All time: 10,232 This week: 43Up
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  
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 (19)  
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

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  
 100%
Total:73
This week:0
All time:10,232
This week:43Up