PHPackages                             v-dem/queasy-type - 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. [Framework](/categories/framework)
4. /
5. v-dem/queasy-type

ActiveLibrary[Framework](/categories/framework)

v-dem/queasy-type
=================

Type helper classes, part of QuEasy PHP framework

00[1 issues](https://github.com/v-dem/queasy-type/issues)PHP

Since Dec 30Pushed 3y ago1 watchersCompare

[ Source](https://github.com/v-dem/queasy-type)[ Packagist](https://packagist.org/packages/v-dem/queasy-type)[ RSS](/packages/v-dem-queasy-type/feed)WikiDiscussions main Synced 1w ago

READMEChangelogDependenciesVersions (1)Used By (0)

[![Codacy Badge](https://camo.githubusercontent.com/e63cd2eb14b0469c24e96169f9862c040f0d2e5311801abd4a635cf67fe8f3ef/68747470733a2f2f6170702e636f646163792e636f6d2f70726f6a6563742f62616467652f47726164652f3633303361386235323739323461353339613663333231393835663439346333)](https://www.codacy.com/gh/v-dem/queasy-type/dashboard?utm_source=github.com&utm_medium=referral&utm_content=v-dem/queasy-type&utm_campaign=Badge_Grade)[![Build Status](https://camo.githubusercontent.com/9d2dee34b30b3729a3a48933bcc11c52a7ea900beebfad785b794ab250c99475/68747470733a2f2f7472617669732d63692e636f6d2f762d64656d2f7175656173792d747970652e7376673f6272616e63683d6d6173746572)](https://travis-ci.com/v-dem/queasy-type)[![codecov](https://camo.githubusercontent.com/cf3192968f09e9989456f88196f30db2254c5904add161ffaabdaae84dfa5137/68747470733a2f2f636f6465636f762e696f2f67682f762d64656d2f7175656173792d747970652f6272616e63682f6d61737465722f67726170682f62616467652e737667)](https://codecov.io/gh/v-dem/queasy-type)[![Total Downloads](https://camo.githubusercontent.com/580418ca7cdb7f5909ba5070c3d2a99e146e84dc8e0e42e6decb9d75277652da/68747470733a2f2f706f7365722e707567782e6f72672f762d64656d2f7175656173792d747970652f646f776e6c6f616473)](https://packagist.org/packages/v-dem/queasy-type)[![License](https://camo.githubusercontent.com/a67f760019b200bdb7e732b00aeeb15fa1c377eff4ff52039339c9ff20195586/68747470733a2f2f706f7365722e707567782e6f72672f762d64656d2f7175656173792d747970652f6c6963656e7365)](https://packagist.org/packages/v-dem/queasy-type)

[QuEasy PHP Framework](https://github.com/v-dem/queasy-framework/) - Types
==========================================================================

[](#queasy-php-framework---types)

Package `v-dem/queasy-type`
---------------------------

[](#package-v-demqueasy-type)

Classes supporting typed "arrays" to help keep code type-safe. For example, `IntArray`, not just `array`:

```
function giveMeInts(IntArray $ints)
{
    ...
}
```

### Features

[](#features)

Classes allowing to use typed "arrays":

- `TypedArray` - Base class, implements `ArrayAccess`, `Iterator` and `Countable`
- `IntArray`
- `StringArray`
- `FloatArray`
- `ResourceArray`
- `ObjectArray`
- `ArrayArray`

### Requirements

[](#requirements)

- PHP version 5.3 or higher

### Installation

[](#installation)

```
composer require v-dem/queasy-type:master-dev

```

### Usage

[](#usage)

For example, to create an array of integer values:

```
$intArray = new queasy\type\IntArray([10, 20, 30]);

$intArray[] = 40;
$intArray['key'] = 50;

unset($intArray[0]); // Will remove value 10

foreach ($intArray as $key => $value) {
    echo $key . ' => ' . $value . PHP_EOL;
}

echo 'Elements count: ' . count($intArray) . PHP_EOL;

$intArray[] = 'wrong'; // Throws InvalidArgumentException
```

To create a specialized class representing array of users:

```
class UsersArray extends TypedArray
{
    public function __construct(array $items = null)
    {
        parent::__construct(app\model\User::class, $items);
    }
}
```

###  Health Score

13

—

LowBetter than 1% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity0

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity23

Early-stage or recently created project

 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.

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/1413537?v=4)[Virginia Department of Emergency Management](/maintainers/vdem)[@vdem](https://github.com/vdem)

---

Top Contributors

[![v-dem](https://avatars.githubusercontent.com/u/6298430?v=4)](https://github.com/v-dem "v-dem (13 commits)")

### Embed Badge

![Health badge](/badges/v-dem-queasy-type/health.svg)

```
[![Health](https://phpackages.com/badges/v-dem-queasy-type/health.svg)](https://phpackages.com/packages/v-dem-queasy-type)
```

###  Alternatives

[laravel/telescope

An elegant debug assistant for the Laravel framework.

5.2k67.8M192](/packages/laravel-telescope)[spiral/roadrunner

RoadRunner: High-performance PHP application server and process manager written in Go and powered with plugins

8.4k12.2M84](/packages/spiral-roadrunner)[nolimits4web/swiper

Most modern mobile touch slider and framework with hardware accelerated transitions

41.8k177.2k1](/packages/nolimits4web-swiper)[laravel/dusk

Laravel Dusk provides simple end-to-end testing and browser automation.

1.9k36.7M259](/packages/laravel-dusk)[laravel/prompts

Add beautiful and user-friendly forms to your command-line applications.

708181.8M596](/packages/laravel-prompts)[cakephp/chronos

A simple API extension for DateTime.

1.4k47.7M121](/packages/cakephp-chronos)

PHPackages © 2026

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