PHPackages                             michabbb/php-crate - 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. michabbb/php-crate

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

michabbb/php-crate
==================

A PHP Helper Class working with the crate db

v1.0(11y ago)02.2k↓50%1proprietaryPHPPHP &gt;=5.3

Since Dec 7Pushed 3y ago2 watchersCompare

[ Source](https://github.com/michabbb/php-crate)[ Packagist](https://packagist.org/packages/michabbb/php-crate)[ RSS](/packages/michabbb-php-crate/feed)WikiDiscussions master Synced 1mo ago

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

php-crate
=========

[](#php-crate)

A PHP helper class for working with the crate db
using a round robin connection pool based on a modified version of [allegro/toper](https://github.com/allegro/toper)

Notice
------

[](#notice)

i use a modified version of [allegro/toper](https://github.com/allegro/toper) where the original guzzle response object gets returned

Quick start
-----------

[](#quick-start)

```
$APIURL = "/_sql?pretty";
$POOL   = "http://127.0.0.1:4200,http://127.0.0.1:4201,http://127.0.0.1:4202";
$SQL    = "select id from test";

$CRATE = new crate($POOL,$APIURL);
$result = $CRATE->sql($SQL);
```

Simple Test
-----------

[](#simple-test)

```
vendor/bin/phpunit --bootstrap ./tests/bootstrap.php --colors tests/SelectTest.php --verbose --debug
```

###  Health Score

30

—

LowBetter than 64% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity20

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity60

Established project with proven stability

 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

4180d ago

### Community

Maintainers

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

---

Top Contributors

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

### Embed Badge

![Health badge](/badges/michabbb-php-crate/health.svg)

```
[![Health](https://phpackages.com/badges/michabbb-php-crate/health.svg)](https://phpackages.com/packages/michabbb-php-crate)
```

###  Alternatives

[kbrw/riak-bundle

Allows your application to intereact with Riak datastorage

1512.0k](/packages/kbrw-riak-bundle)

PHPackages © 2026

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