{"id":19694562,"url":"https://github.com/vaneves/console","last_synced_at":"2026-05-17T17:32:44.861Z","repository":{"id":42980606,"uuid":"472122288","full_name":"vaneves/console","owner":"vaneves","description":"💻 PHP Simple Console","archived":false,"fork":false,"pushed_at":"2022-03-25T00:44:17.000Z","size":31,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-08-17T14:41:28.690Z","etag":null,"topics":["cli","console","console-color","php","terminal"],"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/vaneves.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":"2022-03-20T22:52:21.000Z","updated_at":"2023-10-24T18:54:28.000Z","dependencies_parsed_at":"2022-09-06T12:12:38.180Z","dependency_job_id":null,"html_url":"https://github.com/vaneves/console","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/vaneves/console","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vaneves%2Fconsole","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vaneves%2Fconsole/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vaneves%2Fconsole/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vaneves%2Fconsole/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/vaneves","download_url":"https://codeload.github.com/vaneves/console/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vaneves%2Fconsole/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33147510,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-17T09:28:26.183Z","status":"ssl_error","status_checked_at":"2026-05-17T09:27:52.702Z","response_time":107,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["cli","console","console-color","php","terminal"],"created_at":"2024-11-11T19:23:32.504Z","updated_at":"2026-05-17T17:32:44.828Z","avatar_url":"https://github.com/vaneves.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Console\n\nPHP Simple Console\n\n## Install\n\n```bash\ncomposer require vaneves/console\n```\n\n## Basic Usage\n\n```php\nrequire_once('../vendor/autoload.php');\n\nuse Vaneves\\Console\\Console;\n```\n\n### Console\n\n```php\nuse Vaneves\\Console\\Console;\n\n$console = new Console();\n\n$console-\u003etitle('A highlighted title for the section');\n\n$console-\u003eline('A regular line.');\n\n$console-\u003esuccess('Operation executed successfully!');\n$console-\u003einfo('This is just highlighted information.');\n$console-\u003ewarning('This requires your attention!');\n$console-\u003eerror('Oops! Error during execution!');\n$console-\u003ecomment('Just a comment.');\n$console-\u003ecomment('Just a comment without slash.', false);\n\n$console-\u003esuccessWithIcon('Operation executed successfully!');\n$console-\u003einfoWithIcon('This is just highlighted information.');\n$console-\u003ewarningWithIcon('This requires your attention!');\n$console-\u003eerrorWithIcon('Oops! Error during execution!');\n\n$console-\u003esuccessWithIcon('Operation executed successfully!', '❤');\n$console-\u003einfoWithIcon('This is just highlighted information.', '➥');\n$console-\u003ewarningWithIcon('This requires your attention!', '➤');\n$console-\u003eerrorWithIcon('Oops! Error during execution!', '✖');\n```\n\nOutput:\n\n```bash\n===================================\nA highlighted title for the section\n===================================\n\nA regular line.\nOperation executed successfully!\nThis is just highlighted information.\nThis requires your attention!\nOops! Error during execution!\n// Just a comment.\nJust a comment without slash.\n✔ Operation executed successfully!\n☛ This is just highlighted information.\n⚠ This requires your attention!\n✘ Oops! Error during execution!\n❤ Operation executed successfully!\n➥ This is just highlighted information.\n➤ This requires your attention!\n✖ Oops! Error during execution!\n```\n\n### Progress\n\n```php\nuse Vaneves\\Console\\Progress;\n\n$total = 150;\n\n$progress = new Progress($total);\n$progress-\u003estart();\n\nfor ($i = 1; $i \u003c= $total; $i++) {\n    $progress-\u003eadvance();\n    usleep(30000);\n}\n$progress-\u003efinish();\n```\n\nOutput:\n\n```bash\n74/150 [▓▓▓▓▓▓▓▓▓▓▓▓▓░░░░░░░░░░░░] 49%\n```\n\n### Table\n\n```php\nuse Vaneves\\Console\\Table;\n\n$data = [\n    [\n        'name' =\u003e 'Van Neves',\n        'domain' =\u003e 'vaneves.com',\n        'profession' =\u003e 'PHP Developer',\n    ],\n    [\n        'name' =\u003e 'Luiz Carvalho',\n        'domain' =\u003e 'luizcarvalho.com',\n        'profession' =\u003e 'Ruby Developer',\n    ],\n    [\n        'name' =\u003e 'Nyl Marcos',\n        'domain' =\u003e '',\n        'profession' =\u003e 'PHP Developer',\n    ],\n];\n\n$table = new Table($data);\n$table-\u003eshow();\n```\n\nOutput:\n\n```bash\n+---------------+------------------+----------------+\n| name          | domain           | profession     |\n+---------------+------------------+----------------+\n| Van Neves     | vaneves.com      | PHP Developer  |\n| Luiz Carvalho | luizcarvalho.com | Ruby Developer |\n| Nyl Marcos    |                  | PHP Developer  |\n+---------------+------------------+----------------+\n```\n\n### Padding\n\n```php\nuse Vaneves\\Console\\Padding;\n\n$padding = new Padding(20);\n$padding-\u003eline('Apples', '$0.99');\n$padding-\u003eline('Bananas', '$0.39');\n$padding-\u003eline('Clementines', '$3.99');\n$padding-\u003eline('Lemons', '$0.69');\n$padding-\u003eline('Strawberriess', '$1.99');\n```\n\nOutput:\n\n```bash\nApples.........$0.99\nBananas........$0.39\nClementines....$3.99\nLemons.........$0.69\nStrawberriess..$1.99\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvaneves%2Fconsole","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvaneves%2Fconsole","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvaneves%2Fconsole/lists"}