8000 GitHub - getdokan/phpstan-dokan-stubs: dokan function and class declaration stubs for static analysis
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

getdokan/phpstan-dokan-stubs

Repository files navigation

Dokan Stubs

Packagist stats Packagist Tweet Build Status

This package provides stub declarations for the dokan plugin functions, classes and interfaces. These stubs can help plugin and theme developers leverage IDE completion and static analysis tools like PHPStan.

The stubs are generated directly from the source using php-stubs/generator.

Requirements

  • PHP >=7.1

Installation

Require this package as a development dependency with Composer.

composer require --dev mralaminahamed/dokan-stubs

Alternatively you may download dokan-stubs.php directly.

Usage in PHPStan

Include stubs in PHPStan configuration file.

parameters:
    bootstrapFiles:
        - vendor/mralaminahamed/dokan-stubs/dokan-constants-stubs.php
        - vendor/mralaminahamed/dokan-stubs/dokan-stubs.php

About

dokan function and class declaration stubs for static analysis

Resources

License

Stars

Watchers

Forks

Packages

No packages published
0