PHPackages                             mabetiz/entity-fragment - 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. mabetiz/entity-fragment

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

mabetiz/entity-fragment
=======================

Reusable traits for Symfony Entities

v1.0.0-beta(8y ago)14WTFPLPHPPHP ^7.1

Since Apr 30Pushed 7y ago1 watchersCompare

[ Source](https://github.com/MaBeTiZ/EntityFragment)[ Packagist](https://packagist.org/packages/mabetiz/entity-fragment)[ RSS](/packages/mabetiz-entity-fragment/feed)WikiDiscussions master Synced today

READMEChangelogDependencies (2)Versions (5)Used By (0)

EntityFragment
==============

[](#entityfragment)

Provides reusable features as Traits for Entities in Symfony 4.

Uses Doctrine.

List of available fragments (Traits)
------------------------------------

[](#list-of-available-fragments-traits)

- CreatedAtUpdatedAtTrait
    - \\DateTime $createdAt (on create)
    - \\DateTime $updatedAt (on update)
- StateTrait
    - int $state - A static array $availableStates has to be defined in the parent Entity (please, do NOT use the 0 key value)
- StatusTrait
    - bool $status (on/off)

ToDo List of fragments
----------------------

[](#todo-list-of-fragments)

- User (login/pwd)
- People (gender, title, name, firstname, birthdate)
- ContactInfo (phone, mobilephone, email)
- Address (address1, address2, city, zipcode)
- Geolocation (latt, long, alt)

###  Health Score

22

—

LowBetter than 22% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity5

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity47

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

Every ~0 days

Total

2

Last Release

2933d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/8de13b392a06ef5184744fc9fe68e4ca8f031850641c2449fc1d80230574de6e?d=identicon)[ThibaultPelloquin](/maintainers/ThibaultPelloquin)

---

Top Contributors

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

### Embed Badge

![Health badge](/badges/mabetiz-entity-fragment/health.svg)

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

###  Alternatives

[codefog/contao-haste

haste extension for Contao Open Source CMS

42650.8k139](/packages/codefog-contao-haste)[yavin/symfony-form-tree

create select field with indentation for tree structure

1591.1k1](/packages/yavin-symfony-form-tree)[leapt/core-bundle

Symfony LeaptCoreBundle

2529.1k4](/packages/leapt-core-bundle)[anime-db/anime-db

The application for making home collection anime

252.1k2](/packages/anime-db-anime-db)

PHPackages © 2026

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