{"id":13715815,"url":"https://github.com/php-stubs/wp-cli-stubs","last_synced_at":"2025-04-06T04:14:51.581Z","repository":{"id":44442545,"uuid":"284686367","full_name":"php-stubs/wp-cli-stubs","owner":"php-stubs","description":"WP-CLI function and class declaration stubs for static analysis.","archived":false,"fork":false,"pushed_at":"2024-12-13T15:52:38.000Z","size":787,"stargazers_count":26,"open_issues_count":3,"forks_count":2,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-03-30T03:09:35.094Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://packagist.org/packages/php-stubs/wp-cli-stubs","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/php-stubs.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null},"funding":{"github":["php-stubs"]}},"created_at":"2020-08-03T11:50:42.000Z","updated_at":"2025-01-26T21:20:13.000Z","dependencies_parsed_at":"2024-01-09T19:01:13.461Z","dependency_job_id":"30e564b9-4ef0-4ddc-a9da-7ce3c1f50b87","html_url":"https://github.com/php-stubs/wp-cli-stubs","commit_stats":null,"previous_names":[],"tags_count":11,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/php-stubs%2Fwp-cli-stubs","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/php-stubs%2Fwp-cli-stubs/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/php-stubs%2Fwp-cli-stubs/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/php-stubs%2Fwp-cli-stubs/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/php-stubs","download_url":"https://codeload.github.com/php-stubs/wp-cli-stubs/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247430963,"owners_count":20937875,"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-08-03T00:01:03.822Z","updated_at":"2025-04-06T04:14:51.550Z","avatar_url":"https://github.com/php-stubs.png","language":"PHP","funding_links":["https://github.com/sponsors/php-stubs"],"categories":["PHP","Third-party packages"],"sub_categories":["Notable packages"],"readme":"# WP-CLI Stubs\n\n[![Build Status](https://app.travis-ci.com/php-stubs/wp-cli-stubs.svg?branch=master)](https://app.travis-ci.com/php-stubs/wp-cli-stubs)\n\nThis package provides stub declarations for [WP-CLI](https://wp-cli.org/) functions, classes and interfaces.\nThese stubs can help plugin and theme developers leverage static analysis tools like [PHPStan](https://github.com/phpstan/phpstan), which are unable to parse WP-CLI as it is not clean OOP code.\n\nStubs are generated directly from the [source](https://wp-cli.org/) using [giacocorsiglia/stubs-generator](https://github.com/GiacoCorsiglia/php-stubs-generator).\n\n### Requirements\n\n- PHP \u003e=7.1\n\n### Installation\n\nRequire this package as a development dependency with [Composer](https://getcomposer.org).\n\n```bash\ncomposer require --dev php-stubs/wp-cli-stubs\n```\n\nAlternatively you may download `wp-cli-stubs.php` directly.\n\n### Usage in PHPStan\n\nInclude all stubs in PHPStan configuration file.\n\n```neon\nparameters:\n    scanFiles:\n        - %rootDir%/../../php-stubs/wordpress-stubs/wordpress-stubs.php\n        - %rootDir%/../../php-stubs/wp-cli-stubs/wp-cli-stubs.php\n        - %rootDir%/../../php-stubs/wp-cli-stubs/wp-cli-commands-stubs.php\n        - %rootDir%/../../php-stubs/wp-cli-stubs/wp-cli-i18n-stubs.php\n        - %rootDir%/../../php-stubs/wp-cli-stubs/wp-cli-tools-stubs.php\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fphp-stubs%2Fwp-cli-stubs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fphp-stubs%2Fwp-cli-stubs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fphp-stubs%2Fwp-cli-stubs/lists"}