PHP Classes

File: tests/Manual.php

Recommend this page to a friend!
  Classes of Maik Greubel   Caribu Console   tests/Manual.php   Download  
File: tests/Manual.php
Role: Example script
Content type: text/plain
Description: Example script
Class: Caribu Console
Read and process console shell commands
Author: By
Last change:
Date: 6 years ago
Size: 218 bytes
 

Contents

Class file image Download
<?php
require '../vendor/autoload.php';

use
Nkey\Caribu\Console\CLI;

$console = new CLI("console");

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