2017 © Pedro Peláez
 

library vht-phalcon-cli

CLI Tools for the Phalcon Framework

image

vhtvn/vht-phalcon-cli

CLI Tools for the Phalcon Framework

  • Monday, July 18, 2016
  • by hoangthienan
  • Repository
  • 0 Watchers
  • 0 Stars
  • 70 Installations
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 3 Versions
  • 0 % Grown

The README.md

CLI Tools for the Phalcon Framework

An expansion to the Phalcon Frameworks CLI Classes. This includes things like Questions, Confirmation, Command test class, Input/Output Streams and Application wrapper that allows you to start a CLI with minimal Effort., (*1)

Setting up your application

Setting up your CLI app is easy, heres a little example:, (*2)

set_time_limit(0);

require_once __DIR__ . '/../vendor/autoload.php';
require_once __DIR__ . '/../app/tasks/BasicTask.php';

use Vht\Cli\Application;

$app = new Application;

// Add your Tasks
$app->add(new BasicTask());

try {

    $app->start($argv);

} catch(\Exception $e) {

    echo $e->getMessage();
    exit(255);
}

Want to use your own DI instance? cool:, (*3)

#!/usr/bin/env php
<?php 

$di = new Phalcon\DI;
$app = new Vht\Cli\Application($di);

$app->add(new Task);

$app->start($argv);

See the documentation below for more details, how to create task classes, setup argument and option variables and more..., (*4)

Example

cd vht-phalcon-cli
php app/cli basic
php app/cli basic:other

Documentation

The Versions

18/07 2016

dev-master

9999999-dev

CLI Tools for the Phalcon Framework

  Sources   Download

MIT

The Requires

 

cli tools phalcon

18/07 2016

v1.0.1

1.0.1.0

CLI Tools for the Phalcon Framework

  Sources   Download

MIT

The Requires

 

cli tools phalcon

08/06 2016

v1.0.0

1.0.0.0

CLI Tools for the Phalcon Framework

  Sources   Download

MIT

The Requires

 

cli tools phalcon