PHPackages                             waaseyaa/typed-data - 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. waaseyaa/typed-data

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

waaseyaa/typed-data
===================

Type system with PHP-native facade for Waaseyaa

v0.1.0-alpha.188(1mo ago)07.1k↓85.1%7GPL-2.0-or-laterPHPPHP &gt;=8.5

Since Mar 13Pushed 2w agoCompare

[ Source](https://github.com/waaseyaa/typed-data)[ Packagist](https://packagist.org/packages/waaseyaa/typed-data)[ RSS](/packages/waaseyaa-typed-data/feed)WikiDiscussions main Synced 3w ago

READMEChangelogDependencies (4)Versions (187)Used By (7)

waaseyaa/typed-data
===================

[](#waaseyaatyped-data)

**Layer 0 — Foundation**

Typed data validation and coercion for Waaseyaa applications.

Provides a type system for field and entity-adjacent values. **`EntityCastCoercion`** (`Waaseyaa\TypedData\Coercion\EntityCastCoercion`) is the canonical implementation for entity **`$casts`** builtins `int`, `float`, `bool`, `string`, and `array` (JSON string in storage): strict storage→domain and domain→storage rules shared with `waaseyaa/entity` **`ValueCaster`** (#1185). Failures throw **`CoercionException`**, which `ValueCaster` wraps as **`CastException`** for a single error model at the entity boundary.

**`CastTokenMapper`** maps entity cast tokens to `TypedDataManager` **`dataType`** strings (`int`→`integer`, etc.). Tokens `array` / `json` return `null` because JSON bags are not `map`/`list` without a schema.

Primitive types (`IntegerData`, `FloatData`, `BooleanData`, `StringData`) use **`getCastedValue()`** via the same coercion rules as entities (aligned with `ValueCaster`).

**Symfony Validator** applies **`DataDefinition`** constraints on the raw **`getValue()`** bag; coercion (`EntityCastCoercion` / `getCastedValue`) is separate from constraint validation—run both when you need normalized types *and* business rules.

Used by the field system (`FieldItemBase`, `PropertyValue`) and by entity casting (#1185).

Key classes: `TypedDataInterface`, `DataDefinition`, `TypedDataManager`, `EntityCastCoercion`, `CastTokenMapper`.

###  Health Score

50

—

FairBetter than 95% of packages

Maintenance95

Actively maintained with recent releases

Popularity24

Limited adoption so far

Community14

Small or concentrated contributor base

Maturity57

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

Every ~0 days

Total

186

Last Release

38d ago

PHP version history (3 changes)v0.1.0-alpha.1PHP &gt;=8.3

v0.1.0-alpha.9PHP &gt;=8.4

v0.1.0-alpha.179PHP &gt;=8.5

### Community

Maintainers

![](https://www.gravatar.com/avatar/25d0ff572e93e3461e5180a920725d65691fd1e15e2d914b254dbbc2d6c393bd?d=identicon)[jonesrussell](/maintainers/jonesrussell)

---

Top Contributors

[![jonesrussell](https://avatars.githubusercontent.com/u/499552?v=4)](https://github.com/jonesrussell "jonesrussell (19 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/waaseyaa-typed-data/health.svg)

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

###  Alternatives

[easycorp/easyadmin-bundle

Admin generator for Symfony applications

4.3k17.5M373](/packages/easycorp-easyadmin-bundle)[phpro/soap-client

A general purpose SoapClient library

8895.9M52](/packages/phpro-soap-client)[rcsofttech/audit-trail-bundle

Enterprise-grade, high-performance Symfony audit trail bundle. Automatically track Doctrine entity changes with split-phase architecture, multiple transports (HTTP, Queue, Doctrine), and sensitive data masking.

1155.2k](/packages/rcsofttech-audit-trail-bundle)[api-platform/validator

API Platform validator component

264.1M23](/packages/api-platform-validator)[api-platform/serializer

API Platform core Serializer

244.3M71](/packages/api-platform-serializer)[symfony/ux-cropperjs

Cropper.js integration for Symfony

19322.9k3](/packages/symfony-ux-cropperjs)

PHPackages © 2026

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