mccomaschris / timber-stubs
Timber function and class declaration stubs for static analysis.
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
This package is auto-updated.
Last update: 2025-03-13 13:44:38 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.