PHPackages                             redstraw/hooch - 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. redstraw/hooch

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

redstraw/hooch
==============

Database abstraction layer (dbal) and fluent query builder for PHP.

099PHP

Since Mar 11Pushed 7y ago1 watchersCompare

[ Source](https://github.com/redstraw/hooch)[ Packagist](https://packagist.org/packages/redstraw/hooch)[ RSS](/packages/redstraw-hooch/feed)WikiDiscussions master Synced 2d ago

READMEChangelogDependenciesVersions (1)Used By (0)

[![Hooch](./docs/img/hooch.png)](./docs/img/hooch.png)

[![Build Status](https://camo.githubusercontent.com/9e6bd11be0678b1dc0b0d481efcc7f65ff54305fea63022f69e8e8db2d93b933/68747470733a2f2f7472617669732d63692e6f72672f72656473747261772f686f6f63682e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/redstraw/hooch)[![Maintainability](https://camo.githubusercontent.com/dfcad8269e776a8539ede84794a81d162f351ebc490e42a7678f7c0854a8bdcb/68747470733a2f2f6170692e636f6465636c696d6174652e636f6d2f76312f6261646765732f63323764613437353863303730656536386230382f6d61696e7461696e6162696c697479)](https://codeclimate.com/github/redstraw/hooch/maintainability)[![Test Coverage](https://camo.githubusercontent.com/e5bdd221789cd950e05c84faa4b41bc4e39f4d56e93d0bb93777f467a006a757/68747470733a2f2f6170692e636f6465636c696d6174652e636f6d2f76312f6261646765732f63323764613437353863303730656536386230382f746573745f636f766572616765)](https://codeclimate.com/github/redstraw/hooch/test_coverage)[![Latest Stable Version](https://camo.githubusercontent.com/bea74de2cd861f844a2aaf7c17cbacd7049169488ffa0931d4e919ab35ae00f6/68747470733a2f2f706f7365722e707567782e6f72672f72656473747261772f686f6f63682f762f737461626c65)](https://packagist.org/packages/redstraw/hooch)[![Total Downloads](https://camo.githubusercontent.com/eb0eb510e2ece1dcb8f82c24bcfbed1fbc411aa9c7d78bc0498ef222e791d29f/68747470733a2f2f706f7365722e707567782e6f72672f72656473747261772f686f6f63682f646f776e6c6f616473)](https://packagist.org/packages/redstraw/hooch)[![Latest Unstable Version](https://camo.githubusercontent.com/cca8eb6e20885bdc3227e011ca4d332cf99dec63b9d02e9b0f9a03ac4fbfaac1/68747470733a2f2f706f7365722e707567782e6f72672f72656473747261772f686f6f63682f762f756e737461626c65)](https://packagist.org/packages/redstraw/hooch)[![License](https://camo.githubusercontent.com/9a5cceaa0262a2b68891143780104ee25ae61231b97129d21c30a135db6e43d9/68747470733a2f2f706f7365722e707567782e6f72672f72656473747261772f686f6f63682f6c6963656e7365)](https://packagist.org/packages/redstraw/hooch)

About
-----

[](#about)

Database abstraction layer (dbal) and fluent query builder for PHP. Developers can use this package on its own or in conjunction with a framework.

### Features

[](#features)

- Build select, insert, update &amp; delete queries.
- Chain query statements together.
- Use filters to store &amp; recall query logic.
- Switch database connections with ease.
- PSR simple-cache &amp; logging compatible.
- Supported database drivers:
    - PDO
    - MySQLi
- Supported databases:
    - MySQL
    - PostgreSQL (TBD)
    - SQLite (TBD)

### Requirements

[](#requirements)

- PHP &gt;= 7.1
- PDO or MySQLi extension.

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

[](#installation)

### via Composer

[](#via-composer)

```
composer require redstraw/hooch
```

Documentation
-------------

[](#documentation)

TBD

References
----------

[](#references)

- [Hooch](https://en.wikipedia.org/wiki/Hooch), shortened form of Hoochinoo (1877), from the name of a native tribe in Alaska whose distilled liquor was a favorite with miners in the 1898 [Klondike gold rush](https://en.wikipedia.org/wiki/Klondike_Gold_Rush).
- Icons made by [Freepik](https://www.freepik.com/) from [www.flaticon.com](https://www.flaticon.com/) is licensed by [CC 3.0 BY](http://creativecommons.org/licenses/by/3.0/).

###  Health Score

20

—

LowBetter than 14% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity9

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity38

Early-stage or recently created project

 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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/9795b1c465b951230666d9a8259843f570697a43755fa6b43d94e27a5ee9f240?d=identicon)[Freid001](/maintainers/Freid001)

---

Top Contributors

[![Freid001](https://avatars.githubusercontent.com/u/4905858?v=4)](https://github.com/Freid001 "Freid001 (219 commits)")

---

Tags

dbalphpquery-builder

### Embed Badge

![Health badge](/badges/redstraw-hooch/health.svg)

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

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