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

Since Dec 30Pushed 7mo agoCompare

[ Source](https://github.com/Then-fr/Thentity)[ Packagist](https://packagist.org/packages/then/thentity)[ RSS](/packages/then-thentity/feed)WikiDiscussions main Synced 1w 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

27

—

LowBetter than 46% of packages

Maintenance63

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

231d 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.8k117.8M121](/packages/jdorn-sql-formatter)[backup-manager/backup-manager

A framework agnostic database backup manager with user-definable procedures and support for S3, Dropbox, FTP, SFTP, and more with drivers for popular frameworks.

1.7k1.6M11](/packages/backup-manager-backup-manager)[propel/propel1

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

8351.6M88](/packages/propel-propel1)[insolita/yii2-migration-generator

Set of gii tools for generating files for migration by schema of table , phpdoc or table data

108508.0k5](/packages/insolita-yii2-migration-generator)[xpdo/xpdo

A PDO-based Object/Relational Bridge Library

7088.4k4](/packages/xpdo-xpdo)[voku/session2db

A PHP library acting as a wrapper for PHP's default session handling functions which stores data in a MySQL database, providing both better performance and better security and protection against session fixation and session hijacking.

2920.0k](/packages/voku-session2db)

PHPackages © 2026

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