{"id":28619626,"url":"https://github.com/wp-cli/shell-command","last_synced_at":"2025-06-12T04:40:48.505Z","repository":{"id":45041015,"uuid":"85307675","full_name":"wp-cli/shell-command","owner":"wp-cli","description":"Opens an interactive PHP console for running and testing PHP code.","archived":false,"fork":false,"pushed_at":"2025-04-29T08:17:07.000Z","size":8493,"stargazers_count":22,"open_issues_count":5,"forks_count":15,"subscribers_count":8,"default_branch":"main","last_synced_at":"2025-05-06T08:54:04.216Z","etag":null,"topics":["cli","debugger","hacktoberfest","psysh","shell","wordpress","wp-cli","wp-cli-package"],"latest_commit_sha":null,"homepage":null,"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":"CONTRIBUTING.md","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":"2017-03-17T12:07:53.000Z","updated_at":"2025-04-21T23:01:48.000Z","dependencies_parsed_at":"2025-02-05T15:29:55.525Z","dependency_job_id":"a977b971-fb8f-4595-a2a7-49b8101c9887","html_url":"https://github.com/wp-cli/shell-command","commit_stats":{"total_commits":456,"total_committers":44,"mean_commits":"10.363636363636363","dds":0.6096491228070176,"last_synced_commit":"d1d4d34737c0a8402a98bc16f6e603f322085f03"},"previous_names":[],"tags_count":22,"template":false,"template_full_name":null,"purl":"pkg:github/wp-cli/shell-command","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wp-cli%2Fshell-command","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wp-cli%2Fshell-command/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wp-cli%2Fshell-command/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wp-cli%2Fshell-command/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/wp-cli","download_url":"https://codeload.github.com/wp-cli/shell-command/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wp-cli%2Fshell-command/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":259400433,"owners_count":22851809,"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","debugger","hacktoberfest","psysh","shell","wordpress","wp-cli","wp-cli-package"],"created_at":"2025-06-12T04:40:46.997Z","updated_at":"2025-06-12T04:40:48.489Z","avatar_url":"https://github.com/wp-cli.png","language":"PHP","readme":"wp-cli/shell-command\n====================\n\nOpens an interactive PHP console for running and testing PHP code.\n\n[![Testing](https://github.com/wp-cli/shell-command/actions/workflows/testing.yml/badge.svg)](https://github.com/wp-cli/shell-command/actions/workflows/testing.yml)\n\nQuick links: [Using](#using) | [Installing](#installing) | [Contributing](#contributing) | [Support](#support)\n\n## Using\n\n~~~\nwp shell [--basic]\n~~~\n\n`wp shell` allows you to evaluate PHP statements and expressions\ninteractively, from within a WordPress environment. Type a bit of code,\nhit enter, and see the code execute right before you. Because WordPress\nis loaded, you have access to all the functions, classes and globals\nthat you can use within a WordPress plugin, for example.\n\n**OPTIONS**\n\n\t[--basic]\n\t\tForce the use of WP-CLI's built-in PHP REPL, even if the Boris or\n\t\tPsySH PHP REPLs are available.\n\n**EXAMPLES**\n\n    # Call get_bloginfo() to get the name of the site.\n    $ wp shell\n    wp\u003e get_bloginfo( 'name' );\n    =\u003e string(6) \"WP-CLI\"\n\n## Installing\n\nThis package is included with WP-CLI itself, no additional installation necessary.\n\nTo install the latest version of this package over what's included in WP-CLI, run:\n\n    wp package install git@github.com:wp-cli/shell-command.git\n\n## Contributing\n\nWe appreciate you taking the initiative to contribute to this project.\n\nContributing isn’t limited to just code. We encourage you to contribute in the way that best fits your abilities, by writing tutorials, giving a demo at your local meetup, helping other users with their support questions, or revising our documentation.\n\nFor a more thorough introduction, [check out WP-CLI's guide to contributing](https://make.wordpress.org/cli/handbook/contributing/). This package follows those policy and guidelines.\n\n### Reporting a bug\n\nThink you’ve found a bug? We’d love for you to help us get it fixed.\n\nBefore you create a new issue, you should [search existing issues](https://github.com/wp-cli/shell-command/issues?q=label%3Abug%20) to see if there’s an existing resolution to it, or if it’s already been fixed in a newer version.\n\nOnce you’ve done a bit of searching and discovered there isn’t an open or fixed issue for your bug, please [create a new issue](https://github.com/wp-cli/shell-command/issues/new). Include as much detail as you can, and clear steps to reproduce if possible. For more guidance, [review our bug report documentation](https://make.wordpress.org/cli/handbook/bug-reports/).\n\n### Creating a pull request\n\nWant to contribute a new feature? Please first [open a new issue](https://github.com/wp-cli/shell-command/issues/new) to discuss whether the feature is a good fit for the project.\n\nOnce you've decided to commit the time to seeing your pull request through, [please follow our guidelines for creating a pull request](https://make.wordpress.org/cli/handbook/pull-requests/) to make sure it's a pleasant experience. See \"[Setting up](https://make.wordpress.org/cli/handbook/pull-requests/#setting-up)\" for details specific to working on this package locally.\n\n## Support\n\nGitHub issues aren't for general support questions, but there are other venues you can try: https://wp-cli.org/#support\n\n\n*This README.md is generated dynamically from the project's codebase using `wp scaffold package-readme` ([doc](https://github.com/wp-cli/scaffold-package-command#wp-scaffold-package-readme)). To suggest changes, please submit a pull request against the corresponding part of the codebase.*\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwp-cli%2Fshell-command","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwp-cli%2Fshell-command","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwp-cli%2Fshell-command/lists"}