PHPackages                             bramus/datatypes - 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. bramus/datatypes

ActiveLibrary

bramus/datatypes
================

A (Legacy) Types Implementation for PHP

1.1(4y ago)11221MITPHPPHP &gt;=7.2

Since Mar 4Pushed 4y ago1 watchersCompare

[ Source](https://github.com/bramus/php-datatypes)[ Packagist](https://packagist.org/packages/bramus/datatypes)[ GitHub Sponsors](https://github.com/bramus)[ RSS](/packages/bramus-datatypes/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependencies (2)Versions (3)Used By (1)

`bramus/datatypes`
==================

[](#bramusdatatypes)

[![Build Status](https://github.com/bramus/php-datatypes/workflows/CI/badge.svg)](https://github.com/bramus/php-datatypes/actions) [![Source](https://camo.githubusercontent.com/2d33f66b71d1c33a80f6b47bcb36919dc88bc5f77f289349c91894cd013d0168/687474703a2f2f696d672e736869656c64732e696f2f62616467652f736f757263652d6272616d75732f6461746174797065732d626c75652e7376673f7374796c653d666c61742d737175617265)](https://github.com/bramus/php-datatypes) [![Version](https://camo.githubusercontent.com/e21c7abb32bfd5ba8a3f58d7b1e07d2aa1c4ca8d3488b3a3b390c3afcd704888/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6272616d75732f6461746174797065732e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/bramus/datatypes) [![Downloads](https://camo.githubusercontent.com/2a5a5d724c4394d27926226443403f682df350e4f0656d04053736ac682f284d/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6272616d75732f6461746174797065732e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/bramus/datatypes/stats) [![License](https://camo.githubusercontent.com/ac9136d3cf8aada2899d3cdac0936c38f71b64848a64c1f40901bbd852396a56/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f6272616d75732f6461746174797065732e7376673f7374796c653d666c61742d737175617265)](https://github.com/bramus/php-datatypes/blob/master/LICENSE)

`bramus/datatypes` is a (Legacy) Types Implementation for PHP.

Built by Bram(us) Van Damme *()* and [Contributors](https://github.com/bramus/php-datatypes/graphs/contributors)

Prerequisites/Requirements
--------------------------

[](#prerequisitesrequirements)

- PHP 7.2 or greater

Installation
------------

[](#installation)

Installation is possible using Composer

```
$ composer require bramus/datatypes ~1.0

```

Usage
-----

[](#usage)

@TODO

Utility Classes
---------------

[](#utility-classes)

`bramus/datatypes` comes with a few utility/helper classes. Whilst you most likely don't need to use these directly, they might be of help:

@TODO

Testing
-------

[](#testing)

`bramus/datatypes` ships with unit tests using [PHPUnit](https://github.com/sebastianbergmann/phpunit/) `~8.0`.

- If PHPUnit is installed globally run `phpunit` to run the tests.
- If PHPUnit is not installed globally, install it locally throuh composer by running `composer install --dev`. Run the tests themselves by calling `./vendor/bin/phpunit` or using the composer script `composer test`

```
$ composer test

```

License
-------

[](#license)

`bramus/datatypes` is released under the MIT public license. See the enclosed `LICENSE` for details.

###  Health Score

23

—

LowBetter than 27% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity11

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity45

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

Total

2

Last Release

1509d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/213073?v=4)[Bramus](/maintainers/bramus)[@bramus](https://github.com/bramus)

---

Top Contributors

[![bramus](https://avatars.githubusercontent.com/u/213073?v=4)](https://github.com/bramus "bramus (2 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/bramus-datatypes/health.svg)

```
[![Health](https://phpackages.com/badges/bramus-datatypes/health.svg)](https://phpackages.com/packages/bramus-datatypes)
```

###  Alternatives

[drupal/core

Drupal is an open source content management platform powering millions of websites and applications.

19462.3M1.3k](/packages/drupal-core)[horstoeko/zugferd

A library for creating and reading european electronic invoices

4044.3M18](/packages/horstoeko-zugferd)[drupal/core-recommended

Locked core dependencies; require this project INSTEAD OF drupal/core.

6939.5M343](/packages/drupal-core-recommended)[kimai/kimai

Kimai - Time Tracking

4.6k7.4k1](/packages/kimai-kimai)[shopware/core

Shopware platform is the core for all Shopware ecommerce products.

595.2M386](/packages/shopware-core)[web-auth/webauthn-framework

FIDO2/Webauthn library for PHP and Symfony Bundle.

50570.7k1](/packages/web-auth-webauthn-framework)

PHPackages © 2026

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