PHPackages                             rockschtar/typed-arrays - 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. rockschtar/typed-arrays

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

rockschtar/typed-arrays
=======================

Primitive typed arrays and typed array abstraction with type hints.

1.0.1(2y ago)014.9kMITPHPPHP &gt;=8.1

Since Jun 4Pushed 2y ago1 watchersCompare

[ Source](https://github.com/rockschtar/typed-arrays)[ Packagist](https://packagist.org/packages/rockschtar/typed-arrays)[ RSS](/packages/rockschtar-typed-arrays/feed)WikiDiscussions main Synced 2mo ago

READMEChangelog (2)Dependencies (5)Versions (16)Used By (0)

rockschtar/typed-arrays
=======================

[](#rockschtartyped-arrays)

Description
===========

[](#description)

Primitive typed arrays and typed array abstraction for objects with type hints.

Requirements
============

[](#requirements)

- PHP 8.1+
- [Composer](https://getcomposer.org/) to install

Install
=======

[](#install)

```
composer require rockschtar/typed-arrays

```

Usage
=====

[](#usage)

### Build in typed arrays for primitives

[](#build-in-typed-arrays-for-primitives)

Typed arrays for:

- Integers
- Floats
- Strings
- Numbers (float or int)

### Typed arrays for everything else

[](#typed-arrays-for-everything-else)

Create a typed array class

```
class DummyTypedArray extends TypedArray {
    /**
     * Overrides parent method for type hints
     * @return DummyClass
     */
    public function current() : DummyClass {
        return parent::current();
    }

    /**
     * Returns the type of the typed array
     * @return string
     */
    protected function getType(): string {
        return DummyClass::class;
    }
}
```

License
=======

[](#license)

rockschtar/typed-arrays is open source and released under MIT license. See LICENSE.md file for more info.

Question? Issues?
=================

[](#question-issues)

rockschtar/typed-arrays is hosted on GitLab. Feel free to open issues there for suggestions, questions and real issues.

###  Health Score

35

—

LowBetter than 80% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity19

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity79

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

Recently: every ~440 days

Total

15

Last Release

982d ago

Major Versions

0.3.0 → 1.0.02023-09-01

PHP version history (2 changes)0.0.3PHP &gt;=7.1

1.0.0PHP &gt;=8.1

### Community

Maintainers

![](https://www.gravatar.com/avatar/67724bb6880d11c1609be2abeecc7857e2fd22147eb634b3dcce3d77a2818f68?d=identicon)[rockschtar](/maintainers/rockschtar)

---

Top Contributors

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

###  Code Quality

TestsPest

Static AnalysisPHPStan, Rector

Code StylePHP\_CodeSniffer

Type Coverage Yes

### Embed Badge

![Health badge](/badges/rockschtar-typed-arrays/health.svg)

```
[![Health](https://phpackages.com/badges/rockschtar-typed-arrays/health.svg)](https://phpackages.com/packages/rockschtar-typed-arrays)
```

###  Alternatives

[kisma/kisma

PHP Utility Belt

178.5k8](/packages/kisma-kisma)

PHPackages © 2026

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