PHPackages                             sinevia/laravel-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. [Database &amp; ORM](/categories/database)
4. /
5. sinevia/laravel-entity

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

sinevia/laravel-entity
======================

A streamlined EAV implementation for Laravel

v1.2.0(3y ago)1277proprietaryPHPPHP ~5.6|~7.0|~8.0|~8.1

Since Jul 4Pushed 3y ago1 watchersCompare

[ Source](https://github.com/Sinevia/laravel-entity)[ Packagist](https://packagist.org/packages/sinevia/laravel-entity)[ Docs](https://github.com/sinevia/entity)[ RSS](/packages/sinevia-laravel-entity/feed)WikiDiscussions master Synced 2w ago

READMEChangelog (4)DependenciesVersions (5)Used By (0)

Laravel Entity
==============

[](#laravel-entity)

Cool schemaless models for Laravel.

Details
-------

[](#details)

A streamlined entity-attribute-value (EAV) implementation for Laravel. This package is designed for quick plug and play "schemeless" prototyping. To achieve this the package uses only two database tables unlike the standard EAV (which uses at least three tables).

Features
--------

[](#features)

- Schemaless implementation with 2 database tables only.
- Entitiies have types. Each type is like a class (i.e. note, category, etc)
- Entitiies may have unlimited fields. Fields can have any value (string, int, float, array)
- Entitiies may have hierarchy (parent and children). Great when you have categories, or paths
- Ideal for quick prototyping
- Uses human friendly IDs (see )

Installation
------------

[](#installation)

```
composer require sinevia/laravel-entity

```

How to Use
----------

[](#how-to-use)

```
// 1. Create your model class
class Note extends \Sinevia\Entities\Models\Entity {
    function getType()
    {
        return 'note';
    }
}

// 2. Create new instance and add fields
$note = new Note();
$note->save();
$note->setFieldValue('Title','Note title');
$note->setFieldValue('Text','Note text');

// 3. Create new instance and add fields
$note = Note::find($noteId);
echo $note->getFieldValue('Title');
echo $note->getFieldValue('Text');

// 4. Iterate throuhh all notes
$note = Note::all();
foreach($notes as $note){
    echo $note->getFieldValue('Title');
}
```

Table Schema
------------

[](#table-schema)

The following schema is used for the database.

EntityIdString, UniqueIdStatusStringTypeStringParentIdString, UniqueIdSequenceIntegerNameStringCreatedAtDateTimeDeletedAtDateTimeUdated AtDateTimeFieldIdString, UniqueIdEntityIdString, UniqueIdKeyStringValueJSON Text (Long)CreatedAtDateTimeDeletedAtDateTimeUpdatedAtDateTime

###  Health Score

32

—

LowBetter than 69% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity13

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity75

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 ~599 days

Total

4

Last Release

1120d ago

Major Versions

v0.0.1 → v1.0.02019-09-04

PHP version history (2 changes)v0.0.1PHP ~5.6|~7.0

v1.2.0PHP ~5.6|~7.0|~8.0|~8.1

### Community

Maintainers

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

---

Top Contributors

[![Sinevia](https://avatars.githubusercontent.com/u/3450815?v=4)](https://github.com/Sinevia "Sinevia (51 commits)")

---

Tags

laravelentityeavsinevia

### Embed Badge

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

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

###  Alternatives

[analogue/orm

An intuitive Data Mapper ORM for PHP and Laravel

63447.3k3](/packages/analogue-orm)[devio/eavquent

EAV modeling package for Eloquent and Laravel.

6410.4k](/packages/devio-eavquent)

PHPackages © 2026

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