Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/mralaminahamed/phpstan-woocommerce-subscriptions-stubs

WooCommerce Subscriptons function and class declaration stubs for static analysis.
https://github.com/mralaminahamed/phpstan-woocommerce-subscriptions-stubs

Last synced: 1 day ago
JSON representation

WooCommerce Subscriptons function and class declaration stubs for static analysis.

Awesome Lists containing this project

README

        

# WooCommerce Subscription Stubs

[![Packagist stats](https://img.shields.io/packagist/dt/mralaminahamed/mmerce-subscriptions-stubs.svg)](https://packagist.org/packages/mralaminahamed/mmerce-subscriptions-stubs/stats)
[![Packagist](https://img.shields.io/packagist/v/mralaminahamed/mmerce-subscriptions-stubs.svg?color=4CC61E&style=popout)](https://packagist.org/packages/mralaminahamed/mmerce-subscriptions-stubs)
[![Tweet](https://img.shields.io/badge/Tweet-share-d5d5d5?style=social&logo=twitter)](https://twitter.com/intent/tweet?text=https%3A%2F%2Fgithub.com%2Fmralaminahamed%2Fphpstan-woocommerce-subscriptions-stubs&url=I%20use%20mralaminahamed%2Fphpstan-woocommerce-subscriptions-stubs%20for%20IDE%20completion%20and%20static%20analysis)
[![Build Status](https://app.travis-ci.com/mralaminahamed/phpstan-woocommerce-subscriptions-stubs.svg?branch=master)](https://app.travis-ci.com/mralaminahamed/phpstan-woocommerce-subscriptions-stubs)

These stubs can help plugin and theme developers leverage IDE completion
and static analysis tools like [PHPStan](https://github.com/phpstan/phpstan).

## Requirements

- PHP >=7.1

## Installation

Require this package as a development dependency with [Composer](https://getcomposer.org).

```bash
composer require --dev mralaminahamed/mmerce-subscriptions-stubs
```

Alternatively you may download `mmerce-subscriptions-stubs.php` directly.

## Usage in PHPStan

Include stubs in PHPStan configuration file.

```yaml
parameters:
bootstrapFiles:
- vendor/mralaminahamed/mmerce-subscriptions-stubs/mmerce-subscriptions-constants-stubs.php
- vendor/mralaminahamed/mmerce-subscriptions-stubs/mmerce-subscriptions-stubs.php
```