Home
Docs
GitHub
Pricing
Blog
Log In

Run Sandworm Audit for your App

Get started
Hold on, we're currently generating a fresh version of this report
This package has been abandoned. Use php-parallel-lint/php-console-color instead.
Generated on May 4, 2024 via composer

jakub-onderka/php-console-color v0.2

Package summary
Share
0
issues
1
license
1
BSD-2-Clause
Package created
7 Apr 2014
Version published
29 Sep 2018
Maintainers
1
Total deps
1
Direct deps
0
License
BSD-2-Clause

Issues

0
This package has no issues

Licenses

BSD 2-Clause "Simplified" License

Permissive
OSI Approved
This is a human-readable summary of (and not a substitute for) the license. Disclaimer.
Can
commercial-use
modify
distribute
place-warranty
Cannot
hold-liable
Must
include-copyright
include-license
1 Packages, Including:
jakub-onderka/php-console-color@v0.2
Disclaimer

This deed highlights only some of the key features and terms of the actual license. It is not a license and has no legal value. You should carefully review all of the terms and conditions of the actual license before using the licensed material.

Sandworm is not a law firm and does not provide legal services. Distributing, displaying, or linking to this deed or the license that it summarizes does not create a lawyer-client or any other relationship.

Direct Dependencies

0
All Dependencies CSV
β“˜ This is a list of jakub-onderka/php-console-color 's direct dependencies. Data on all dependencies, including transitive ones, is available via CSV download.
NameVersionSizeLicenseTypeVulnerabilities

Visualizations

Frequently Asked Questions

What does jakub-onderka/php-console-color do?

Jakub-onderka/php-console-color is a streamlined PHP library designed to create colored console output. This powerful tool is particularly helpful when you want to enhance the readability of your console information by implementing color-coding strategies.

How do you use jakub-onderka/php-console-color?

Using Jakub-onderka/php-console-color is an effortless task. To start with, include the package in your PHP file using Composer's autoloading feature. The console output color can be set by instantiating the ConsoleColor class and using the addStyle method to define custom styles.

Here's a basic example of how you can use php-console-color:

require 'vendor/autoload.php';

use JakubOnderka\PhpConsoleColor\ConsoleColor;

$consoleColor = new ConsoleColor();
echo $consoleColor->apply('green', 'Hello world!');

In the above coding snippet, the output 'Hello world!' will appear in green color on the console.

And if you want to add custom styles :

$consoleColor = new ConsoleColor();
$consoleColor->addStyle('blink', ['underscore', 'yellow', 'bg_red']);
echo $consoleColor->apply('blink, underscore', 'Hello world!');

In this case, the output 'Hello world!' will appear as underscored yellow text on a red background and will blink.

Please remember blink may not work in all terminal emulators.

Where are the jakub-onderka/php-console-color docs?

As for documentation on jakub-onderka/php-console-color, you can refer to the example.php file in the package's root directory on GitHub. The example file serves as practical and efficient documentation, demonstrating how to use this library effectively.

All Versions