Page Menu
Home
WickedGov Phorge
Search
Configure Global Search
Log In
Files
F6007069
example.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
1012 B
Referenced Files
None
Subscribers
None
example.php
View Options
<?php
$loader
=
require_once
__DIR__
.
'/vendor/autoload.php'
;
$consoleColor
=
new
PHP_Parallel_Lint\PhpConsoleColor\ConsoleColor
();
echo
"Colors are supported: "
.
(
$consoleColor
->
isSupported
()
?
'Yes'
:
'No'
)
.
"
\n
"
;
echo
"256 colors are supported: "
.
(
$consoleColor
->
are256ColorsSupported
()
?
'Yes'
:
'No'
)
.
"
\n\n
"
;
if
(
$consoleColor
->
isSupported
())
{
foreach
(
$consoleColor
->
getPossibleStyles
()
as
$style
)
{
echo
$consoleColor
->
apply
(
$style
,
$style
)
.
"
\n
"
;
}
}
echo
"
\n
"
;
if
(
$consoleColor
->
are256ColorsSupported
())
{
echo
"Foreground colors:
\n
"
;
for
(
$i
=
1
;
$i
<=
255
;
$i
++)
{
echo
$consoleColor
->
apply
(
"color_$i"
,
str_pad
(
$i
,
6
,
' '
,
STR_PAD_BOTH
));
if
(
$i
%
15
===
0
)
{
echo
"
\n
"
;
}
}
echo
"
\n
Background colors:
\n
"
;
for
(
$i
=
1
;
$i
<=
255
;
$i
++)
{
echo
$consoleColor
->
apply
(
"bg_color_$i"
,
str_pad
(
$i
,
6
,
' '
,
STR_PAD_BOTH
));
if
(
$i
%
15
===
0
)
{
echo
"
\n
"
;
}
}
echo
"
\n
"
;
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Oct 4 2026, 08:36 (5 w, 2 d ago)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
42/0a/9205f0926ed191a9aec901dc0d33
Default Alt Text
example.php (1012 B)
Attached To
Mode
rMWPROD MediaWiki Production
Attached
Detach File
Event Timeline
Log In to Comment