Skip to content
@php-type-language

PHP TypeLang

PHP strict type description language

PHP Type Language

TypeLang is a toolkit for the type syntax of PHPDoc: the one you write in @param, @return and @var for PHPStan and Psalm.

$type = new TypeLang\Parser\TypeParser()
    ->parse('array<non-empty-string, list<User>|null>');
Package What it does
parser Type string to AST
types AST nodes
printer AST back to a string
reader PHP Reflection to AST
phpdoc DocBlock to description and tags
mapper Maps data to objects and back by these types

Documentation · Syntax Reference

Pinned Loading

  1. dev dev Public

    A monorepo with core development packages

    PHP 1

  2. parser parser Public

    [READ ONLY] 🧱 Library for parsing and validating TypeLang syntax and converting it into AST nodes

    PHP 51 2

  3. mapper mapper Public

    [READ ONLY]⚡ The best PHP mapper (hydrator/serializer) you've ever seen!

    PHP 38 2

  4. phpdoc phpdoc Public

    [READ ONLY] 🗃️ Library for recognizing PHPDoc Tags in PHP DocBlock comments

    PHP 10 1

Repositories

Showing 10 of 13 repositories
  • phpdoc Public

    [READ ONLY] 🗃️ Library for recognizing PHPDoc Tags in PHP DocBlock comments

    php-type-language/phpdoc's past year of commit activity
    PHP 10 MIT 1 0 0 Updated Nov 28, 2026
  • types Public

    [READ ONLY] 📦 An AST nodes of the TypeLang

    php-type-language/types's past year of commit activity
    PHP 0 MIT 0 0 0 Updated Nov 28, 2026
  • docs Public

    📖 PHP TypeLang Documentation Pages

    php-type-language/docs's past year of commit activity
    MDX 1 1 0 0 Updated Nov 28, 2026
  • mapper Public

    [READ ONLY]⚡ The best PHP mapper (hydrator/serializer) you've ever seen!

    php-type-language/mapper's past year of commit activity
    PHP 38 MIT 2 2 0 Updated Nov 28, 2026
  • printer Public

    [READ ONLY] 🖌️ Library for rendering TypeLange AST nodes into it's string representation

    php-type-language/printer's past year of commit activity
    PHP 1 MIT 0 0 0 Updated Nov 28, 2026
  • reader Public

    [READ ONLY] 📰 Library for reading TypeLang AST nodes from types exposed by PHP Reflection objects

    php-type-language/reader's past year of commit activity
    PHP 6 MIT 0 0 0 Updated Nov 28, 2026
  • parser Public

    [READ ONLY] 🧱 Library for parsing and validating TypeLang syntax and converting it into AST nodes

    php-type-language/parser's past year of commit activity
    PHP 51 MIT 2 0 0 Updated Nov 28, 2026
  • dev Public

    A monorepo with core development packages

    php-type-language/dev's past year of commit activity
    PHP 1 MIT 0 1 0 Updated Nov 28, 2026
  • mapper-symfony Public

    [READ ONLY] ✨ Symfony Bundle for Type Lang Mapper

    php-type-language/mapper-symfony's past year of commit activity
    PHP 0 MIT 0 0 0 Updated Nov 25, 2026
  • mapper-laravel Public

    [READ ONLY] ✨ TypeLang Mapper bridge for Laravel Framework

    php-type-language/mapper-laravel's past year of commit activity
    PHP 0 MIT 0 0 0 Updated Nov 25, 2026

Top languages

Loading…