PHPackages                             sunnyflail/typestring - 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. sunnyflail/typestring

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

sunnyflail/typestring
=====================

A simple trait for retrieving Reflection types as a string

1.0.0(4y ago)0943PHP

Since Jun 4Pushed 4y ago1 watchersCompare

[ Source](https://github.com/SunnyFlail/Typestring)[ Packagist](https://packagist.org/packages/sunnyflail/typestring)[ RSS](/packages/sunnyflail-typestring/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependencies (1)Versions (2)Used By (3)

\#Typestring A simple trait for getting Reflection return types as a string #Sample usage

```
use SunnyFlail\Traits\GetTypesTrait;

$implementator = new class {
    use GetTypesTrait;

    public function sampleUsage()
    {
        $reflection = new ReflectionClass(PDO::class);
        $method = $reflection->getMethod("prepare");
        $param = $method->getParameters()[0];
        var_dump($this->getTypeStrings($param));
    }

};
```

###  Health Score

25

—

LowBetter than 37% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity9

Limited adoption so far

Community12

Small or concentrated contributor base

Maturity51

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

Unknown

Total

1

Last Release

1802d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/50b47ac5307f9f924ae62916c792bbfcabe962da1a0eaf68230b2199d4a6283f?d=identicon)[SunnyFlail](/maintainers/SunnyFlail)

---

Top Contributors

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

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/sunnyflail-typestring/health.svg)

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

PHPackages © 2026

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