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.1kUnlicensePHPPHP ~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 today

READMEChangelogDependenciesVersions (3)Used By (0)

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

28

—

LowBetter than 57% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity14

Limited adoption so far

Community7

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

1507d 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://www.gravatar.com/avatar/bcdde315b6f103c2c61322b9fcc3bc33cd4799c6e10798c12d8d01bbeb077d32?d=identicon)[soldatov](/maintainers/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

67723.5k15](/packages/pestphp-pest-plugin-stressless)[tomatophp/filament-accounts

Manage your multi accounts inside your app using 1 table with multi auth and a lot of integrations

748.2k6](/packages/tomatophp-filament-accounts)

PHPackages © 2026

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