GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - php-type-language/dev: A monorepo with core development packages

BranchesTags
Open more actions menu

Latest commit

 

History

558 Commits
558 Commits

Folders and files

NameName
Last commit message
Last commit date
.github/workflows
.github/workflows
 
 
bench
bench
 
 
docs
docs
 
 
libs
libs
 
 
.editorconfig
.editorconfig
 
 
.gitattributes
.gitattributes
 
 
.gitignore
.gitignore
 
 
.php-cs-fixer.php
.php-cs-fixer.php
 
 
LICENSE
LICENSE
 
 
README.md
README.md
 
 
composer.json
composer.json
 
 
phpbench.json
phpbench.json
 
 
phpstan.neon
phpstan.neon
 
 
phpunit.xml
phpunit.xml
 
 

Repository files navigation


TypeLang is a declarative type language inspired by static analyzers like PHPStan and Psalm. It describes the type syntax found in PHPDoc comments (int[], array<string, T>, Foo::CONST_*, T is U ? A : B, ...) and provides a set of components to work with it.

This is the development monorepo for all TypeLang components. Each package listed below is also published as a standalone, read-only repository via git subtree split.

  • Full documentation is available at typelang.dev.
  • PHP Type Language specification is available here.

Packages

Package Description Tests
type-lang/types AST node classes (TypeLang\Type\*) — the shared vocabulary of the ecosystem. Tests
type-lang/parser Parses TypeLang syntax into an AST, validating the grammar. Tests
type-lang/printer Renders AST nodes back into their string representation. Tests
type-lang/reader Builds AST nodes from types exposed by PHP Reflection objects. Tests
type-lang/phpdoc Parses /** ... */ DocBlock comments into a graph of description and tags. Tests

Development

This repository contains all components together. Changes are contributed here and then split into the individual read-only package repositories.

git clone https://github.com/php-type-language/dev.git
cd dev
composer install

Common tasks:

composer test:unit     # run the PHPUnit test suite
composer linter:check  # run PHPStan static analysis
composer phpcs:check   # check the code style (php-cs-fixer, dry-run)
composer phpcs:fix     # apply the code style fixes

License

TypeLang is licensed under the MIT License.

About

A monorepo with core development packages

Resources

Readme
MIT license

Code of conduct

Code of conduct
Activity
Custom properties

Stars

1 star

Watchers

0 watching

Forks

0 forks
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.