PHP code example of ytake / laravel-voltdb

1. Go to this page and download the library: Download ytake/laravel-voltdb library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

ytake / laravel-voltdb example snippets


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

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

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

$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);

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

 'driver' => 'voltdb',

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

 'driver' => 'voltdb',

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

// basic
\VoltDBApi::request()->post([
    'Procedure' => 'addUser',
    'Parameters' => [1, "voltdb"]
])->getResult();
json
""php": ">=5.4.0",
    "ytake/laravel-voltdb": "1.*"
},
bash
$ php artisan vendor:publish 
bash
$ php artisan ytake:voltdb-schema-publish