PHPackages                             slam/php-sql-legacy - 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. slam/php-sql-legacy

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

slam/php-sql-legacy
===================

Crappy SQL related classes

v2.9.0(6mo ago)04.4k1[1 issues](https://github.com/Slamdunk/php-sql-legacy/issues)[1 PRs](https://github.com/Slamdunk/php-sql-legacy/pulls)MITPHPPHP ~8.4.0 || ~8.5.0CI passing

Since Jul 21Pushed 1mo ago1 watchersCompare

[ Source](https://github.com/Slamdunk/php-sql-legacy)[ Packagist](https://packagist.org/packages/slam/php-sql-legacy)[ Fund](https://paypal.me/filippotessarotto)[ GitHub Sponsors](https://github.com/Slamdunk)[ RSS](/packages/slam-php-sql-legacy/feed)WikiDiscussions master Synced 2mo ago

READMEChangelog (8)Dependencies (5)Versions (22)Used By (0)

php-sql-legacy
==============

[](#php-sql-legacy)

[![Latest Stable Version](https://camo.githubusercontent.com/0241dca6c67bef937811a80fc37e79ff69b5b6beceee764efbe75c1078f8cc21/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f736c616d2f7068702d73716c2d6c65676163792e737667)](https://packagist.org/packages/slam/php-sql-legacy)[![Downloads](https://camo.githubusercontent.com/fb3f842564ffcd05c5b03b23f158805635ebd7d7e69ce6fc4cc84f05012f8f3a/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f736c616d2f7068702d73716c2d6c65676163792e737667)](https://packagist.org/packages/slam/php-sql-legacy)[![Integrate](https://github.com/Slamdunk/php-sql-legacy/workflows/CI/badge.svg)](https://github.com/Slamdunk/php-sql-legacy/actions)[![Code Coverage](https://camo.githubusercontent.com/10a992888c075839e5ded75a4984dad3ba199b066d7d84e32f2d9b30d09ffb28/68747470733a2f2f636f6465636f762e696f2f67682f536c616d64756e6b2f7068702d73716c2d6c65676163792f636f7665726167652e737667)](https://codecov.io/gh/Slamdunk/php-sql-legacy)

Crappy classes about PDO and MySQLi, here just to use them through composer

###  Health Score

55

—

FairBetter than 98% of packages

Maintenance80

Actively maintained with recent releases

Popularity20

Limited adoption so far

Community13

Small or concentrated contributor base

Maturity90

Battle-tested with a long release history

 Bus Factor1

Top contributor holds 75.9% 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 ~187 days

Recently: every ~255 days

Total

19

Last Release

206d ago

Major Versions

v1.3.1 → v2.0.02016-09-23

PHP version history (10 changes)v1.0.0PHP ^5.6 || ^7.0

v2.1.0PHP ^7.0

v2.2.1PHP ^7.1

v2.3.0PHP ^7.3

v2.4.0PHP ^7.4 || ^8.0

v2.5.0PHP ~8.1.0

v2.6.0PHP ~8.2.0

v2.7.0PHP ~8.3.0

v2.8.0PHP ~8.3.0 || ~8.4.0

v2.9.0PHP ~8.4.0 || ~8.5.0

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/50348?v=4)[Sahn Lam](/maintainers/Slam)[@slam](https://github.com/slam)

---

Top Contributors

[![renovate[bot]](https://avatars.githubusercontent.com/in/2740?v=4)](https://github.com/renovate[bot] "renovate[bot] (192 commits)")[![Slamdunk](https://avatars.githubusercontent.com/u/152236?v=4)](https://github.com/Slamdunk "Slamdunk (56 commits)")[![CallMeJon90](https://avatars.githubusercontent.com/u/35259732?v=4)](https://github.com/CallMeJon90 "CallMeJon90 (3 commits)")[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (2 commits)")

---

Tags

mysqlpdopdo-mysql

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan

Type Coverage Yes

### Embed Badge

![Health badge](/badges/slam-php-sql-legacy/health.svg)

```
[![Health](https://phpackages.com/badges/slam-php-sql-legacy/health.svg)](https://phpackages.com/packages/slam-php-sql-legacy)
```

###  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)[mongodb/mongodb

MongoDB driver library

1.6k64.0M546](/packages/mongodb-mongodb)[ramsey/uuid-doctrine

Use ramsey/uuid as a Doctrine field type.

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

Reliese Components for Laravel Framework code generation.

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

PHPackages © 2026

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