PHPackages                             mralaminahamed/dokan-stubs - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. mralaminahamed/dokan-stubs

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

mralaminahamed/dokan-stubs
==========================

dokan function and class declaration stubs for static analysis.

v3.11.0(1y ago)02MIT

Since May 14Pushed 1y agoCompare

[ Source](https://github.com/mralaminahamed/phpstan-dokan-stubs)[ Packagist](https://packagist.org/packages/mralaminahamed/dokan-stubs)[ Docs](https://github.com/mralaminahamed/freemius-stubs)[ RSS](/packages/mralaminahamed-dokan-stubs/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependencies (4)Versions (3)Used By (0)

Dokan Stubs
===========

[](#dokan-stubs)

[![Packagist stats](https://camo.githubusercontent.com/a2aeaebb9d3b0ac5d42477c060e82e9dcc894d1454ff1294de0970cb1f9dea0d/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6d72616c616d696e6168616d65642f646f6b616e2d73747562732e737667)](https://packagist.org/packages/mralaminahamed/dokan-stubs/stats)[![Packagist](https://camo.githubusercontent.com/969fdaa435d4c6456dfe143be772529be4b4669d5ebf0935af5bb3db91c10926/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6d72616c616d696e6168616d65642f646f6b616e2d73747562732e7376673f636f6c6f723d344343363145267374796c653d706f706f7574)](https://packagist.org/packages/mralaminahamed/dokan-stubs)[![Tweet](https://camo.githubusercontent.com/f2c37423b05bb0697239f01a903bb61244243215e49041792283fa299469597a/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f54776565742d73686172652d6435643564353f7374796c653d736f6369616c266c6f676f3d74776974746572)](https://twitter.com/intent/tweet?text=https%3A%2F%2Fgithub.com%2Fmralaminahamed%2Fphpstan-dokan-stubs&url=I%20use%20mralaminahamed%2Fphpstan-dokan-stubs%20for%20IDE%20completion%20and%20static%20analysis)[![Build Status](https://camo.githubusercontent.com/b8f88fde24526b184734dd8aedfdebd46abb684284c0fc0cae6a6ae02af493fa/68747470733a2f2f6170702e7472617669732d63692e636f6d2f6d72616c616d696e6168616d65642f7068707374616e2d646f6b616e2d73747562732e7376673f6272616e63683d6d6173746572)](https://app.travis-ci.com/mralaminahamed/phpstan-dokan-stubs)

This package provides stub declarations for the [dokan plugin](https://github.com/getdokan/dokan)functions, classes and interfaces. These stubs can help plugin and theme developers leverage IDE completion and static analysis tools like [PHPStan](https://github.com/phpstan/phpstan).

The stubs are generated directly from the [source](https://github.com/getdokan/dokan)using [php-stubs/generator](https://github.com/php-stubs/generator).

Requirements
------------

[](#requirements)

- PHP &gt;=7.1

Installation
------------

[](#installation)

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

```
composer require --dev mralaminahamed/dokan-stubs
```

Alternatively you may download `dokan-stubs.php` directly.

Usage in PHPStan
----------------

[](#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
```

###  Health Score

22

—

LowBetter than 22% of packages

Maintenance33

Infrequent updates — may be unmaintained

Popularity2

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity42

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

729d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/d8e259693672819cda4c451169f5fb48998b3cc2c2bbfe36d19a188a04c86536?d=identicon)[mralaminahamed](/maintainers/mralaminahamed)

---

Top Contributors

[![mralaminahamed](https://avatars.githubusercontent.com/u/34349365?v=4)](https://github.com/mralaminahamed "mralaminahamed (6 commits)")

---

Tags

PHPStanwordpressstatic analysiswoocommercedokan

###  Code Quality

Static AnalysisPHPStan

Type Coverage Yes

### Embed Badge

![Health badge](/badges/mralaminahamed-dokan-stubs/health.svg)

```
[![Health](https://phpackages.com/badges/mralaminahamed-dokan-stubs/health.svg)](https://phpackages.com/packages/mralaminahamed-dokan-stubs)
```

###  Alternatives

[php-stubs/woocommerce-stubs

WooCommerce function and class declaration stubs for static analysis.

942.9M66](/packages/php-stubs-woocommerce-stubs)[php-stubs/wordpress-stubs

WordPress function and class declaration stubs for static analysis.

19013.0M263](/packages/php-stubs-wordpress-stubs)[woocommerce/woocommerce-sniffs

WooCommerce sniffs

496.8M42](/packages/woocommerce-woocommerce-sniffs)[php-stubs/wp-cli-stubs

WP-CLI function and class declaration stubs for static analysis.

302.3M79](/packages/php-stubs-wp-cli-stubs)[szepeviktor/phpstan-wordpress

WordPress extensions for PHPStan

3257.8M898](/packages/szepeviktor-phpstan-wordpress)[php-stubs/wordpress-globals

Global variables and global constants from WordPress core.

13799.0k17](/packages/php-stubs-wordpress-globals)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
