PHPackages                             phant/data-structure - 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. phant/data-structure

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

phant/data-structure
====================

Manage data structure easily

5.2.1(1mo ago)15.1k↓57.1%1[1 PRs](https://github.com/PhantPHP/data-structure/pulls)5MITPHPPHP &gt;=8.1

Since Apr 15Pushed 1mo ago3 watchersCompare

[ Source](https://github.com/PhantPHP/data-structure)[ Packagist](https://packagist.org/packages/phant/data-structure)[ RSS](/packages/phant-data-structure/feed)WikiDiscussions main Synced 2d ago

READMEChangelog (10)Dependencies (18)Versions (66)Used By (5)

Data structure
==============

[](#data-structure)

Requirments
-----------

[](#requirments)

PHP &gt;= 8.1

Install
-------

[](#install)

`composer require phant/data-structure`

Abstract
--------

[](#abstract)

- Collection
- CollectionPaginated
- Value
    - Boolean
    - Decimal
    - Integer
    - Varchar

Company
-------

[](#company)

- Name

### Fr

[](#fr)

- CodeActivite
- Siren
- Siret

Geography
---------

[](#geography)

- GpsCoordinates

### Fr

[](#fr-1)

- CodeCommune
- CodePostal
- NumeroDepartement

Id
--

[](#id)

- Uuid (based on [ramsey/uuid](https://github.com/ramsey/uuid))

Money
-----

[](#money)

- Currency
- Price

Number
------

[](#number)

- Grade
- Rate

Person
------

[](#person)

- Birthday
- Firstname
- Gender
- Lastname

Time
----

[](#time)

- Date
- DateIntervale
- DateTime
- DateTimeIntervale
- Duration

Token
-----

[](#token)

- API key
- Jwt (based on [Firebase PHP-JWT](https://github.com/firebase/php-jwt))

Web
---

[](#web)

- DomainName
- Email
- EmailAddress
- EmailAddressAndName
- Url
- UserName

###  Health Score

56

—

FairBetter than 97% of packages

Maintenance94

Actively maintained with recent releases

Popularity26

Limited adoption so far

Community18

Small or concentrated contributor base

Maturity72

Established project with proven stability

 Bus Factor1

Top contributor holds 94.5% 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

Recently: every ~49 days

Total

63

Last Release

30d ago

Major Versions

1.8 → 2.02022-05-05

2.12 → 3.02022-09-19

3.3 → 4.02022-10-21

4.4.4 → 5.0.02025-03-19

PHP version history (2 changes)1.0PHP ^8.0

4.0PHP &gt;=8.1

### Community

Maintainers

![](https://www.gravatar.com/avatar/5ce749176c74e4c4fd7bd457cdad471fd1e0e14092259e60e7330724ce622dce?d=identicon)[Phant](/maintainers/Phant)

---

Top Contributors

[![lennyrouanet](https://avatars.githubusercontent.com/u/5269913?v=4)](https://github.com/lennyrouanet "lennyrouanet (137 commits)")[![YevicT](https://avatars.githubusercontent.com/u/229097821?v=4)](https://github.com/YevicT "YevicT (8 commits)")

---

Tags

enumValue Objectcollectionentityvaluedata structureaggregate

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan

Code StylePHP CS Fixer

Type Coverage Yes

### Embed Badge

![Health badge](/badges/phant-data-structure/health.svg)

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

###  Alternatives

[firefly-iii/data-importer

Firefly III Data Import Tool.

8045.8k](/packages/firefly-iii-data-importer)[pocketmine/pocketmine-mp

A server software for Minecraft: Bedrock Edition written in PHP

3.5k78.3k90](/packages/pocketmine-pocketmine-mp)[civicrm/civicrm-core

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

751291.4k43](/packages/civicrm-civicrm-core)[mynaparrot/plugnmeet-sdk

plugNmeet PHP SDK

102.8k](/packages/mynaparrot-plugnmeet-sdk)[dykyi-roman/awesome-claude-code

Claude Code extension for PHP: audits (architecture, DDD, security, performance, PSR, design patterns, Docker, CI/CD, tests, docs), 3-level code review, automated bug fix, generators (DDD, CQRS, GoF patterns, PSR, tests, documentation, Docker, CI/CD), code explanation, refactoring. 26 commands, 62 agents, 259 skills.

851.2k](/packages/dykyi-roman-awesome-claude-code)

PHPackages © 2026

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