You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 03318ec
Browse filesBrowse the repository at this point in the historyBrowse files
Copy file name to clipboardExpand all lines: README.md
+28-17Lines changed: 28 additions & 17 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -21,13 +21,13 @@ TypePHP is a transparent, pure-PHP runtime type checker. You don't have to refac
21
21
22
22
Run in **Strict Mode** to throw immediate `TypeError` exceptions, or switch to **Audit Report Mode** to collect all runtime type violations across your test suites and legacy codebases into structured JSON reports without interrupting execution.
23
23
24
-
**[Read the full TypePHP documentation »](https://typephp-php.github.io/docs/)** | **[Try it online in the Playground »](https://typephp-php.github.io/docs/playground.html)**
24
+
**[Read the full TypePHP documentation »](https://typephp.dev/)** | **[Try it online in the Playground »](https://typephp.dev/playground)**
25
25
26
26
---
27
27
28
28
## Try It Online
29
29
30
-
You can test TypePHP directly in your browser without installing anything locally via the **[Interactive WebAssembly Playground](https://typephp-php.github.io/docs/playground.html)**:
30
+
You can test TypePHP directly in your browser without installing anything locally via the **[Interactive WebAssembly Playground](https://typephp.dev/playground)**:
31
31
32
32
---
33
33
@@ -262,26 +262,37 @@ Supports parallel test runners (**ParaTest**, **Pest Parallel**) with automatic
262
262
263
263
## Documentation
264
264
265
-
All the documentation lives on the **[typephp-php.github.io/docs website](https://typephp-php.github.io/docs/)**:
TypePHP stands on the shoulders of giants. It simply would not exist without two foundational cornerstones of the PHP ecosystem:
285
+
286
+
***[PHPStan](https://phpstan.org/) & [`phpstan/phpdoc-parser`](https://github.com/phpstan/phpdoc-parser)** (created by [Ondřej Mirtes](https://github.com/ondrejmirtes) and contributors):
287
+
A massive and sincere debt of gratitude is owed to the PHPStan team. Beyond establishing the modern type standard in PHP, `phpstan/phpdoc-parser` is the parsing powerhouse behind TypePHP. It enables TypePHP to tokenize, parse, and evaluate complex type theory—including reified generics (`@template`), conditional types, intersection/union types, DNF, array shapes, and variance—directly at runtime.
288
+
***[`nikic/php-parser`](https://github.com/nikic/PHP-Parser)** (created by [Nikita Popov](https://github.com/nikic)):
289
+
The gold standard for PHP abstract syntax tree (AST) parsing and code manipulation. It powers TypePHP's transparent stream wrapper interception, format-preserving AST transformations, and zero line-drift instrumentation.
279
290
280
291
---
281
292
282
293
## Inspiration
283
294
284
-
TypePHP is conceptually inspired by Python's [Beartype](https://github.com/beartype/beartype), bringing transparent runtime type enforcement for type annotations to the PHP ecosystem without any decorators or attributes.
295
+
TypePHP is conceptually inspired by Python's [Beartype](https://github.com/beartype/beartype) and [Typeguard](https://github.com/agronholm/typeguard), bringing transparent runtime type enforcement for type annotations to the PHP ecosystem without decorators or attributes.
0 commit comments