{"id":14966358,"url":"https://github.com/yiisoft/yii2-shell","last_synced_at":"2025-05-15T10:00:34.677Z","repository":{"id":47292007,"uuid":"53136081","full_name":"yiisoft/yii2-shell","owner":"yiisoft","description":"Interactive shell","archived":false,"fork":false,"pushed_at":"2025-02-25T09:21:28.000Z","size":152,"stargazers_count":136,"open_issues_count":0,"forks_count":22,"subscribers_count":24,"default_branch":"master","last_synced_at":"2025-05-07T06:29:26.903Z","etag":null,"topics":["hacktoberfest","php","psysh","shell","yii","yii2"],"latest_commit_sha":null,"homepage":"https://www.yiiframework.com/","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/yiisoft.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":".github/CONTRIBUTING.md","funding":".github/FUNDING.yml","license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":".github/SECURITY.md","support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null},"funding":{"open_collective":"yiisoft"}},"created_at":"2016-03-04T13:06:39.000Z","updated_at":"2025-03-15T20:58:16.000Z","dependencies_parsed_at":"2023-11-30T14:03:38.412Z","dependency_job_id":"b25ff6a4-e0a4-484a-91a9-e9861b4eb8e6","html_url":"https://github.com/yiisoft/yii2-shell","commit_stats":{"total_commits":48,"total_committers":12,"mean_commits":4.0,"dds":0.5833333333333333,"last_synced_commit":"43d194df2d37989cc52d21ab842c0b79d0cbe786"},"previous_names":[],"tags_count":7,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yiisoft%2Fyii2-shell","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yiisoft%2Fyii2-shell/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yiisoft%2Fyii2-shell/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yiisoft%2Fyii2-shell/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/yiisoft","download_url":"https://codeload.github.com/yiisoft/yii2-shell/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254319715,"owners_count":22051072,"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":["hacktoberfest","php","psysh","shell","yii","yii2"],"created_at":"2024-09-24T13:36:16.122Z","updated_at":"2025-05-15T10:00:33.659Z","avatar_url":"https://github.com/yiisoft.png","language":"PHP","readme":"\u003cp align=\"center\"\u003e\n    \u003ca href=\"https://github.com/yiisoft\" target=\"_blank\"\u003e\n        \u003cimg src=\"https://avatars0.githubusercontent.com/u/993323\" height=\"100px\"\u003e\n    \u003c/a\u003e\n    \u003ch1 align=\"center\"\u003eInteractive Shell Extension for Yii 2\u003c/h1\u003e\n    \u003cbr\u003e\n\u003c/p\u003e\n\nThis extension provides an interactive shell for [Yii framework 2.0](https://www.yiiframework.com) based on [psysh](https://psysh.org/).\n\nFor license information check the [LICENSE](LICENSE.md)-file.\n\n[![Latest Stable Version](https://poser.pugx.org/yiisoft/yii2-shell/v/stable.png)](https://packagist.org/packages/yiisoft/yii2-shell)\n[![Total Downloads](https://poser.pugx.org/yiisoft/yii2-shell/downloads.png)](https://packagist.org/packages/yiisoft/yii2-shell)\n\n\nInstallation\n------------\n\nThe preferred way to install this extension is through [composer](https://getcomposer.org/download/).\n\nEither run\n\n    composer require yiisoft/yii2-shell\n\nor add\n\n```json\n\"yiisoft/yii2-shell\": \"~2.0.0\"\n```\n\nto the `require` section of your composer.json.\n\n\nUsage\n-----\n\nAfter installation, you will be able to run the interactive shell via command line:\n\n```\n# Change path to your application's root directory\ncd path/to/myapp\n\n# Start the interactive shell\n./yii shell\n```\n\nYou can access the application object using `Yii::$app`. Additionally you have access to all your and your dependencies' classes.\n\nSee [psysh's website](https://psysh.org/#features) for a list of available features.\n\n\nConfiguration\n-------------\n\nYou can configure the PsySH shell by setting options via the `shellConfig` variable in the controller, i.e. add this to your console application configuration:\n\n\n```\n'controllerMap' =\u003e [\n    'shell' =\u003e [\n        'shellConfig' =\u003e [\n            'updateCheck' =\u003e 'weekly',\n            'verbosity' =\u003e \\Psy\\Configuration::VERBOSITY_VERBOSE,\n        ],\n    ],\n],\n```\n\nSee https://github.com/bobthecow/psysh/wiki/Config-options for a list of PsySH configurable options.\n\n**Note**: `updateCheck` is explictly set to _never_ by yii2-shell. All other PsySH options use default values.\n\n\nScreenshot\n----------\n\nThe following screenshot shows a usage example:\n\n![Usage example of Yii2 shell](screenshot.png)\n","funding_links":["https://opencollective.com/yiisoft"],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyiisoft%2Fyii2-shell","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fyiisoft%2Fyii2-shell","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyiisoft%2Fyii2-shell/lists"}