PHPackages                             lavoiesl/php-abstract-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. lavoiesl/php-abstract-structure

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

lavoiesl/php-abstract-structure
===============================

Basic data structure with public properties while validating data type.

v1.0(12y ago)419MITPHP

Since Apr 8Pushed 12y agoCompare

[ Source](https://github.com/lavoiesl/php-abstract-structure)[ Packagist](https://packagist.org/packages/lavoiesl/php-abstract-structure)[ RSS](/packages/lavoiesl-php-abstract-structure/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (2)Used By (0)

PHP Abstract Structures
=======================

[](#php-abstract-structures)

[![Build Status](https://camo.githubusercontent.com/8a289575943005a5601a96be0c5d2bb664fc1ac312e098f2f6fa16bd58af4a87/68747470733a2f2f7472617669732d63692e6f72672f6c61766f6965736c2f7068702d61627374726163742d7374727563747572652e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/lavoiesl/php-abstract-structure)[![Scrutinizer Code Quality](https://camo.githubusercontent.com/d8751207d15334575c8824b3c185a3b9a6f079937ac570880080353e8ab4a131/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f6c61766f6965736c2f7068702d61627374726163742d7374727563747572652f6261646765732f7175616c6974792d73636f72652e706e673f733d30306639643034383335653331653032653138616363383862613231366338386662623961663865)](https://scrutinizer-ci.com/g/lavoiesl/php-abstract-structure/)[![Code Coverage](https://camo.githubusercontent.com/f030ab51358fe6fcfa644f7e578af4965d8600981ac87c0252613960b46ca501/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f6c61766f6965736c2f7068702d61627374726163742d7374727563747572652f6261646765732f636f7665726167652e706e673f733d37336562343031363461316166613538663564303837626136653963306339333262333236323830)](https://scrutinizer-ci.com/g/lavoiesl/php-abstract-structure/)

Basic data structure with public properties while validating data type.

Inspired from

Usage
-----

[](#usage)

### Generic structure

[](#generic-structure)

Each property will the bind to the type of the first value that is set.

```

```

### Defined types

[](#defined-types)

You may override `getPropertyType` for more granular control.

```

```

TODO
----

[](#todo)

Consider adding readonly properties

Author
------

[](#author)

- [Sébastien Lavoie](http://blog.lavoie.sl/)
- [WeMakeCustom](http://www.wemakecustom.com/)

###  Health Score

28

—

LowBetter than 54% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity10

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity63

Established project with proven stability

 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

Unknown

Total

1

Last Release

4415d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/ec3a0e0db3f9c250563b821407537b24bd3304c8bb3379c017d8ca4743b7b15c?d=identicon)[lavoiesl](/maintainers/lavoiesl)

---

Top Contributors

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

### Embed Badge

![Health badge](/badges/lavoiesl-php-abstract-structure/health.svg)

```
[![Health](https://phpackages.com/badges/lavoiesl-php-abstract-structure/health.svg)](https://phpackages.com/packages/lavoiesl-php-abstract-structure)
```

###  Alternatives

[nativephp/electron

Electron wrapper for the NativePHP framework.

519114.4k8](/packages/nativephp-electron)[kadet/keylighter

Yet another syntax highlighter for PHP

333.2k1](/packages/kadet-keylighter)[code16/formoj

Customizable form renderer

332.6k](/packages/code16-formoj)[nullthoughts/laravel-data-sync

Laravel utility to keep records synced between environments through source control

331.4k](/packages/nullthoughts-laravel-data-sync)

PHPackages © 2026

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