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(6mo ago)02MITPHPPHP &gt;=7.4

Since Dec 30Pushed 5mo agoCompare

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

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

29

—

LowBetter than 57% of packages

Maintenance69

Regular maintenance activity

Popularity2

Limited adoption so far

Community2

Small or concentrated contributor base

Maturity35

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

186d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/3106720?v=4)[then (Promises/A+ implementations)](/maintainers/Then)[@then](https://github.com/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

[jdorn/sql-formatter

a PHP SQL highlighting library

3.9k117.2M118](/packages/jdorn-sql-formatter)[propel/propel1

Propel is an open-source Object-Relational Mapping (ORM) for PHP5.

8351.6M87](/packages/propel-propel1)[pgvector/pgvector

pgvector support for PHP

198741.5k12](/packages/pgvector-pgvector)[jfelder/oracledb

Oracle DB driver for Laravel

11518.4k](/packages/jfelder-oracledb)

PHPackages © 2026

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