Download the PHP package webbtj/clico without Composer

On this page you can find all versions of the php package webbtj/clico. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package clico

Clico

Command Line Interface Coloured Output

Clico is a PHP package that gives you an expressive API to format text for CLI output. Clico gives chainable methods to set text background and foreground colours, weight, and other text decorations like underlining and blinking.

Clico also provides functionality for formatting tabular data for CLI output. The table class can also format the text in each row, each column, and each individual cell.

Clico is framework agnostic, just install and use the provided classes.

Full API Docs

Full API documentation can be found here, however the below guide should be enough to get most users started. Source Code

Installation

Install via composer.

Useage

Once installed you can use the Text and Table classes in your own code.

Both the Text and Table classes return strings via their __toString methods.

Using Text

The Text class provides several chainable methods to alter the rendering of text in the CLI output.

Colours

Effects

Background/Foreground

By default the foreground (text) colour is being manipulated, however you can switch between changing the background and foreground colours with chain methods. Switching to either layer causes future chained colour methods to affect that layer.

Shading

Utilities

Examples

Using Table

The Table class provides an expressive API for formatting tabular data for CLI output. The class provides methods for adding header and body content, manipulating the characters used for the table layout, and provides all of the Text methods which can target the whole table, a row, a column, or a single cell.

Adding Data

Setting Table Characters

Formatting

The Table class provides all of the text formatting methods of the Text class. Those methods are, by default, applied to all cells in the table. You can specify an entire row, column, or single cell to target with subsequent text formatting methods.

Meta Data

Contributing

Contributions are always welcome on GitHub. Please open issues before submitting PRs and do tag the issue in your commit messages/PR description. Also, please adhere to PSR-2 as much as possible.


All versions of clico with dependencies

PHP Build Version
Package Version
Requires php Version ^7.2
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package webbtj/clico contains the following files

Loading the files please wait ....