PHPackages                             hisoka/orm - 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. hisoka/orm

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

hisoka/orm
==========

orm php mysql

2.0.0(3y ago)218MITPHPPHP &gt;=7.4

Since Jan 4Pushed 9mo ago1 watchersCompare

[ Source](https://github.com/alexis90210/hisoka-orm)[ Packagist](https://packagist.org/packages/hisoka/orm)[ RSS](/packages/hisoka-orm/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (4)Dependencies (1)Versions (5)Used By (0)

📘 Hisoka ORM – Guide d’utilisation
==================================

[](#-hisoka-orm--guide-dutilisation)

Ce projet utilise l’ORM `Hisoka\Orm\DB` pour simplifier les interactions avec une base de données en PHP. Ce guide présente les principales opérations prises en charge par la bibliothèque, y compris les opérations CRUD, les jointures, et les outils de débogage.

📦 Dépendances

Ce projet repose sur :

- Composer pour l’autoload
- Le namespace: Hisoka\\Orm\\DB

🔧 Initialisation

require 'vendor/autoload.php';

use Hisoka\\Orm\\DB; $DB = new DB();

🗑️ Suppression Supprimer un utilisateur par identifiant :

$query = $DB-&gt;table('Utilisateurs') -&gt;delete() -&gt;where(\["Identifiant" =&gt; 'login'\]) -&gt;execute() -&gt;status();

📥 Sélection (SELECT)

- Sélection de tous les enregistrements avec filtre :

$query = $DB-&gt;table('Utilisateurs') -&gt;select(\[\]) -&gt;where(\["Identifiant" =&gt; 'login'\]) -&gt;limit(1) -&gt;execute() -&gt;fetchAssociative();

- Sélection ciblée par colonnes :

$query = $DB-&gt;table('Utilisateurs') -&gt;select(\["id", "nom", /\* autres colonnes \*/\]) -&gt;execute() -&gt;fetchObject();

✏️ Mise à jour (UPDATE)

- Mettre à jour les données d’un utilisateur :

$query = $DB-&gt;table('Utilisateurs') -&gt;update() -&gt;where(\["Identifiant" =&gt; 'login'\]) -&gt;execute() -&gt;status();

➕ Insertion (INSERT)

- Insérer un nouvel utilisateur :

    $query = $DB-&gt;table('Utilisateurs') -&gt;insert(\["nom" =&gt; 'alexis'\]) -&gt;execute() -&gt;status();

🔗 Jointures (JOIN)

- Effectuer une jointure entre deux tables :

-&gt;joinWith(string $tableA, string $jointureA, string $tableB, string $jointureB, string $type = "")

joinWith(string $tableA, string $jointureA, string $tableB, string $jointureB, string $type = "")

- \[tableA\] : Première table \[jointureA\] : Clé de jointure dans la table A
- \[tableB\] : Deuxième table \[jointureB\] : Clé de jointure dans la table B
- \[type\] : Type de jointure (INNER, LEFT, RIGHT, etc.). Par défaut, une jointure simple.

Exemple :

$Interfaces\_acheves = $DB -&gt;table('Interfaces') -&gt;select(\["Interfaces.Progression", "Projets.IDProjets"\]) -&gt;where(\[ \["key" =&gt; "Projets.IDProjets", "value" =&gt; 0, "operator" =&gt; "="\], \["key" =&gt; "Interfaces.Progression", "value" =&gt; 4, "operator" =&gt; "&gt;"\] \]) -&gt;joinWith("Projets", "IDProjets", "Interfaces", "IDInterfaces") -&gt;generateSQL(); // -&gt;execute()-&gt;fetchAssociative();

🧪 Utilitaires

- Activer le mode debug pour les erreurs PDO : $DB-&gt;debug();
- Visualiser la requête SQL générée : $DB-&gt;generateSQL();
- Obtenir le statut d’une requête : $DB-&gt;status();

###  Health Score

28

—

LowBetter than 54% of packages

Maintenance40

Moderate activity, may be stable

Popularity9

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity49

Maturing project, gaining track record

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

Total

4

Last Release

1224d ago

Major Versions

1.1.0 → 2.0.02023-01-10

### Community

Maintainers

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

---

Top Contributors

[![alexis-ngoyi](https://avatars.githubusercontent.com/u/93914013?v=4)](https://github.com/alexis-ngoyi "alexis-ngoyi (12 commits)")

---

Tags

composermysqloopormphp

### Embed Badge

![Health badge](/badges/hisoka-orm/health.svg)

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

###  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)
