https://github.com/olivecms/colorconsole
php colorconsole
https://github.com/olivecms/colorconsole
Last synced: 8 months ago
JSON representation
php colorconsole
- Host: GitHub
- URL: https://github.com/olivecms/colorconsole
- Owner: OliveCMS
- License: mit
- Created: 2018-08-18T17:34:44.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2018-08-19T08:51:25.000Z (almost 8 years ago)
- Last Synced: 2025-07-17T09:56:27.045Z (11 months ago)
- Language: PHP
- Size: 4.88 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# ColorConsole
ColorConsole customized https://github.com/kevinlebrun/colors.php/ for Olive: `color.php` license: (The MIT License) Copyright (c) 2018 Kevin Le Brun lebrun.k@gmail.com
## Installation
Install the latest version with
```
$ composer require olive-cms/colorconsole
```
## Basic Usage
``` php
require_once 'vendor/autoload.php';
use Olive\Tools\ColorConsole;
echo ColorConsole::render(
'Your Message',
[
'color' => 'magenta',
'background' => 'white',
'style' => ['bold', 'reverse'],
'align' => 'center'
]
);
```
## Documentation
- [Usage Instructions](doc/01-usage.md)
## Requirements
- PHP 5.5+.
## License
olive-cms/colorconsole is licensed under the [MIT license](http://opensource.org/licenses/MIT).