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 ago2 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 1mo ago

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

25

—

LowBetter than 37% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity19

Limited adoption so far

Community10

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

[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)[ramsey/uuid-doctrine

Use ramsey/uuid as a Doctrine field type.

90440.3M211](/packages/ramsey-uuid-doctrine)[reliese/laravel

Reliese Components for Laravel Framework code generation.

1.7k3.4M16](/packages/reliese-laravel)[wildside/userstamps

Laravel Userstamps provides an Eloquent trait which automatically maintains `created\_by` and `updated\_by` columns on your model, populated by the currently authenticated user in your application.

7511.7M13](/packages/wildside-userstamps)

PHPackages © 2026

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