Home
Docs
GitHub
Pricing
Blog
Log In

Run Sandworm Audit for your App

Get started
This package has been abandoned. Use php-parallel-lint/php-console-highlighter instead.
Generated on May 17, 2024 via composer

jakub-onderka/php-console-highlighter v0.4

Highlight PHP code in terminal
Package summary
Share
0
issues
1
license
1
MIT
Package created
23 Nov 2013
Version published
29 Sep 2018
Maintainers
1
Total deps
1
Direct deps
0
License
MIT

Issues

0
This package has no issues

Licenses

MIT License

Permissive
OSI Approved
This is a human-readable summary of (and not a substitute for) the license. Disclaimer.
Can
commercial-use
modify
distribute
sublicense
private-use
Cannot
hold-liable
Must
include-copyright
include-license
1 Packages, Including:
jakub-onderka/php-console-highlighter@v0.4
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-highlighter '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-highlighter do?

Jakub-Onderka/PHP-Console-Highlighter is a unique tool that accentuates your PHP code in your console or terminal environment. It allows you to highlight your PHP code, making it easier to differentiate between different parts of your script. This can be especially useful during debugging sessions, where identifying specific segments of your code quickly is critical.

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

Utilizing the jakub-onderka/php-console-highlighter is straightforward and easy. For starters, you need to create a composer.json file and run the php composer.phar install command to install the package:

{
    "require": {
        "jakub-onderka/php-console-highlighter": "0.*"
    }
}

Once installed, you can use it in your PHP scripts like this:

<?php
use JakubOnderka\PhpConsoleColor\ConsoleColor;
use JakubOnderka\PhpConsoleHighlighter\Highlighter;

require __DIR__ . '/vendor/autoload.php';

$highlighter = new Highlighter(new ConsoleColor());

$fileContent = file_get_contents(__FILE__);
echo $highlighter->getWholeFile($fileContent);

With this code, a new instance of the Highlighter class is created using the ConsoleColor class. The content of the current file is then retrieved using the file_get_contents function, and finally, the entire file's content is displayed with syntax highlighting using the getWholeFile method of the Highlighter instance.

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

The official Jakub-Onderka/PHP-Console-Highlighter documentation can be found directly on its GitHub page. Although the repository does not have a designated 'docs' section, the ReadMe file provides a succinct guide to installing and using the package. Visit https://github.com/JakubOnderka/PHP-Console-Highlighter for the original and most up-to-date resource.