PHPackages                             then/thentity - 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. then/thentity

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

then/thentity
=============

PHP active record ?

v1.0.0(4mo ago)02MITPHPPHP &gt;=7.4

Since Dec 30Pushed 4mo agoCompare

[ Source](https://github.com/Then-fr/Thentity)[ Packagist](https://packagist.org/packages/then/thentity)[ RSS](/packages/then-thentity/feed)WikiDiscussions main Synced 1mo ago

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

install with composer
=====================

[](#install-with-composer)

```
composer require then/thentity

```

copy and edit

```
thentity.config.php

```

generate class for all table

```
php vendor/then/thentity/bin/generate.php configs/thentity.config.php

```

if necessary edit connection parameter in

```
/Entity/EntityConfig.php

```

Thentity - Tests Docker Environment
===================================

[](#thentity---tests-docker-environment)

Ce projet contient la configuration Docker pour tester Thentity avec différentes versions de PHP et bases de données.

Services inclus
---------------

[](#services-inclus)

- PHP 7.4 / 8.2 / 8.4
- MySQL 8
- PostgreSQL 16
- SQLite (via PDO, pas besoin de container dédié)

Commandes Makefile
------------------

[](#commandes-makefile)

- `make up` : démarre MySQL et PostgreSQL
- `make down` : arrête tous les services
- `make build` : build les containers PHP
- `make test-82` : lance PHPUnit sur PHP 8.2
- `make test-84` : lance PHPUnit sur PHP 8.4
- `make test-all` : lance PHPUnit sur toutes les versions

docker exec -i thentity-mysql-1 mysql -uroot -proot thentity\_test &lt; tests/docker/mysql-init/test\_sql.sql docker exec -i thentity-postgres-1 psql -U postgres -d thentity\_test &lt; tests/docker/postgres-init/test\_sql.sql

###  Health Score

30

—

LowBetter than 64% of packages

Maintenance76

Regular maintenance activity

Popularity2

Limited adoption so far

Community2

Small or concentrated contributor base

Maturity34

Early-stage or recently created project

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

140d ago

### Community

Maintainers

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

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/then-thentity/health.svg)

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

###  Alternatives

[doctrine/orm

Object-Relational-Mapper for PHP

10.2k285.3M6.2k](/packages/doctrine-orm)[jdorn/sql-formatter

a PHP SQL highlighting library

3.9k115.1M102](/packages/jdorn-sql-formatter)[illuminate/database

The Illuminate Database package.

2.8k52.4M9.4k](/packages/illuminate-database)[ramsey/uuid-doctrine

Use ramsey/uuid as a Doctrine field type.

90440.3M211](/packages/ramsey-uuid-doctrine)[reliese/laravel

Reliese Components for Laravel Framework code generation.

1.7k3.4M16](/packages/reliese-laravel)[wildside/userstamps

Laravel Userstamps provides an Eloquent trait which automatically maintains `created\_by` and `updated\_by` columns on your model, populated by the currently authenticated user in your application.

7511.7M13](/packages/wildside-userstamps)

PHPackages © 2026

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