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)3419MITPHPPHP ^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 2w 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 47% 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

2673d 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

[rcsofttech/audit-trail-bundle

Enterprise-grade, high-performance Symfony audit trail bundle. Automatically track Doctrine entity changes with split-phase architecture, multiple transports (HTTP, Queue, Doctrine), and sensitive data masking.

1175.2k](/packages/rcsofttech-audit-trail-bundle)[laravel-doctrine/orm

An integration library for Laravel and Doctrine ORM

8405.5M96](/packages/laravel-doctrine-orm)[fresh/doctrine-enum-bundle

Provides support of ENUM type for Doctrine2 in Symfony applications.

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

Provides a fixture factory for doctrine/orm entities.

81707.5k](/packages/ergebnis-factory-bot)[api-platform/doctrine-orm

Doctrine ORM bridge

293.9M78](/packages/api-platform-doctrine-orm)[ahmed-bhs/doctrine-doctor

Runtime analysis tool for Doctrine ORM integrated into Symfony Web Profiler. Unlike static linters, it analyzes actual query execution at runtime to detect performance bottlenecks, security vulnerabilities, and best practice violations during development with real execution context and data.

939.0k](/packages/ahmed-bhs-doctrine-doctor)

PHPackages © 2026

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