PHPackages                             websmurf/laravel-cassandra - 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. websmurf/laravel-cassandra

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

websmurf/laravel-cassandra
==========================

Cassandra wrapper for Laravel/Lumen

v0.4.0(9y ago)82.2kMITPHPPHP &gt;=5.5.0

Since Jul 27Pushed 9y ago1 watchersCompare

[ Source](https://github.com/websmurf/laravel-cassandra)[ Packagist](https://packagist.org/packages/websmurf/laravel-cassandra)[ Docs](https://github.com/websmurf/laravel-cassandra)[ RSS](/packages/websmurf-laravel-cassandra/feed)WikiDiscussions master Synced 3w ago

READMEChangelogDependencies (3)Versions (5)Used By (0)

Laravel/Lumen wrapper for Cassandra
===================================

[](#laravellumen-wrapper-for-cassandra)

[![Build Status](https://camo.githubusercontent.com/26ae798a0ebdcd50f7e8d57c24288db0696292ef1d540b686e4accdef88c7f06/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f776562736d7572662f6c61726176656c2d63617373616e6472612f6261646765732f6275696c642e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/websmurf/laravel-cassandra/build-status/master)[![Scrutinizer Code Quality](https://camo.githubusercontent.com/740d770a5ab5b9c164a1e2335e470504db3ee95dddd41bc8866be8a673c39616/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f776562736d7572662f6c61726176656c2d63617373616e6472612f6261646765732f7175616c6974792d73636f72652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/websmurf/laravel-cassandra/?branch=master)[![Code Coverage](https://camo.githubusercontent.com/6d2318391f01cc4f58907a7e6b866ead18c35a7dc48ef59a44818b427f14a598/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f776562736d7572662f6c61726176656c2d63617373616e6472612f6261646765732f636f7665726167652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/websmurf/laravel-cassandra/?branch=master)

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

[](#installation)

This packages uses the cassandra functionality provided by the Datastax php driver. It needs to be installed before you will be able to use this package. See for more information:

Install using composer:

```
composer require websmurf/laravel-cassandra

```

After that, register the service provider by adding it in your app.php:

```
$app->register(Websmurf\LaravelCassandra\CassandraServiceProvider::class);

```

You can publish the configuration using the following command:

```
php artisan config:publish websmurf/laravel-cassandra

```

Or simply create a copy of the config/cassandra.php file in your app/config folder.

After that, change the configuration according to your needs.

Usage
-----

[](#usage)

After installation, you can inject Cassandra in your constructor and use it in your code:

```
// Inject in the constructor
public function __construct(Cassandra $cassandra, Request $request)
{
	$this->cassandra = $cassandra;
}

// Create prepared statement
$prepared = $this->cassandra->prepare('THIS IS MY CQL STATEMENT');

// Create options for execution
$options = new \Cassandra\ExecutionOptions([
	'arguments' => $data,
  	'consistency' => \Cassandra::CONSISTENCY_ONE
]);

// Execute statement
$this->cassandra->execute($prepared, $options);
```

###  Health Score

28

—

LowBetter than 52% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity21

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity51

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

Every ~0 days

Total

4

Last Release

3622d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/4027236?v=4)[Adam van Dongen](/maintainers/websmurf)[@websmurf](https://github.com/websmurf)

---

Top Contributors

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

---

Tags

cassandralaravellumencassandra

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/websmurf-laravel-cassandra/health.svg)

```
[![Health](https://phpackages.com/badges/websmurf-laravel-cassandra/health.svg)](https://phpackages.com/packages/websmurf-laravel-cassandra)
```

###  Alternatives

[illuminate/database

The Illuminate Database package.

2.8k54.1M11.2k](/packages/illuminate-database)[kirschbaum-development/eloquent-power-joins

The Laravel magic applied to joins.

1.6k29.9M42](/packages/kirschbaum-development-eloquent-power-joins)[yajra/laravel-oci8

Oracle DB driver for Laravel via OCI8

8723.1M23](/packages/yajra-laravel-oci8)[glushkovds/phpclickhouse-laravel

Adapter of the most popular library https://github.com/smi2/phpClickHouse to Laravel

2051.4M2](/packages/glushkovds-phpclickhouse-laravel)[lemaur/eloquent-publishing

207.8k1](/packages/lemaur-eloquent-publishing)[laravel-liberu/laravel-gedcom

A package that converts gedcom files to Eloquent models

782.5k1](/packages/laravel-liberu-laravel-gedcom)

PHPackages © 2026

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