PHPackages                             geosocio/entity-utils - 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. geosocio/entity-utils

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

geosocio/entity-utils
=====================

Utilities for Doctrine Entities

1.2.2(8y ago)1251LGPL-3.0-onlyPHP

Since Jun 16Pushed 8y ago1 watchersCompare

[ Source](https://github.com/geosocio/entity-utils)[ Packagist](https://packagist.org/packages/geosocio/entity-utils)[ RSS](/packages/geosocio-entity-utils/feed)WikiDiscussions develop Synced 4d ago

READMEChangelogDependencies (4)Versions (12)Used By (0)

Entity Utilities [![Build Status](https://camo.githubusercontent.com/69e74da12de841e3d70ccf94d81b832de0fd8678f743c16f6d5205e06fcbb4e7/68747470733a2f2f7472617669732d63692e6f72672f67656f736f63696f2f656e746974792d7574696c732e7376673f6272616e63683d646576656c6f70)](https://travis-ci.org/geosocio/entity-utils) [![Coverage Status](https://camo.githubusercontent.com/5af927020c0c9fcc89c2dd4cb12ba245f04024cb46600feeac5017a580612d58/68747470733a2f2f636f766572616c6c732e696f2f7265706f732f6769746875622f67656f736f63696f2f656e746974792d7574696c732f62616467652e7376673f6272616e63683d646576656c6f70)](https://coveralls.io/github/geosocio/entity-utils?branch=develop)
==============================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================

[](#entity-utilities--)

Provides simply Doctrine Entity Utilities.

Parameter Bag
-------------

[](#parameter-bag)

Easily construct an entity through the constructor.

```
use GeoSocio\EntityUtils\ParameterBag;

class User {

  __construct(array $data = []) {
    $params = new ParameterBag($data);
    $this->id = $params->getInt('id');
    $this->first = $params->getString('first');
    $this->last = $params->getString('last');
    $this->address = $params->getInstance('address', Address::class, new Address());
    $this->posts = $params->getCollection('posts', Post::class, new ArrayCollection());
  }

}
```

CreatedTrait
------------

[](#createdtrait)

Include the trait in your entity to add a 'created' field that is added on persist.

```
use GeoSocio\EntityUtils\CreatedTrait;

class User {

  use CreatedTrait;

}
```

###  Health Score

31

—

LowBetter than 68% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity13

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity70

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

Every ~24 days

Recently: every ~46 days

Total

11

Last Release

3007d ago

### Community

Maintainers

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

---

Top Contributors

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

---

Tags

doctrinedoctrine-ormphp

###  Code Quality

TestsPHPUnit

Code StylePHP\_CodeSniffer

### Embed Badge

![Health badge](/badges/geosocio-entity-utils/health.svg)

```
[![Health](https://phpackages.com/badges/geosocio-entity-utils/health.svg)](https://phpackages.com/packages/geosocio-entity-utils)
```

###  Alternatives

[doctrine/orm

Object-Relational-Mapper for PHP

10.2k285.3M6.2k](/packages/doctrine-orm)[jdorn/sql-formatter

a PHP SQL highlighting library

3.9k115.1M102](/packages/jdorn-sql-formatter)[illuminate/database

The Illuminate Database package.

2.8k52.4M9.4k](/packages/illuminate-database)[mongodb/mongodb

MongoDB driver library

1.6k64.0M546](/packages/mongodb-mongodb)[ramsey/uuid-doctrine

Use ramsey/uuid as a Doctrine field type.

90340.3M211](/packages/ramsey-uuid-doctrine)[reliese/laravel

Reliese Components for Laravel Framework code generation.

1.7k3.4M16](/packages/reliese-laravel)

PHPackages © 2026

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