PHPackages                             soldatov/gettype - 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. soldatov/gettype

ActiveLibrary

soldatov/gettype
================

Collection of types that the function gettype() returns.

v1.0.1(4y ago)01.1k1UnlicensePHPPHP ~5.3 || ~7.0 || ~8.0

Since Sep 16Pushed 4y ago1 watchersCompare

[ Source](https://github.com/soldatov/gettype)[ Packagist](https://packagist.org/packages/soldatov/gettype)[ RSS](/packages/soldatov-gettype/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (3)Used By (1)

Class that contains options for the return data of the `gettype($var)` function.

```
class Types
 {
     const TYPE_BOOLEAN = 'boolean';
     const TYPE_INTEGER = 'integer';
     const TYPE_FLOAT = 'double';
     const TYPE_STRING = 'string';
     const TYPE_ARRAY = 'array';
     const TYPE_OBJECT = 'object';
     const TYPE_RESOURCE_OPEN = 'resource';
     const TYPE_RESOURCE_CLOSED = 'resource (closed)';
     const TYPE_NULL = 'NULL';

     /** @deprecated */
     const TYPE_RESOURCE_UNKNOWN = 'unknown type';
 }
```

###  Health Score

29

—

LowBetter than 60% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity14

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity60

Established project with proven stability

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

Total

2

Last Release

1556d ago

PHP version history (2 changes)v1.0.0PHP ~5.3 || ~7.0

v1.0.1PHP ~5.3 || ~7.0 || ~8.0

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/1358824?v=4)[Anatoly Soldatov](/maintainers/soldatov)[@soldatov](https://github.com/soldatov)

---

Top Contributors

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

---

Tags

phpgettype

### Embed Badge

![Health badge](/badges/soldatov-gettype/health.svg)

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

###  Alternatives

[pestphp/pest-plugin-stressless

Stressless plugin for Pest

67792.6k16](/packages/pestphp-pest-plugin-stressless)

PHPackages © 2026

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