{"id":13828261,"url":"https://github.com/JakubOnderka/PHP-Console-Highlighter","last_synced_at":"2025-07-09T06:31:20.445Z","repository":{"id":12053675,"uuid":"14639849","full_name":"JakubOnderka/PHP-Console-Highlighter","owner":"JakubOnderka","description":"Highlight PHP code in terminal","archived":false,"fork":false,"pushed_at":"2020-04-02T19:47:23.000Z","size":30,"stargazers_count":6176,"open_issues_count":0,"forks_count":18,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-07-07T23:08:35.290Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/JakubOnderka.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2013-11-23T09:36:44.000Z","updated_at":"2025-06-25T16:12:42.000Z","dependencies_parsed_at":"2022-07-15T14:47:47.772Z","dependency_job_id":null,"html_url":"https://github.com/JakubOnderka/PHP-Console-Highlighter","commit_stats":null,"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"purl":"pkg:github/JakubOnderka/PHP-Console-Highlighter","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JakubOnderka%2FPHP-Console-Highlighter","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JakubOnderka%2FPHP-Console-Highlighter/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JakubOnderka%2FPHP-Console-Highlighter/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JakubOnderka%2FPHP-Console-Highlighter/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/JakubOnderka","download_url":"https://codeload.github.com/JakubOnderka/PHP-Console-Highlighter/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JakubOnderka%2FPHP-Console-Highlighter/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":264293385,"owners_count":23586077,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-08-04T09:02:39.005Z","updated_at":"2025-07-09T06:31:20.186Z","avatar_url":"https://github.com/JakubOnderka.png","language":"PHP","funding_links":[],"categories":["PHP","命令行( Command Line )"],"sub_categories":[],"readme":"PHP Console Highlighter\n=======================\n\n**This repository is abandoned.**\n\nSuggested alternative: https://github.com/php-parallel-lint/PHP-Console-Highlighter\n\n------\n\nHighlight PHP code in console (terminal).\n\nExample\n-------\n![Example](http://jakubonderka.github.io/php-console-highlight-example.png)\n\nInstall\n-------\n\nJust create a `composer.json` file and run the `php composer.phar install` command to install it:\n\n```json\n{\n    \"require\": {\n        \"jakub-onderka/php-console-highlighter\": \"0.*\"\n    }\n}\n```\n\nUsage\n-------\n```php\n\u003c?php\nuse JakubOnderka\\PhpConsoleColor\\ConsoleColor;\nuse JakubOnderka\\PhpConsoleHighlighter\\Highlighter;\n\nrequire __DIR__ . '/vendor/autoload.php';\n\n$highlighter = new Highlighter(new ConsoleColor());\n\n$fileContent = file_get_contents(__FILE__);\necho $highlighter-\u003egetWholeFile($fileContent);\n```\n\n------\n\n[![Downloads this Month](https://img.shields.io/packagist/dm/jakub-onderka/php-console-highlighter.svg)](https://packagist.org/packages/jakub-onderka/php-console-highlighter)\n[![Build Status](https://travis-ci.org/JakubOnderka/PHP-Console-Highlighter.svg?branch=master)](https://travis-ci.org/JakubOnderka/PHP-Console-Highlighter)\n[![License](https://poser.pugx.org/jakub-onderka/php-console-highlighter/license.svg)](https://packagist.org/packages/jakub-onderka/php-console-highlighter)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FJakubOnderka%2FPHP-Console-Highlighter","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FJakubOnderka%2FPHP-Console-Highlighter","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FJakubOnderka%2FPHP-Console-Highlighter/lists"}