docuccino/inference-phpstan

PHPStan/Larastan type inference engine for Docuccino, behind the core TypeEngine contract.

Maintainers

Package info

github.com/docuccino/inference-phpstan

Homepage

Issues

pkg:composer/docuccino/inference-phpstan

Transparency log

Statistics

Installs: 1

Dependents: 1

Suggesters: 1

Stars: 0

v0.1.1 2026-08-11 11:59 UTC

This package is auto-updated.

Last update: 2026-08-12 12:28:03 UTC


README

This repository is a read-only subtree split of docuccino/docuccino. Open issues and pull requests on the monorepo — commits pushed here are overwritten.

The PHPStan / Larastan type-inference engine for Docuccino. It implements the core TypeEngine contract, analysing your controllers and DTOs to infer response and exception shapes from the real types in your code. You normally do not use this package directly — docuccino/laravel wires it in behind the TypeEngine boundary — but it can be consumed standalone by any adapter that depends on docuccino/core.

Install

Analysis is a build-time job, so install it as a dev dependency:

composer require --dev docuccino/inference-phpstan

It brings PHPStan and Larastan with it. docuccino/laravel finds it at runtime and falls back to docblock- and attribute-only documentation (with a warning) when it is absent.

Usage

The engine is constructed behind the core TypeEngine interface and queried by the pipeline:

$analysis = $typeEngine->analyzeAction($actionRef); // ReturnSite[], ThrownException[], …

See docuccino/laravel for the wired-up integration.

Documentation

Full documentation is at https://docs.docuccino.app; see getting started for how the engine is wired in and degrades to a NullTypeEngine on boot failure.

License

MIT. See LICENSE.