PHPackages                             hurah/data-types - 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. hurah/data-types

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

hurah/data-types
================

Collection of general purpose data types, corresponding collections, validators, utilities and some control statements represented by objects to allow more strict type checking

v1.1.6(2mo ago)03.6k↓33.3%6MITPHPPHP ^8.0 || ^8.1 || ^8.2 || ^8.3 || ^8.4CI failing

Since Dec 5Pushed 2mo ago1 watchersCompare

[ Source](https://github.com/antonboutkam/data-types)[ Packagist](https://packagist.org/packages/hurah/data-types)[ RSS](/packages/hurah-data-types/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (2)Dependencies (3)Versions (161)Used By (6)

[![Latest Stable Version](https://camo.githubusercontent.com/c2990695e99146f3babdee23663e4293835548ef8442f4932275281f39117188/68747470733a2f2f706f7365722e707567782e6f72672f68757261682f646174612d74797065732f76)](https://packagist.org/packages/hurah/data-types)[![Total Downloads](https://camo.githubusercontent.com/77455ecc88529dc053075ff6d402b1ebf0e1c3ca5fe2914c182ceaf907744cbc/68747470733a2f2f706f7365722e707567782e6f72672f68757261682f646174612d74797065732f646f776e6c6f616473)](https://packagist.org/packages/hurah/data-types)[![Latest Unstable Version](https://camo.githubusercontent.com/fb0f4d69e38df192b15a540df2d60478b9e143702a3b278588acb50651a143c7/68747470733a2f2f706f7365722e707567782e6f72672f68757261682f646174612d74797065732f762f756e737461626c65)](https://packagist.org/packages/hurah/data-types)[![License](https://camo.githubusercontent.com/6e14c9d50299a71b57024d348008c2f765a7323e9d5aed0e841c95c8fcac23c3/68747470733a2f2f706f7365722e707567782e6f72672f68757261682f646174612d74797065732f6c6963656e7365)](https://packagist.org/packages/hurah/data-types)[![PHP Version Require](https://camo.githubusercontent.com/a9b18b2af56615fa616ef204e64ff8c53d3d39903df0df6f52da9cda1f1968d8/68747470733a2f2f706f7365722e707567782e6f72672f68757261682f646174612d74797065732f726571756972652f706870)](https://packagist.org/packages/hurah/data-types)[![CircleCI Build](https://camo.githubusercontent.com/f76f35c90e8fcd0d8128dfb20c93269add8fd86e5334896b4013c7461e37f277/68747470733a2f2f706f7365722e707567782e6f72672f68757261682f646174612d74797065732f636972636c656369)](https://packagist.org/packages/hurah/data-types)

[ ![Hurah Data Types logo](https://raw.githubusercontent.com/antonboutkam/data-types/main/assets/logo.webp)](https://packagist.org/packages/hurah/data-types)

A growing set of general purpose data types and corresponding collections. This project is not intended as a "one size fits all" standards based library. It is mostly meant to be an ever-growing collection of datatypes and methods for casting and converting to promote interoperability between the systems that I create. All types are enforced to at least implement \_\_toString so while implementing data-types exisiting code usually keeps working.

#### OOP style conditions and loops

[](#oop-style-conditions-and-loops)

As an experiment I have added an oop style interface for conditions and loops. My usecase for this is a graphical / low code style system that uses a lot of generated code that i want as strongly typed as possible so "context aware" features can be implemented.

#### Collections

[](#collections)

Many of the data-types come with a Collection version of the type, for instance a `Path` and a `PathCollection`, the `Collections` are implementing an `Iterator` and allow strongly typed loops.

[![Hurah data types](https://camo.githubusercontent.com/83ae691b102ae49e59625652e39a4cf17a846e6a971161a2e55cd3f746324a62/68747470733a2f2f636972636c6563692e636f6d2f67682f616e746f6e626f75746b616d2f646174612d74797065732e7376673f7374796c653d737667)](https://github.com/antonboutkam/data-types)

###  Health Score

56

—

FairBetter than 98% of packages

Maintenance83

Actively maintained with recent releases

Popularity21

Limited adoption so far

Community14

Small or concentrated contributor base

Maturity89

Battle-tested with a long release history

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

Recently: every ~52 days

Total

160

Last Release

84d ago

PHP version history (6 changes)v1.0.0PHP ^7.4

v1.0.8PHP ^7.4 || 8.0.\*

v1.0.113PHP ^7.4 || 8.0.\* || 8.1.\*

v1.0.135PHP ^7.4 || 8.0.\* || 8.1.\* || 8.2.\* || 8.3.\*

v1.0.142PHP ^8.0 || ^8.1 || ^8.2 || ^8.3

v1.1.3PHP ^8.0 || ^8.1 || ^8.2 || ^8.3 || ^8.4

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/27406772?v=4)[⚒ Anton Boutkam](/maintainers/antonboutkam)[@antonboutkam](https://github.com/antonboutkam)

---

Top Contributors

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

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/hurah-data-types/health.svg)

```
[![Health](https://phpackages.com/badges/hurah-data-types/health.svg)](https://phpackages.com/packages/hurah-data-types)
```

###  Alternatives

[coenjacobs/mozart

Composes all dependencies as a package inside a WordPress plugin

4723.6M20](/packages/coenjacobs-mozart)[aimeos/aimeos-base

Aimeos base layer for abstracting from host environments

2.1k134.0k1](/packages/aimeos-aimeos-base)[wallabag/wallabag

open source self hostable read-it-later web application

12.6k2.2k](/packages/wallabag-wallabag)[phpgt/dom

Modern DOM API.

12412.2M18](/packages/phpgt-dom)[civicrm/civicrm-core

Open source constituent relationship management for non-profits, NGOs and advocacy organizations.

728272.9k20](/packages/civicrm-civicrm-core)[aedart/athenaeum

Athenaeum is a mono repository; a collection of various PHP packages

245.2k](/packages/aedart-athenaeum)

PHPackages © 2026

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