weft / ide-helper
IDE stubs for the weft PHP extension: autocomplete and static analysis only, never executed
Requires
- php: >=8.4
Requires (Dev)
None
Suggests
None
Provides
None
Conflicts
None
Replaces
None
This package is auto-updated.
Last update: 2026-10-19 16:04:23 UTC
README
Declaration-only stubs for the weft PHP extension. They make editors
(PhpStorm, DEVSENSE PHP Tools, Intelephense) and analyzers (PHPStan, Psalm) recognise the
Weft\* functions and classes instead of reporting "Call to unknown function".
The stubs are never loaded or executed; the extension provides the real symbols.
Install
composer require --dev weft/ide-helper
Editors index vendor/ automatically. For PHPStan, add the stub explicitly:
parameters: stubFiles: - vendor/weft/ide-helper/src/weft.php
Without Composer, copy src/weft.php into your project.
Keeping it in sync
src/weft.php mirrors the extension's registered API (ext/src/*.rs in weft). Update it
whenever a function, class or signature changes there.