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

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

crudle/entity
=============

A set of Entity assistance components

v1.0(9y ago)017MITPHPPHP &gt;=7.0

Since Oct 24Pushed 9y ago2 watchersCompare

[ Source](https://github.com/crudle-apps/entity)[ Packagist](https://packagist.org/packages/crudle/entity)[ RSS](/packages/crudle-entity/feed)WikiDiscussions master Synced today

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

Entity - A package to help make entities easier
===============================================

[](#entity---a-package-to-help-make-entities-easier)

This package contains various things like traits for private immutable attributes, and making entities identifiable with UUID's.

Installation
============

[](#installation)

```
composer require crudle/entity

```

Example Usage
=============

[](#example-usage)

```
use Crudle\Entity\Identity\IdentifiedByUuid;
use Crudle\Entity\Property\PrivateImmutableAttributes;

class MyEntity
{
    use IdentifiedByUuid, PrivateImmutableAttributes;

    /**
     * @param string $description
     * @return MyEntity
     */
    public function setDescription(string $description): MyEntity
    {
        return $this->set('description', $description);
    }

    /**
     * @return string
     * @throws \Crudle\Entity\Exception\UndefinedException
     *  When a description has not yet been set
     */
    public function getDescription(): string
    {
        return $this->getOrFail('description');
    }
}

$myEntity = new MyEntity;
$myEntity->getId(); // Crudle\Entity\Identity\Uuid

$myOtherEntity = new MyEntity('fa8588c6-166d-400d-9b13-561704027e94');
```

###  Health Score

25

—

LowBetter than 36% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community4

Small or concentrated contributor base

Maturity58

Maturing project, gaining track record

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

3535d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/20602309?v=4)[crudle-apps](/maintainers/crudle-apps)[@crudle-apps](https://github.com/crudle-apps)

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

###  Alternatives

[pocketmine/pocketmine-mp

A server software for Minecraft: Bedrock Edition written in PHP

3.5k77.4k89](/packages/pocketmine-pocketmine-mp)[firefly-iii/data-importer

Firefly III Data Import Tool.

8005.8k](/packages/firefly-iii-data-importer)[mynaparrot/plugnmeet-sdk

plugNmeet PHP SDK

102.5k](/packages/mynaparrot-plugnmeet-sdk)

PHPackages © 2026

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