{"id":13532737,"url":"https://github.com/wp-cli/php-cli-tools","last_synced_at":"2025-06-12T04:40:37.001Z","repository":{"id":855588,"uuid":"587642","full_name":"wp-cli/php-cli-tools","owner":"wp-cli","description":"A collection of tools to help with PHP command line utilities","archived":false,"fork":false,"pushed_at":"2025-05-12T20:05:28.000Z","size":351,"stargazers_count":680,"open_issues_count":9,"forks_count":117,"subscribers_count":32,"default_branch":"master","last_synced_at":"2025-06-05T20:38:01.274Z","etag":null,"topics":["cli","command-line","hacktoberfest","wp-cli"],"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/wp-cli.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":".github/CODEOWNERS","security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2010-03-31T00:53:08.000Z","updated_at":"2025-05-12T20:05:31.000Z","dependencies_parsed_at":"2023-07-05T15:16:48.354Z","dependency_job_id":"362b178b-c1f9-4a68-b748-519c2ac43840","html_url":"https://github.com/wp-cli/php-cli-tools","commit_stats":{"total_commits":241,"total_committers":46,"mean_commits":5.239130434782608,"dds":0.8340248962655602,"last_synced_commit":"0f503a790698cb36cf835e5c8d09cd4b64bf2325"},"previous_names":[],"tags_count":39,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wp-cli%2Fphp-cli-tools","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wp-cli%2Fphp-cli-tools/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wp-cli%2Fphp-cli-tools/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wp-cli%2Fphp-cli-tools/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/wp-cli","download_url":"https://codeload.github.com/wp-cli/php-cli-tools/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wp-cli%2Fphp-cli-tools/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":259178115,"owners_count":22817364,"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":["cli","command-line","hacktoberfest","wp-cli"],"created_at":"2024-08-01T07:01:13.385Z","updated_at":"2025-06-12T04:40:36.980Z","avatar_url":"https://github.com/wp-cli.png","language":"PHP","readme":"PHP Command Line Tools\n======================\n\nA collection of functions and classes to assist with command line development.\n\nRequirements\n\n * PHP \u003e= 5.6\n\nSuggested PHP extensions\n \n * mbstring - Used for calculating string widths.\n\nFunction List\n-------------\n\n * `cli\\out($msg, ...)`\n * `cli\\out_padded($msg, ...)`\n * `cli\\err($msg, ...)`\n * `cli\\line($msg = '', ...)`\n * `cli\\input()`\n * `cli\\prompt($question, $default = false, $marker = ':')`\n * `cli\\choose($question, $choices = 'yn', $default = 'n')`\n * `cli\\menu($items, $default = false, $title = 'Choose an Item')`\n\nProgress Indicators\n-------------------\n\n * `cli\\notify\\Dots($msg, $dots = 3, $interval = 100)`\n * `cli\\notify\\Spinner($msg, $interval = 100)`\n * `cli\\progress\\Bar($msg, $total, $interval = 100)`\n\nTabular Display\n---------------\n\n * `cli\\Table::__construct(array $headers = null, array $rows = null)`\n * `cli\\Table::setHeaders(array $headers)`\n * `cli\\Table::setRows(array $rows)`\n * `cli\\Table::setRenderer(cli\\table\\Renderer $renderer)`\n * `cli\\Table::addRow(array $row)`\n * `cli\\Table::sort($column)`\n * `cli\\Table::display()`\n\nThe display function will detect if output is piped and, if it is, render a tab delimited table instead of the ASCII\ntable rendered for visual display.\n\nYou can also explicitly set the renderer used by calling `cli\\Table::setRenderer()` and giving it an instance of one\nof the concrete `cli\\table\\Renderer` classes.\n\nTree Display\n------------\n\n * `cli\\Tree::__construct()`\n * `cli\\Tree::setData(array $data)`\n * `cli\\Tree::setRenderer(cli\\tree\\Renderer $renderer)`\n * `cli\\Tree::render()`\n * `cli\\Tree::display()`\n\nArgument Parser\n---------------\n\nArgument parsing uses a simple framework for taking a list of command line arguments,\nusually straight from `$_SERVER['argv']`, and parses the input against a set of\ndefined rules.\n\nCheck `examples/arguments.php` for an example.\n\nUsage\n-----\n\nSee `examples/` directory for examples.\n\n\nTodo\n----\n\n * Expand this README\n * Add doc blocks to rest of code\n","funding_links":[],"categories":["PHP","[PHP](https://www.php.net/)"],"sub_categories":["Useful awesome list for Go cli"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwp-cli%2Fphp-cli-tools","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwp-cli%2Fphp-cli-tools","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwp-cli%2Fphp-cli-tools/lists"}