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
Requires
- php: ^8.0 || ^8.1 || ^8.2 || ^8.3 || ^8.4
- ext-bcmath: *
- ext-curl: *
- ext-dom: *
- ext-fileinfo: *
- ext-json: *
- ext-libxml: *
- psr/http-message: ^1.0
- symfony/finder: ^5.2
Requires (Dev)
- phpunit/phpunit: ^9.3.8
This package is auto-updated.
Last update: 2026-06-20 07:53:59 UTC
README
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
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
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.