Skip to main content

Module php

Module php 

Source
Expand description

PHP: composer.json packages and PSR-4 roots, require/use imports, risks, the Composer-to-crate table, and exports (functions and public static methods) with native and phpdoc types mapped into the TS-like type dialect.

Functionsยง

discover
exports
Functions (Ns\name(...)) and public static methods of classes (Ns\Class::name(...)).
lookup
Rust counterparts of common Composer packages.
php_to_ts
A PHP type (native or phpdoc: ?int, string|null, int[], array<string, int>, list<string>) in the dialect.
resolve
scan