kevinlebrun / colors.php Goto Github PK
View Code? Open in Web Editor NEWAn easy way to add colors in your CLI scripts.
License: MIT License
An easy way to add colors in your CLI scripts.
License: MIT License
$c->setTheme(
array(
'green' => ['green'],
)
);
leads to recursion between:
Colors\Color->stylize() /src/Colors/Color.php:210
Colors\Color->applyUserStyle() /src/Colors/Color.php:152
Deprecated error in PHP 8 - Function 'setTheme' has been deprecated
$c=new Colour();
$c->setTheme(
array(
'header' => array('white', 'bg_blue'),
'info' => array('black', 'bg_light_gray'),
'success' => array('white', 'bg_green'),
'error' => array('white', 'bg_red'),
)
);
As title, I think it's time to drop the php-5.x
version supports.
The php-5.x
versions are too old to maintain and they're not maintained by official team anymore.
echo $c('Hello World!')->white()->bold()->highlight('green') . PHP_EOL;
if I use this in object and it will be like this: public $c = new \Colors\Color(); $this->c('Hello,World!);
And this will give a message : Call to undefind method xxx\xxx::c();
I tried to use this module on windows and found that if I override the isSupported() method to return true, the coloring works just fine, but otherwise the library thinks that coloring is not supported and so does not color the output.
Can you add the ide Code hinting?
When I try to use this lib, I am worry about the coding hinting....
Thanks
Can you please release version 0.4 so we can use the new colors. I'm more comfortable with using a stable version instead of an unstable dev-master in Composer.
Thanks!
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.