PHPackages                             c0dehappy/datalayer - 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. c0dehappy/datalayer

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

c0dehappy/datalayer
===================

A simplest abstraction for eloquent models

0.1.5-beta(6y ago)45611MITPHPPHP ^7.1.3CI failing

Since Dec 6Pushed 6y agoCompare

[ Source](https://github.com/c0dehappy/datalayer)[ Packagist](https://packagist.org/packages/c0dehappy/datalayer)[ RSS](/packages/c0dehappy-datalayer/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (6)Dependencies (9)Versions (7)Used By (0)

[![Latest Version on Packagist](https://camo.githubusercontent.com/4d5c0809eb4120e56f51bf60e6525146e51cbaf769b46bb0888c799c29c5bb0c/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6330646568617070792f646174616c617965722e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/c0dehappy/datalayer)[![Build Status](https://camo.githubusercontent.com/46a877eb39664f1fed5033e1bad966e6f64f8eab6356ad71f59706ac7beeb1d7/68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f6330646568617070792f646174616c617965722f6d61737465722e7376673f7374796c653d666c61742d737175617265)](https://travis-ci.org/c0dehappy/datalayer)[![StyleCI](https://camo.githubusercontent.com/cc51255e9a836dd8165e58f1946d0f5b0db78f3f7a5a0f3e22ae65e170109892/68747470733a2f2f7374796c6563692e696f2f7265706f732f34323438303237352f736869656c64)](https://styleci.io/repos/42480275)[![Total Downloads](https://camo.githubusercontent.com/7f3fc957e99f16a904ae63215d7389c156fb4d8b658c76d928831e36c6595847/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6330646568617070792f646174616c617965722e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/c0dehappy/datalayer)

#### DataLayer

[](#datalayer)

> A simplest abstraction layer for eloquent models

- No fat models;
- Standardized methods;
- More instictive;
- Improves more easily readable;
- Easily caching results.

#### Pre-requisites

[](#pre-requisites)

- `>= laravel5.6`
- `>= php7.1`

#### References

[](#references)

See our [wiki](https://github.com/c0dehappy/datalayer/wiki) to more information.

To contribute, read the [rules](https://github.com/c0dehappy/datalayer/blob/master/contributing.md).

#### License

[](#license)

Datalayer is released under the MIT Licence.

---

by [c0dehappy](https://github.com/c0dehappy)

###  Health Score

24

—

LowBetter than 32% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity18

Limited adoption so far

Community4

Small or concentrated contributor base

Maturity42

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

Every ~9 days

Total

6

Last Release

2302d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/2e81c98ab5e516d14cce0c0b6574504c3edfa4d45a2e4e023271c7a9906d7742?d=identicon)[1giba](/maintainers/1giba)

---

Tags

laravelmodeleloquentSimplerepositorydesignpatternabstractdecoratordatalayerbest-practice

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan

Code StylePHP\_CodeSniffer

Type Coverage Yes

### Embed Badge

![Health badge](/badges/c0dehappy-datalayer/health.svg)

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

###  Alternatives

[tucker-eric/eloquentfilter

An Eloquent way to filter Eloquent Models

1.8k4.8M26](/packages/tucker-eric-eloquentfilter)

PHPackages © 2026

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