PHPackages                             beliy/yii2-cassandra-cql - 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. beliy/yii2-cassandra-cql

AbandonedArchivedYii2-extension[Database &amp; ORM](/categories/database)

beliy/yii2-cassandra-cql
========================

A Cassandra CQL3 client wrapper over phpcassa for Yii 2

63273PHP

Since Dec 26Pushed 9y ago1 watchersCompare

[ Source](https://github.com/dmitriybelyy/yii2-cassandra-cql)[ Packagist](https://packagist.org/packages/beliy/yii2-cassandra-cql)[ RSS](/packages/beliy-yii2-cassandra-cql/feed)WikiDiscussions master Synced today

READMEChangelogDependenciesVersions (1)Used By (0)

Deprecated
----------

[](#deprecated)

**Phpcassa** has been deprecated and will no longer be supported! Please use

yii2-cassandra-cql
==================

[](#yii2-cassandra-cql)

A Cassandra CQL3 client wrapper over phpcassa for Yii 2

Provides object oriented access to Cassandra using CQL3 in a familiar Yii Style. This project is a wrapper over the famous phpcassa library.

This extension also handles issues with the phpcassa library 'Data Types' while using the latest CQL3 API provided by cassandra. The following discussion on StackOverflow describes the problem:

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

[](#installation)

The preferred way to install this extension is through [composer](http://getcomposer.org/download/).

Either run

```
php composer.phar require --prefer-dist beliy/yii2-cassandra-cql "*"

```

or

```
composer require beliy/yii2-cassandra-cql:dev-master

```

or add

```
"beliy/yii2-cassandra-cql": "*"

```

to the require section of your `composer.json` file.

Usage
-----

[](#usage)

```
'components' => [
...
  'cassandra' => [
        'class' => '\beliy\cassandra\Connection',
        'keyspace' => 'youkeyspace',
        'servers' => ['127.0.0.1', ...],
    ],
    'cache' => [
      'class' => '\beliy\cassandra\Cache',
      'tableName' => 'cache', // dedault 'cache'
      'tablePrefix' => 'mega', // default ''
    ],
    ...
  ]

  $cass = Yii::$app->cassandra;
  $cql = 'SELECT value FROM yourtable WHERE id=1';
  $query_result = $cass->cql3Query($cql);
  $rows = $cass->cqlGetRows($query_result);

  Usage for cache:
  First you may init column fammily storage fro cache.
  $cache = Yii::$app->cache;
  $cache->createTable();

  Than use standart Yii2 Cache APIs.

```

**REQUIREMENTS**

Yii 2.0.3 / PHP 5.5+

**Resources**

Fork extensions from

External Projects used in this extension is the phpcassa library for PHP and Cassandra

###  Health Score

24

—

LowBetter than 31% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity19

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity41

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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/82be148efdf1f460f37a04a2d0525cc180e9a3667d4a2bf2b9dd7cac31dc91a7?d=identicon)[beliy](/maintainers/beliy)

---

Top Contributors

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

### Embed Badge

![Health badge](/badges/beliy-yii2-cassandra-cql/health.svg)

```
[![Health](https://phpackages.com/badges/beliy-yii2-cassandra-cql/health.svg)](https://phpackages.com/packages/beliy-yii2-cassandra-cql)
```

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

pgvector support for PHP

198741.5k12](/packages/pgvector-pgvector)[jfelder/oracledb

Oracle DB driver for Laravel

11518.4k](/packages/jfelder-oracledb)

PHPackages © 2026

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