All Projects → php-stubs → woocommerce-stubs

php-stubs / woocommerce-stubs

Licence: MIT license
WooCommerce function and class declaration stubs for static analysis.

Programming Languages

PHP
23972 projects - #3 most used programming language
shell
77523 projects

Projects that are alternatives of or similar to woocommerce-stubs

phpstan-phpspec
PhpSpec extension for PHPStan
Stars: ✭ 19 (-61.22%)
Mutual labels:  static-analysis, phpstan
phpstan-extensions
Extensions for PHPStan
Stars: ✭ 61 (+24.49%)
Mutual labels:  static-analysis, phpstan
phpstan-symfony
*DEPRECATED* Symfony extension for PHPStan
Stars: ✭ 42 (-14.29%)
Mutual labels:  static-analysis, phpstan
phpstan-webmozart-assert
PHPStan extension for webmozart/assert
Stars: ✭ 132 (+169.39%)
Mutual labels:  static-analysis, phpstan
phpstan
PHP Static Analysis in Github Actions.
Stars: ✭ 41 (-16.33%)
Mutual labels:  static-analysis, phpstan
phpstan-wordpress
WordPress extensions for PHPStan ⛏️
Stars: ✭ 182 (+271.43%)
Mutual labels:  static-analysis, phpstan
Phpstan
PHP Static Analysis Tool - discover bugs in your code without running it!
Stars: ✭ 10,534 (+21397.96%)
Mutual labels:  static-analysis, phpstan
vim-phpstan
A Vim plugin for PHPStan - https://github.com/phpstan/phpstan. It calls `phpstan` to do static analysis of your PHP code and displays the errors in Vim's quickfix list.
Stars: ✭ 26 (-46.94%)
Mutual labels:  static-analysis, phpstan
phpstan-nette
Nette Framework class reflection extension for PHPStan & framework-specific rules
Stars: ✭ 87 (+77.55%)
Mutual labels:  static-analysis, phpstan
phpstan-dba
PHPStan based SQL static analysis and type inference for the database access layer
Stars: ✭ 163 (+232.65%)
Mutual labels:  static-analysis, phpstan
gotcha
Go Taint CHeck Analyser
Stars: ✭ 40 (-18.37%)
Mutual labels:  static-analysis
aura
Python source code auditing and static analysis on a large scale
Stars: ✭ 101 (+106.12%)
Mutual labels:  static-analysis
WPGlobus
WPGlobus is a family of WordPress plugins assisting you in making bilingual / multilingual WordPress blogs and sites. This is a development repository. The stable version is on WordPress.org.
Stars: ✭ 40 (-18.37%)
Mutual labels:  woocommerce
haros
H(igh) A(ssurance) ROS - Static analysis of ROS application code.
Stars: ✭ 168 (+242.86%)
Mutual labels:  static-analysis
twly
Wanna get DRY? Static analysis tool for detecting repeat code.
Stars: ✭ 42 (-14.29%)
Mutual labels:  static-analysis
firehose
Interchange format for results for static analysis tools
Stars: ✭ 62 (+26.53%)
Mutual labels:  static-analysis
save
Universal test framework for cli tools [mainly for code analyzers and compilers]
Stars: ✭ 33 (-32.65%)
Mutual labels:  static-analysis
intercept
INTERCEPT / Policy as Code Static Analysis Auditing / SAST
Stars: ✭ 54 (+10.2%)
Mutual labels:  static-analysis
khalti-woocommerce
Woocommerce plugin for Khalti Payment Gateway Integration
Stars: ✭ 15 (-69.39%)
Mutual labels:  woocommerce
mab
Style-preserving Lua parser in Rust
Stars: ✭ 14 (-71.43%)
Mutual labels:  static-analysis

WooCommerce Stubs

Build Status

This package provides stub declarations for WooCommerce functions, classes and interfaces. These stubs can help plugin and theme developers leverage static analysis tools like PHPStan, which is not able to parse WooCommerce as it is not clean OOP code.

Stubs are generated directly from the source using giacocorsiglia/stubs-generator.

Requirements

  • PHP >=7.1

Installation

Require this package as a development dependency with Composer.

composer require --dev php-stubs/woocommerce-stubs

Alternatively you may download woocommerce-stubs.php directly.

Usage in PHPStan

Include all stubs in PHPStan configuration file.

parameters:
    bootstrapFiles:
        - %rootDir%/../../php-stubs/wordpress-stubs/wordpress-stubs.php
        - %rootDir%/../../php-stubs/woocommerce-stubs/woocommerce-stubs.php
        #- %rootDir%/../../php-stubs/woocommerce-stubs/woocommerce-packages-stubs.php
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].