Search by

weft / ide-helper

AaronLow-1220

IDE stubs for the weft PHP extension: autocomplete and static analysis only, never executed

Package info

github.com/weftphp/ide-helper

pkg:composer/weft/ide-helper

Statistics

Installs: 1

Dependents: 0

Suggesters: 0

Stars: 0

Open Issues: 0

v0.1.0 2026-10-19 15:59 UTC

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.