PHPackages                             hiblaphp/sql - 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. hiblaphp/sql

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

hiblaphp/sql
============

SQL client contracts for Hibla sql database libraries

1.2.1(1w ago)09294MITPHPPHP ^8.4

Since Apr 17Pushed 1w agoCompare

[ Source](https://github.com/hiblaphp/sql)[ Packagist](https://packagist.org/packages/hiblaphp/sql)[ GitHub Sponsors](https://github.com/hiblaphp)[ GitHub Sponsors](https://github.com/rcalicdan)[ RSS](/packages/hiblaphp-sql/feed)WikiDiscussions main Synced today

READMEChangelog (6)Dependencies (14)Versions (7)Used By (4)

Hibla\\Sql
==========

[](#hiblasql)

Common SQL contracts and utilities for Hibla database clients.

Overview
--------

[](#overview)

`Hibla\Sql` is a foundational package that provides standardized interfaces, exceptions, and utilities for building asynchronous SQL database clients in the Hibla ecosystem. It establishes a common contract that enables interchangeable database implementations while maintaining type safety and consistent developer experience.

Features
--------

[](#features)

- **Unified Interface**: Common `SqlClientInterface` for all database clients (MySQL, PostgreSQL, etc.)
- **Type-Safe Results**: Generic `Result` interface for query results with full metadata
- **Transaction Support**: Standardized transaction isolation levels and interfaces
- **Exception Hierarchy**: Comprehensive exception types for robust error handling
- **Promise-Based**: Built on `Hibla\Promise` for fully asynchronous operations
- **Connection Pooling**: Contracts for efficient connection pool management

Installation
------------

[](#installation)

```
composer require hiblaphp/sql
```

###  Health Score

47

—

FairBetter than 93% of packages

Maintenance94

Actively maintained with recent releases

Popularity18

Limited adoption so far

Community13

Small or concentrated contributor base

Maturity53

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

Total

6

Last Release

11d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/163510169?v=4)[Reymart A. Calicdan](/maintainers/rcalicdan)[@rcalicdan](https://github.com/rcalicdan)

---

Top Contributors

[![rcalicdan](https://avatars.githubusercontent.com/u/163510169?v=4)](https://github.com/rcalicdan "rcalicdan (28 commits)")

###  Code Quality

TestsPest

Static AnalysisPHPStan

Code StyleLaravel Pint

Type Coverage Yes

### Embed Badge

![Health badge](/badges/hiblaphp-sql/health.svg)

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

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

Oracle DB driver for Laravel

11518.4k](/packages/jfelder-oracledb)

PHPackages © 2026

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