2017 © Pedro Peláez
 

library consozzy

Simple console core for php console applications.

image

ozziest/consozzy

Simple console core for php console applications.

  • Saturday, December 13, 2014
  • by ozziest
  • Repository
  • 1 Watchers
  • 4 Stars
  • 10 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 3 Versions
  • 0 % Grown

The README.md

Consozzy

Consozzy is a simple console library for your console applications. It has got simple router for your library and class., (*1)

Warning

This package is developed for just practice. I don't recommend for your real applications. You can use symfony/console package., (*2)

Installation

To install through composer, simply put the following in your composer.json file:, (*3)

{
    "require": {
        "ozziest/consozzy": "2.*",
    }
}
$ composer install

Usage

$ php console publisher:library:command:method

Custom Commands

namespace Publisher\Library;

class Mycommand {

    use \Ozziest\Consozzy\Screen;

    public function operation()
    {
        $this->write('This is a command on based the consozzy.');
    }

}
$ php console publisher:library:mycommand:operation

Screen Trait

You can use methods of screen;, (*4)

  • write($text, $color)
  • writeln($text, $color)
  • prompt()

Sample Command Ready

class Mycommand {

    use \Ozziest\Consozzy\Screen;

    public function operation()
    {
        $command = readline($this->prompt());
    }

}

Core Commands

  • exit

Colors

  • black
  • blue
  • green
  • cyan
  • red
  • purple
  • brown
  • yellow
  • white

License

MIT, (*5)

The Versions

13/12 2014

dev-master

9999999-dev

Simple console core for php console applications.

  Sources   Download

MIT

The Requires

  • php >=5.4.0

 

by Özgür Adem Işıklı

php console core

30/10 2014

2.0.1

2.0.1.0

Simple console core for php console applications.

  Sources   Download

MIT

The Requires

  • php >=5.4.0

 

by Özgür Adem Işıklı

php console core

21/03 2014

dev-development

dev-development

  Sources   Download

The Requires