Search by

trilbdev / wikipress-dev-stub

MrTrilB

Development stubs for WikiPress integrations and extensions.

Package info

github.com/TrilB-Dev/WikiPress-Dev-Stub

pkg:composer/trilbdev/wikipress-dev-stub

Statistics

Installs: 4

Dependents: 0

Suggesters: 0

Stars: 0

Open Issues: 0

1.0.0 2026-08-22 13:24 UTC

This package is auto-updated.

Last update: 2026-09-22 14:00:13 UTC


README

Development contracts and static-analysis dependencies for external WikiPress integrations.

Installation

Install the package as a development dependency:

composer require --dev trilbdev/wikipress-dev-stub

PHPStans projects only

composer require --dev szepeviktor/phpstan-wordpress

The package provides:

  • WikiPress interfaces, helpers, and settings contracts in wikipress-stubs.php.
  • WordPress declarations through php-stubs/wordpress-stubs.

The WikiPress stubs are loaded by Composer's generated autoloader. They are development declarations only and must not be loaded by a production plugin bootstrap.

PHPStan

Install szepeviktor/phpstan-wordpress in the consuming project to enable WordPress-specific PHPStan rules. Then add its extension and the required declaration files to the project's phpstan.neon:

includes:
	- vendor/szepeviktor/phpstan-wordpress/extension.neon

parameters:
	bootstrapFiles:
		- vendor/php-stubs/wordpress-stubs/wordpress-stubs.php
		- vendor/autoload.php

No separate PHPStan bootstrap PHP file is required for this package. Composer loads wikipress-stubs.php through the package autoload configuration. The includes and bootstrapFiles entries belong in the consuming project's phpstan.neon (or equivalent configuration), not in this package. Projects using PHPStan's extension installer may not need to add the includes entry manually.

Development

composer validate