PHPackages                             crowdstar/vertica-swoole-adapter - 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. crowdstar/vertica-swoole-adapter

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

crowdstar/vertica-swoole-adapter
================================

Provides a DB layer for Swoole-based application to communicate to HP Vertica databases.

1.0.0(5y ago)13341Apache-2.0PHPPHP &gt;=7.1

Since Aug 25Pushed 5y ago4 watchersCompare

[ Source](https://github.com/Crowdstar/vertica-swoole-adapter)[ Packagist](https://packagist.org/packages/crowdstar/vertica-swoole-adapter)[ Docs](https://www.glu.com)[ RSS](/packages/crowdstar-vertica-swoole-adapter/feed)WikiDiscussions master Synced today

READMEChangelog (1)Dependencies (5)Versions (2)Used By (0)

[![Tests](https://github.com/Crowdstar/vertica-swoole-adapter/workflows/Tests/badge.svg)](https://github.com/Crowdstar/vertica-swoole-adapter/actions)[![Latest Stable Version](https://camo.githubusercontent.com/543900dada11dee47fd37229758a9e1bcd08afe5a0b298065c550540171a970c/68747470733a2f2f706f7365722e707567782e6f72672f43726f7764737461722f766572746963612d73776f6f6c652d616461707465722f762f737461626c652e737667)](https://packagist.org/packages/crowdstar/vertica-swoole-adapter)[![Latest Unstable Version](https://camo.githubusercontent.com/cd2b35de33a0026c71b23f96e661d2cdbf84433e930487ff491a34b84e63d645/68747470733a2f2f706f7365722e707567782e6f72672f43726f7764737461722f766572746963612d73776f6f6c652d616461707465722f762f756e737461626c652e737667)](https://packagist.org/packages/crowdstar/vertica-swoole-adapter)[![License](https://camo.githubusercontent.com/eca6c4a601a6ba63b61f7d1b9cfefb0eb460e43bf22c10a0e8d5a3f0c46f6ce2/68747470733a2f2f706f7365722e707567782e6f72672f43726f7764737461722f766572746963612d73776f6f6c652d616461707465722f6c6963656e73652e737667)](https://packagist.org/packages/crowdstar/vertica-swoole-adapter)

Summary
=======

[](#summary)

This library provides a DB layer to communicate to HP Vertica databases for [Swoole](https://github.com/swoole/swoole-src) based applications.

Features supported:

- Connection pool.
- Auto-reconnect.
- Retry with exponential backoff (for failed operations).
- Logging support.

Vertica connections are made through package [skatrych/vertica-php-adapter](https://github.com/skatrych/vertica-php-adapter), which is implemented using ODBC. It is not coroutine-friendly, and works in blocking mode only.

This package was derived from our work at [Glu Mobile](https://www.glu.com). It has been used in one of our internal microservices talking to Vertica 7.2.0 and 9.3.0 servers, and ran smoothly for months.

Installation
============

[](#installation)

```
composer require crowdstar/vertica-swoole-adapter
```

Sample Usage
============

[](#sample-usage)

Following example creates a Vertica connection pool, gets a connection from the pool, makes a database query, then puts the connection back to the pool:

```

```

For more examples, please check source code under folder *examples/*. To run the examples, you will need to run following two commands first to install Composer packages and start Docker containers:

```
docker run --rm -v $(pwd):/var/www -ti phpswoole/swoole:latest-dev composer update -n
docker-compose up --build -d # or "docker-compose up -d" if you don't need to rebuild the image.
```

Once done, you can run the example(s) using following command(s):

```
docker exec -ti $(docker ps -qf "name=app") ./examples/example.php
docker exec -ti $(docker ps -qf "name=app") ./examples/benchmark.php
docker exec -ti $(docker ps -qf "name=app") ./examples/test-coroutine-capability.php
```

###  Health Score

27

—

LowBetter than 47% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity19

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity50

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

2137d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/865547?v=4)[Demin Yin](/maintainers/deminy)[@deminy](https://github.com/deminy)

---

Top Contributors

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

---

Tags

connection-poolswooleverticaswoolevertica

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/crowdstar-vertica-swoole-adapter/health.svg)

```
[![Health](https://phpackages.com/badges/crowdstar-vertica-swoole-adapter/health.svg)](https://phpackages.com/packages/crowdstar-vertica-swoole-adapter)
```

###  Alternatives

[open-smf/connection-pool

A common connection pool based on Swoole is usually used as the database connection pool.

227167.1k20](/packages/open-smf-connection-pool)[swoft/db

swoft database component

24169.3k11](/packages/swoft-db)[hyperf/database-pgsql

A pgsql handler for hyperf/database.

12321.2k19](/packages/hyperf-database-pgsql)[swlib/swpdo

Swoole Coroutine SQL component like PDO

6113.2k2](/packages/swlib-swpdo)[mix/database

Simple database for use in multiple execution environments, with support for FPM, Swoole, Workerman, and optional pools

1515.4k9](/packages/mix-database)[simple-swoole/db

A db component for Simps.

216.8k3](/packages/simple-swoole-db)

PHPackages © 2026

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