PHPackages                             malenki/desbaies - 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. malenki/desbaies

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

malenki/desbaies
================

Some classes for create SQL query without SQL code.

0.1.0(13y ago)119[1 issues](https://github.com/malenkiki/desbaies/issues)MITPHPPHP &gt;=5.3.0

Since Apr 23Pushed 12y ago1 watchersCompare

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

READMEChangelogDependenciesVersions (3)Used By (0)

desbaies
========

[](#desbaies)

Some classes for create SQL query without SQL code. Allow execution too, but there are not ORM layer.

Simple example:

```
use \Malenki\DesBaies;

$db = new DesBaies();
$db->select->add('foo');
$db->from->add('bar');
```

give:

```
SELECT `foo`
FROM `bar`;
```

More complex example:

```
use \Malenki\DesBaies;

$db = new DesBaies();
$db->select->add('foo', 'b')->add('foo2', 'b2');
$db->from->add('bar', 'b');
$db->from->add('bar2', 'b2');
$db->order->by('foo', 'b')->desc->by('foo2', 'b2');
```

give:

```
SELECT `b`.`foo`, `b2`.`foo2`
FROM `bar` AS `b`, `bar2` AS `b2`
ORDER BY `b`.`foo` DESC, `b2`.`foo2` ASC;
```

###  Health Score

18

—

LowBetter than 8% of packages

Maintenance0

Infrequent updates — may be unmaintained

Popularity8

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

Unknown

Total

1

Last Release

4763d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/6af62130bd16d4e6bbaa5877829b6377386ef9fb6593592052dbb6eeb87c4a02?d=identicon)[malenki](/maintainers/malenki)

---

Top Contributors

[![malenkiki](https://avatars.githubusercontent.com/u/195776?v=4)](https://github.com/malenkiki "malenkiki (17 commits)")

---

Tags

requestmysqlsqlitemariadbsql

### Embed Badge

![Health badge](/badges/malenki-desbaies/health.svg)

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

###  Alternatives

[doctrine/dbal

Powerful PHP database abstraction layer (DBAL) with many features for database schema introspection and management.

9.7k578.4M5.6k](/packages/doctrine-dbal)[catfan/medoo

The lightweight PHP database framework to accelerate development

4.9k1.5M192](/packages/catfan-medoo)[ramadan/easy-model

A Laravel package for enjoyably managing database queries.

101.6k](/packages/ramadan-easy-model)

PHPackages © 2026

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