PHPackages                             viliamkopecky/model - 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. [Database &amp; ORM](/categories/database)
4. /
5. viliamkopecky/model

ActiveLibrary[Database &amp; ORM](/categories/database)

viliamkopecky/model
===================

06PHP

Since Nov 20Pushed 10y ago1 watchersCompare

[ Source](https://github.com/ViliamKopecky/model)[ Packagist](https://packagist.org/packages/viliamkopecky/model)[ RSS](/packages/viliamkopecky-model/feed)WikiDiscussions master Synced 3w ago

READMEChangelogDependenciesVersions (1)Used By (0)

Flexible data model
===================

[](#flexible-data-model)

[![Downloads this Month](https://camo.githubusercontent.com/76e199c695c8ff4ac292ed33b76741376ac150598bef8c6eaa56370dca7fc4f3/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f646d2f76696c69616d6b6f7065636b792f6d6f64656c2e737667)](https://packagist.org/packages/ViliamKopecky/model)[![Build Status](https://camo.githubusercontent.com/43083e643675758d43b4d315cc8b07f2aa2a11a1221a7b2d44dceee51a5f342b/68747470733a2f2f7472617669732d63692e6f72672f56696c69616d4b6f7065636b792f6d6f64656c2e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/ViliamKopecky/model)[![License](https://camo.githubusercontent.com/7013272bd27ece47364536a221edb554cd69683b68a46fc0ee96881174c4214c/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d626c75652e737667)](https://github.com/viliamkopecky/model/blob/master/LICENSE)

work in progress.

Features
--------

[](#features)

- entity types (enum)
- entity props
    - prop\_type
        - bool
        - int
        - float
        - string (&lt; 256)
        - text (&gt;256)
    - (un)serialization
        - DateTime
        - JSON
- entity relationships

To-do
-----

[](#to-do)

- schema definition
- schema based props and relationships
- schema based validation
- helper functions
    - fetching
    - pagination
    - order
    - relationship search
- forms generation
- api generation
- graphql interface
- relay integration

###  Health Score

20

—

LowBetter than 13% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity41

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.

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/316435?v=4)[Viliam Kopecký](/maintainers/viliamkopecky)[@ViliamKopecky](https://github.com/ViliamKopecky)

---

Top Contributors

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

### Embed Badge

![Health badge](/badges/viliamkopecky-model/health.svg)

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

###  Alternatives

[jdorn/sql-formatter

a PHP SQL highlighting library

3.9k116.5M113](/packages/jdorn-sql-formatter)[propel/propel1

Propel is an open-source Object-Relational Mapping (ORM) for PHP5.

8351.6M87](/packages/propel-propel1)[pgvector/pgvector

pgvector support for PHP

198628.3k10](/packages/pgvector-pgvector)

PHPackages © 2026

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