mccomaschris/timber-stubs
Timber function and class declaration stubs for static analysis.
Maintainers
dev-main
2025-03-13 13:44 UTC
Requires
- php-stubs/wordpress-stubs: ^5.3.0 || ^6.0
Requires (Dev)
- php: ^8.0
- php-stubs/generator: ^0.8.4
Suggests
- symfony/polyfill-php73: Symfony polyfill backporting some PHP 7.3+ features to lower PHP versions
- szepeviktor/phpstan-wordpress: WordPress extensions for PHPStan
Provides
None
Conflicts
None
Replaces
None
MIT e87930409933b3b9e6e47a44f9132606d97df6df
This package is auto-updated.
Last update: 2026-06-13 16:19:00 UTC
README
It provides stub declarations for Timber core functions, classes and interfaces.
These stubs can help plugin and theme developers leverage static analysis tools like PHPStan.
The stubs are generated from timber/timber using php-stubs/generator.
Requirements
- PHP ^8.0
Installation
Require this package as a development dependency with Composer.
composer require --dev mccomaschris/timber-stubs
Alternatively you may download timber-stubs.php directly.
