PHPackages                             dbt/type-checker - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. dbt/type-checker

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

dbt/type-checker
================

A type checker for PHP

2.0.0(6y ago)02041MITPHPPHP ^7.1

Since Mar 3Pushed 6y ago1 watchersCompare

[ Source](https://github.com/DeBoerTool/type-checker)[ Packagist](https://packagist.org/packages/dbt/type-checker)[ Docs](https://github.com/dbt/type-checker)[ RSS](/packages/dbt-type-checker/feed)WikiDiscussions master Synced 5d ago

READMEChangelog (3)Dependencies (2)Versions (4)Used By (1)

Type checker for PHP
====================

[](#type-checker-for-php)

Installation
------------

[](#installation)

You can install the package via composer:

```
composer require dbt/type-checker
```

Usage
-----

[](#usage)

Check scalar types:

```
Type::of('some-string')->is('string'); // true

// but you don't need to use the factory function if you don't want to:

$type = new Type(12);
$type->is('float'); // false
```

And callables:

```
Type::of('strstr')->is('callable'); // true
Type::of('strstr')->is('string'); // also true
```

And classes:

```
Type::of($myClass)->is(MyClass::class);
Type::of($myClass)->is(MyInterface::class);
```

Throw on failure:

```
Type::of('my string')->mustBe('float'); // Throws WrongType exception
```

### Testing

[](#testing)

```
composer test
```

Etc.
----

[](#etc)

Please see [CONTRIBUTING](CONTRIBUTING.md) for details. The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

###  Health Score

27

—

LowBetter than 49% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity11

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity57

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 ~78 days

Total

3

Last Release

2473d ago

Major Versions

0.1.0 → 1.0.02019-03-25

1.0.0 → 2.0.02019-08-07

### Community

Maintainers

![](https://www.gravatar.com/avatar/ebd3fe214b5768e700ae43c7fdc4b83d249972a6a97a0faef372d0ec19256eca?d=identicon)[danielsdeboer](/maintainers/danielsdeboer)

---

Top Contributors

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

---

Tags

dbttype-checker

###  Code Quality

TestsPHPUnit

Static AnalysisPsalm

Type Coverage Yes

### Embed Badge

![Health badge](/badges/dbt-type-checker/health.svg)

```
[![Health](https://phpackages.com/badges/dbt-type-checker/health.svg)](https://phpackages.com/packages/dbt-type-checker)
```

###  Alternatives

[kartik-v/yii2-helpers

A collection of useful helper functions for Yii Framework 2.0

883.0M29](/packages/kartik-v-yii2-helpers)[nfephp-org/sped-da

sped-da contêm as classes para criação dos documentos auxiliares referidos no projeto Sped.

145806.7k8](/packages/nfephp-org-sped-da)

PHPackages © 2026

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