PHPackages                             fhermann/doctrine-trait - 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. fhermann/doctrine-trait

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

fhermann/doctrine-trait
=======================

A set of reusable trait for Doctrine

1.0.1(7y ago)3418MITPHPPHP ^7.1.3

Since Mar 6Pushed 7y agoCompare

[ Source](https://github.com/hermann8u/DoctrineTrait)[ Packagist](https://packagist.org/packages/fhermann/doctrine-trait)[ Docs](https://github.com/hermann8u/DoctrineTrait)[ RSS](/packages/fhermann-doctrine-trait/feed)WikiDiscussions master Synced 2mo ago

READMEChangelog (1)Dependencies (1)Versions (2)Used By (0)

Doctrine Trait
==============

[](#doctrine-trait)

A set of useful trait to compose Doctrine entities. At the moment the package include following traits:

- **LocalizableEntity** : Localization of an entity based on its coordinate.
- **SlugableEntity** : Add a name and a slug property to an entity and compute the slug based on the name with lifecycle callbacks.
- **TimestampableEntity** : Add a createdAt and updatedAt property and update them with lifecycle callbacks.

Warning
-------

[](#warning)

The following traits need to add lifecycle callbacks to the hosting entity:

- SlugableEntity
- TimestampableEntity

###  Health Score

27

—

LowBetter than 49% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity16

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity55

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

Unknown

Total

1

Last Release

2622d ago

### Community

Maintainers

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

---

Top Contributors

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

---

Tags

doctrinetraitentity

### Embed Badge

![Health badge](/badges/fhermann-doctrine-trait/health.svg)

```
[![Health](https://phpackages.com/badges/fhermann-doctrine-trait/health.svg)](https://phpackages.com/packages/fhermann-doctrine-trait)
```

###  Alternatives

[fresh/doctrine-enum-bundle

Provides support of ENUM type for Doctrine2 in Symfony applications.

4636.8M12](/packages/fresh-doctrine-enum-bundle)[ergebnis/factory-bot

Provides a fixture factory for doctrine/orm entities.

81702.8k](/packages/ergebnis-factory-bot)[damianociarla/dynamic-discriminator-map-bundle

DCSDynamicDiscriminatorMapBundle simplifies the use of Doctrine Single Table Inheritance mapping strategy in Symfony2.

1237.7k](/packages/damianociarla-dynamic-discriminator-map-bundle)

PHPackages © 2026

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