{"id":14152560,"url":"https://github.com/php-stubs/woocommerce-stubs","last_synced_at":"2025-04-09T06:10:52.893Z","repository":{"id":35164462,"uuid":"214685922","full_name":"php-stubs/woocommerce-stubs","owner":"php-stubs","description":"WooCommerce function and class declaration stubs for static analysis","archived":false,"fork":false,"pushed_at":"2024-09-25T17:38:43.000Z","size":5888,"stargazers_count":83,"open_issues_count":1,"forks_count":10,"subscribers_count":4,"default_branch":"master","last_synced_at":"2024-10-29T22:32:29.815Z","etag":null,"topics":["definitions","phpstan","static-analysis","stubs","woocommerce","wordpress"],"latest_commit_sha":null,"homepage":"https://packagist.org/packages/php-stubs/woocommerce-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":"2019-10-12T17:17:19.000Z","updated_at":"2024-09-25T17:38:43.000Z","dependencies_parsed_at":"2023-01-15T15:15:18.710Z","dependency_job_id":"fcf4903e-de65-4e45-b8ba-6f163b995aa7","html_url":"https://github.com/php-stubs/woocommerce-stubs","commit_stats":{"total_commits":175,"total_committers":3,"mean_commits":"58.333333333333336","dds":0.05142857142857138,"last_synced_commit":"1995245b3ebfd82eeaf3a8e9d3ec962f00ab3b73"},"previous_names":[],"tags_count":138,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/php-stubs%2Fwoocommerce-stubs","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/php-stubs%2Fwoocommerce-stubs/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/php-stubs%2Fwoocommerce-stubs/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/php-stubs%2Fwoocommerce-stubs/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/php-stubs","download_url":"https://codeload.github.com/php-stubs/woocommerce-stubs/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247987285,"owners_count":21028895,"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":["definitions","phpstan","static-analysis","stubs","woocommerce","wordpress"],"created_at":"2024-08-17T05:01:29.279Z","updated_at":"2025-04-09T06:10:52.870Z","avatar_url":"https://github.com/php-stubs.png","language":"PHP","funding_links":["https://github.com/sponsors/php-stubs"],"categories":["PHP"],"sub_categories":[],"readme":"\u003e [!IMPORTANT]\n\u003e Hello everyone! This is Viktor who runs the php-stubs organization. I am planning to stop contributing to the WordPress ecosystem because it is extremely difficult and I do not earn (min) €100/month.\n\nPlease support my work to avoid abandoning this package.\n\n[![Sponsor](https://github.com/szepeviktor/.github/raw/master/.github/assets/github-like-sponsor-button.svg)](https://github.com/sponsors/php-stubs)\n\nThank you!\n\n# WooCommerce Stubs\n\n[![Packagist stats](https://img.shields.io/packagist/dt/php-stubs/woocommerce-stubs.svg)](https://packagist.org/packages/php-stubs/woocommerce-stubs/stats)\n[![Packagist](https://img.shields.io/packagist/v/php-stubs/woocommerce-stubs.svg?color=4CC61E\u0026style=popout)](https://packagist.org/packages/php-stubs/woocommerce-stubs)\n[![Tweet](https://img.shields.io/badge/Tweet-share-d5d5d5?style=social\u0026logo=twitter)](https://twitter.com/intent/tweet?text=https%3A%2F%2Fgithub.com%2Fphp-stubs%2Fwoocommerce-stubs\u0026url=I%20use%20php-stubs%2Fwoocommerce-stubs%20for%20IDE%20completion%20and%20static%20analysis)\n[![Build Status](https://app.travis-ci.com/php-stubs/woocommerce-stubs.svg?branch=master)](https://app.travis-ci.com/php-stubs/woocommerce-stubs)\n\nThis package provides stub declarations for the [WooCommerce plugin](https://wordpress.org/plugins/woocommerce/)\nfunctions, classes and interfaces.\nThese stubs can help plugin and theme developers leverage IDE completion\nand static analysis tools like [PHPStan](https://github.com/phpstan/phpstan).\n\nThe stubs are generated directly from the [source](https://github.com/woocommerce/woocommerce)\nusing [php-stubs/generator](https://github.com/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/woocommerce-stubs\n```\n\nAlternatively you may download `woocommerce-stubs.php` directly.\n\n## Usage in PHPStan\n\nInclude stubs in PHPStan configuration file.\n\n```yaml\nparameters:\n    bootstrapFiles:\n        - vendor/php-stubs/woocommerce-stubs/woocommerce-stubs.php\n        #- vendor/php-stubs/woocommerce-stubs/woocommerce-packages-stubs.php\n```\n\n## Support package maintenance\n\nPlease consider supporting this work.\n\n[![Sponsor](https://github.com/szepeviktor/.github/raw/master/.github/assets/github-like-sponsor-button.svg)](https://github.com/sponsors/php-stubs)\n\nThank you!\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fphp-stubs%2Fwoocommerce-stubs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fphp-stubs%2Fwoocommerce-stubs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fphp-stubs%2Fwoocommerce-stubs/lists"}