PHPackages                             tyhp/php - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. tyhp/php

ActiveLibrary

tyhp/php
========

Tyhp type definitions for PHP builtins and bundled extensions (PHP 8.2+ baseline)

805.0.0(today)00Apache-2.0PHP ~8.5.0

Since Aug 14Pushed todayCompare

[ Source](https://github.com/tyhpproject/php)[ Packagist](https://packagist.org/packages/tyhp/php)[ RSS](/packages/tyhp-php/feed)WikiDiscussions main Synced today

READMEChangelogDependenciesVersions (5)Used By (0)

tyhp/php
========

[](#tyhpphp)

Type definitions (`.tyhpdef`) for PHP builtins and commonly bundled extensions so the Tyhp compiler can type-check `\strlen`, `DateTime`, SPL, and similar APIs.

This alpha is a **PHP 8.2 baseline** harvested from `runtime/php-extensions/php8.2.9/`. APIs that exist only on PHP 8.3–8.5 may be missing until Story 20.5 version gating lands.

Scalar extension methods (`$str->length()` and friends) are **not** included.

Versions
--------

[](#versions)

Package MAJOR is the PHP this artifact is constrained for (`802` = 8.2, `803` = 8.3, `804` = 8.4, `805` = 8.5), not the Tyhp compiler version. This package’s own line is `X.Y` in `composer.json` (currently `0.0`). Packagist versions are `80N.X.Y`. Bump this package without bumping the compiler.

**Application** (one PHP version, match `output.phpVersion` in `tyhp.json`):

```
composer require tyhp/php:804.0.0
```

**Library** (PHP 8.3+ on this X — Composer picks the artifact for the consumer’s PHP):

```
"tyhp/php": "803.0.* || 804.0.* || 805.0.*"
```

Until Packagist lists this package, use a path repository that points at this directory inside a Tyhp compiler checkout.

###  Health Score

42

—

FairBetter than 88% of packages

Maintenance100

Actively maintained with recent releases

Popularity0

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity54

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~0 days

Total

4

Last Release

0d ago

Major Versions

802.0.0 → 803.0.02026-08-14

803.0.0 → 804.0.02026-08-14

804.0.0 → 805.0.02026-08-14

PHP version history (4 changes)802.0.0PHP ~8.2.0

803.0.0PHP ~8.3.0

804.0.0PHP ~8.4.0

805.0.0PHP ~8.5.0

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/197171?v=4)[Anthony Rainer](/maintainers/pristinesource)[@pristinesource](https://github.com/pristinesource)

---

Top Contributors

[![pristinesource](https://avatars.githubusercontent.com/u/197171?v=4)](https://github.com/pristinesource "pristinesource (4 commits)")

### Embed Badge

![Health badge](/badges/tyhp-php/health.svg)

```
[![Health](https://phpackages.com/badges/tyhp-php/health.svg)](https://phpackages.com/packages/tyhp-php)
```

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
