{"id":19369494,"url":"https://github.com/likeneko/php_cli_color","last_synced_at":"2026-04-20T19:32:32.309Z","repository":{"id":57024766,"uuid":"331572118","full_name":"LikeNeko/php_cli_color","owner":"LikeNeko","description":"php的cli下输出颜色","archived":false,"fork":false,"pushed_at":"2021-03-08T09:24:14.000Z","size":6,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-06T22:56:59.249Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/LikeNeko.png","metadata":{"files":{"readme":"Readme.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2021-01-21T09:05:39.000Z","updated_at":"2021-03-08T09:24:16.000Z","dependencies_parsed_at":"2022-08-23T14:11:23.969Z","dependency_job_id":null,"html_url":"https://github.com/LikeNeko/php_cli_color","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LikeNeko%2Fphp_cli_color","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LikeNeko%2Fphp_cli_color/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LikeNeko%2Fphp_cli_color/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LikeNeko%2Fphp_cli_color/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/LikeNeko","download_url":"https://codeload.github.com/LikeNeko/php_cli_color/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240491897,"owners_count":19809978,"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-11-10T08:11:37.445Z","updated_at":"2025-11-16T19:04:09.237Z","avatar_url":"https://github.com/LikeNeko.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"## Use\n```\n * Cli::info(\"this is a data\");\n * Cli::fail(\"this is a data\");\n * Cli::wins(\"this is a data\");\n * Cli::note(\"this is a data\");\n * Cli::warn(\"this is a data\");\n\n * Log::info(\"this is a data\");\n * Log::fail(\"this is a data\");\n * Log::wins(\"this is a data\");\n * Log::note(\"this is a data\");\n * Log::warn(\"this is a data\");\n\n * Log::fail(new A());\n [fail][无上级方法] ⤵️\n A::__set_state(array(\n    'b' =\u003e 1,\n    'c' =\u003e 2,\n    'd' =\u003e 3,\n ))\n * Log::wins(['a,','b','d']);\n array (\n   0 =\u003e 'a,',\n   1 =\u003e 'b',\n   2 =\u003e 'd',\n )\n```\n\n```\n$a = '123';\nfunction aa($a,$n){\n    \\Neko\\Cli\\Log::info(\"this is a data\");\n}\nclass A{\n    public $b = 1;\n    protected $c = 2;\n    private  $d = 3;\n\n    /**\n     * @return int\n     */\n    public function getB(): int\n    {\n        return $this-\u003eb;\n    }\n\n    /**\n     * @param int $b\n     */\n    public function setB(int $b): void\n    {\n        $this-\u003eb = $b;\n    }\n}\n\\Neko\\Cli\\Log::fail(new A() );\n\\Neko\\Cli\\Log::wins(['a,','b','d']);\naa(1,2);\n\n输出:\n[fail][无上级方法][line:28] ⤵️\nA::__set_state(array(\n   'b' =\u003e 1,\n   'c' =\u003e 2,\n   'd' =\u003e 3,\n))\n[wins][无上级方法][line:29] ⤵️\narray (\n  0 =\u003e 'a,',\n  1 =\u003e 'b',\n  2 =\u003e 'd',\n)\n[info][func:aa(1,2)][line:5] this is a data\n\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flikeneko%2Fphp_cli_color","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flikeneko%2Fphp_cli_color","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flikeneko%2Fphp_cli_color/lists"}