mccomaschris/timber-stubs

Timber function and class declaration stubs for static analysis.

dev-main 2025-03-13 13:44 UTC

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.