2017 © Pedro Peláez
 

library php-shell

Package with tools for creating php shell scripts

image

alfhen/php-shell

Package with tools for creating php shell scripts

  • Sunday, January 3, 2016
  • by alfhen
  • Repository
  • 0 Watchers
  • 0 Stars
  • 28 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 6 Versions
  • 0 % Grown

The README.md

phpshell

Tools for creating php shell scripts, (*1)

Installation

composer require alfhen/php-shell

Usage

CliArgsParser:

When creating a php shell script you can use the CliArgsParser to parse arguments passed to your shell scripts. The parser expects arguments to be passed in following format --argument='' note you should not write <> but just the raw value inside the quotes. Each argument should be separated with a space., (*2)

``` php, (*3)

// an array of the required argument keys, is not required $requiredAguments = ['argument_one', 'argument_two'];, (*4)

// get arguments as an associative array $parsedArguments = Alfhen\PhpShell\CliArgsParser::getArguments($requiredAguments);, (*5)

### CliLogger:
CliLogger is a tool that helps you print nicely formated lines to the terminal/console. It comes with three built in types: 
Info, Error and Success. It can be used as such:

``` php 

Alfhen\PhpShell\CliLogger::info('This is an info message');

Alfhen\PhpShell\CliLogger::error('This is an error message');

Alfhen\PhpShell\CliLogger::success('This is a success message');


Happy coding and thanks for using the tools, (*6)

The Versions

03/01 2016

dev-master

9999999-dev

Package with tools for creating php shell scripts

  Sources   Download

MIT

The Development Requires

by Alf Henderson

php

03/01 2016

v0.1.4

0.1.4.0

Package with tools for creating php shell scripts

  Sources   Download

MIT

The Development Requires

by Alf Henderson

php

21/12 2015

v0.1.3

0.1.3.0

Package with tools for creating php shell scripts

  Sources   Download

MIT

The Development Requires

by Alf Henderson

php

21/12 2015

v0.1.2

0.1.2.0

Package with tools for creating php shell scripts

  Sources   Download

MIT

The Development Requires

by Alf Henderson

php

17/12 2015

v0.1.1

0.1.1.0

Package with tools for creating php shell scripts

  Sources   Download

MIT

The Development Requires

by Alf Henderson

php

17/12 2015

v0.1

0.1.0.0

Package with tools for creating php shell scripts

  Sources   Download

MIT

The Development Requires

by Alf Henderson

php