PHPackages                             ytake/laravel-voltdb - 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. ytake/laravel-voltdb

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

ytake/laravel-voltdb
====================

VoltDB providers for Laravel

1.0.1(11y ago)437MITPHPPHP &gt;=5.4.0

Since Sep 3Pushed 10y ago2 watchersCompare

[ Source](https://github.com/ytake/Laravel.VoltDB)[ Packagist](https://packagist.org/packages/ytake/laravel-voltdb)[ RSS](/packages/ytake-laravel-voltdb/feed)WikiDiscussions master Synced 3d ago

READMEChangelog (4)Dependencies (20)Versions (9)Used By (0)

Laravel.VoltDB
==============

[](#laravelvoltdb)

VoltDB providers for Laravel
[![License](https://camo.githubusercontent.com/7cf7036009b14ce70f9d3325d43f398dfb42f73231d5ebaabfe5dfb622724576/687474703a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f7974616b652f6c61726176656c2d766f6c7464622e7376673f7374796c653d666c6174)](https://packagist.org/packages/ytake/laravel-voltdb)[![Latest Version](https://camo.githubusercontent.com/5effd2da9070846c16f617840e90bd4ab5e1f41739e84c1b6095e2b9e076031b/687474703a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f7974616b652f6c61726176656c2d766f6c7464622e7376673f7374796c653d666c6174)](https://packagist.org/packages/ytake/laravel-voltdb)[![Total Downloads](https://camo.githubusercontent.com/4fcbec9b4df93d0b9ef95678347ba32934fd4a4aa522731f7a9cf1b42de99f08/687474703a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f7974616b652f6c61726176656c2d766f6c7464622e7376673f7374796c653d666c6174)](https://packagist.org/packages/ytake/laravel-voltdb)[![Dependency Status](https://camo.githubusercontent.com/9760027bb918ad7ef81675c1d68cb69e6b09c411ba89d1b15b5ac4c0bde911d7/68747470733a2f2f7777772e76657273696f6e6579652e636f6d2f757365722f70726f6a656374732f3533656635383663313362623036353039653030303264342f62616467652e7376673f7374796c653d666c6174)](https://www.versioneye.com/user/projects/53ef586c13bb06509e0002d4)

[![Scrutinizer Code Quality](https://camo.githubusercontent.com/9432b23c7971217190bb0ff20a98ddbc93ff293c337e1d2ca7c057e8bde69560/687474703a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f672f7974616b652f4c61726176656c2e566f6c7444422e7376673f7374796c653d666c6174)](https://scrutinizer-ci.com/g/ytake/Laravel.VoltDB/?branch=master)[![Code Coverage](https://camo.githubusercontent.com/3078b38db0af1f31e4c6bc166577e374fecb36841994c246eee7bb56b54d7c94/687474703a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f636f7665726167652f672f7974616b652f4c61726176656c2e566f6c7444422f6d61737465722e7376673f7374796c653d666c6174)](https://scrutinizer-ci.com/g/ytake/Laravel.VoltDB/?branch=master)[![Build Status](https://camo.githubusercontent.com/bececb7e7fe9b2de72b793c74accbd3aed9e5f5915d343a2b11970a73143ef7f/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f7974616b652f4c61726176656c2e566f6c7444422f6261646765732f6275696c642e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/ytake/Laravel.VoltDB/build-status/master)

\##for laravel5 **Laravel4 [Laravel.VoltDB](https://github.com/ytake/Laravel.VoltDB/tree/4.2)**

\#Install **required [ext-voltdb](https://github.com/VoltDB/voltdb-client-php), ext-curl**
Add the package to your composer.json and run composer update.

```
"require": {
    "php": ">=5.4.0",
    "ytake/laravel-voltdb": "1.*"
},
```

Add the service provider in app/config/app.php:

```
'providers' => [
    'Ytake\LaravelVoltDB\VoltDBServiceProvider',
];
```

Add the aliases in app/config/app.php:

```
'aliases' => [
    'VoltDBApi' => 'Ytake\LaravelVoltDB\VoltDBFacade',
];
```

The service provider will register a voltdb database extension
**not supported Eloquent, QueryBuilder
(VoltDB supports PHP client application development using VoltDB PHP client library.)**

\#Configure Add database connection

```
'voltdb' => [
    'driver' => 'voltdb',
    'host' => 'localhost',
    'username' => '',
    'password' => '',
    'port' => 21212
],
```

by default .env

```
DB_HOST=localhost
DB_DATABASE=voltdb
DB_USERNAME=username
DB_PASSWORD=secret

CACHE_DRIVER=voltdb
SESSION_DRIVER=voltdb

```

publish

```
$ php artisan vendor:publish
```

\#Database Extension ##@AdHoc query

```
$sql = "INSERT INTO users (user_id, username, password, remember_token, created_at)"
    ." VALUES (" . rand() . ", 'voltdb', '" . $pass . "', null, '" . date("Y-m-d H:i:s") . "')";
\DB::connection('voltdb')->exec($sql);
$sql = "SELECT * FROM users";
\DB::connection('voltdb')->select($sql);
```

**not supported prepared statement**
Recommended stored procedure ##stored procedure

```
\DB::connection('voltdb')->procedure('Auth_findUser', [1]);
```

\#Auth include voltdb auth driver
in `config/auth.php`:

```
 'driver' => 'voltdb',
```

or .env

\#Cache include voltdb cache driver
in `config/cache.php`:

```
'driver' => 'voltdb',
'voltdb' => [
  'driver' => 'voltdb',
],
```

\#Session include voltdb session driver
in `app/config/session.php`:

```
 'driver' => 'voltdb',
```

**Auth, Cache, Session use Stored Procedure(see schema/ddl.sql)**

\#publish for auth, cache, session ddl.sql

```
$ php artisan ytake:voltdb-schema-publish
```

**Options:**
\--publish (-p) Publish to a specific directory
default storage/schema/ddl.sql

\###DDL default ddl

```
CREATE TABLE users (
   user_id INTEGER UNIQUE NOT NULL,
   username VARCHAR(40) NOT NULL,
   password VARCHAR(64) NOT NULL,
   remember_token VARCHAR(128) DEFAULT NULL,
   created_at TIMESTAMP NOT NULL,
   PRIMARY KEY(user_id)
);
CREATE INDEX UsersIndex ON users (username, password, remember_token);
CREATE TABLE caches (
  key VARCHAR(255) UNIQUE NOT NULL,
  value VARCHAR(262144),
  expiration INTEGER DEFAULT 0 NOT NULL,
  CONSTRAINT PK_cache PRIMARY KEY (key)
);
CREATE INDEX IX_cache_expires ON cache (expiration);
CREATE TABLE sessions (
  id VARCHAR(255) UNIQUE NOT NULL,
  payload VARCHAR(65535),
  last_activity INTEGER DEFAULT 0 NOT NULL
);
CREATE INDEX IX_session_id ON sessions (id);
CREATE INDEX IX_activity ON sessions (last_activity);
```

\#Facades supported for json interface API

```
// call stored procedure @SystemInformation
\VoltDBApi::request()->info()->getResult();

// basic
\VoltDBApi::request()->post([
    'Procedure' => 'addUser',
    'Parameters' => [1, "voltdb"]
])->getResult();
```

\###Async Stored Procedure see [VoltDB.PHPClientWrapper](https://github.com/ytake/VoltDB.PHPClientWrapper)

\#Console **ytake:voltdb-schema-publish** publish DDL for auth, cache driver
**ytake:voltdb-info** information about ytake/laravel-voltdb
**ytake:voltdb-system-catalog** renderer system catalog
\##voltdb-system-catalog **Options:**
\--component (-c) returns information about the schema of the VoltDB database, depending upon the component keyword you specify. [![alt text](https://camo.githubusercontent.com/ecef99da29a5079160184a01a562e18e7549d0b0c594c411d47ed94c9dc81a94/687474703a2f2f7974616b652e6769746875622e696f2f696d616765732f766f6c7464622d73797374656d2d636174616c6f672e706e67)](https://camo.githubusercontent.com/ecef99da29a5079160184a01a562e18e7549d0b0c594c411d47ed94c9dc81a94/687474703a2f2f7974616b652e6769746875622e696f2f696d616765732f766f6c7464622d73797374656d2d636174616c6f672e706e67)

**example**
Such as MySQL SHOW COLUMNS

```
$ php artisan ytake:voltdb-system-catalog -c COLUMNS
```

[![alt text](https://camo.githubusercontent.com/218b5aecfb6f023e4fc5477b672277209dcb6047f3aee4010145ceb66d0bf53c/687474703a2f2f7974616b652e6769746875622e696f2f696d616765732f766f6c7464622d73797374656d2d636174616c6f672d636f6c756d6e2e706e67)](https://camo.githubusercontent.com/218b5aecfb6f023e4fc5477b672277209dcb6047f3aee4010145ceb66d0bf53c/687474703a2f2f7974616b652e6769746875622e696f2f696d616765732f766f6c7464622d73797374656d2d636174616c6f672d636f6c756d6e2e706e67)

###  Health Score

28

—

LowBetter than 54% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity11

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity63

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

Every ~38 days

Total

5

Last Release

4116d ago

Major Versions

0.2.2 → 4.2.x-dev2014-09-22

### Community

Maintainers

![](https://www.gravatar.com/avatar/47817f3dd2890864096bd77ee772ec46061432f128988ca23939b0ca486d7bc3?d=identicon)[ytake](/maintainers/ytake)

---

Top Contributors

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

---

Tags

laraveldatabaseauthcachesessionvoltdbnewsql

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/ytake-laravel-voltdb/health.svg)

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

###  Alternatives

[roots/acorn

Framework for Roots WordPress projects built with Laravel components.

9682.1M97](/packages/roots-acorn)[aedart/athenaeum

Athenaeum is a mono repository; a collection of various PHP packages

245.2k](/packages/aedart-athenaeum)[laravel/pulse

Laravel Pulse is a real-time application performance monitoring tool and dashboard for your Laravel application.

1.7k12.1M99](/packages/laravel-pulse)[laravel/passport

Laravel Passport provides OAuth2 server support to Laravel.

3.4k85.0M532](/packages/laravel-passport)[mongodb/laravel-mongodb

A MongoDB based Eloquent model and Query builder for Laravel

7.1k7.2M71](/packages/mongodb-laravel-mongodb)[flarum/core

Delightfully simple forum software.

211.3M1.9k](/packages/flarum-core)

PHPackages © 2026

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