New

Just launched: Vueblocks, a brand-new search engine for Vue packages! Explore Vueblocks →

chocofamilyme/laravel-tarantool

A Tarantool based Eloquent ORM and Query builder for Laravel
2,371 18
Install
composer require chocofamilyme/laravel-tarantool
Latest Version:1.1.2
PHP:^7.3|^8.0
Laravel:8
Older releases:5 · 6 · 7
License:BSD-3-Clause
Last Updated:Jul 20, 2023
Links: GitHub  ·  Packagist
Maintainer: chocofamilyme

Laravel Tarantool

This package adds functionalities to the Eloquent model and Query builder for Tarantool, using the original Laravel API. This library extends the original Laravel classes, so it uses exactly the same methods.

Installation

Laravel Version Compatibility
Laravel Package
5.8.x 0.1.9
6.x 0.1.9
7.x 0.1.9
8.x 1.x
Via Composer
composer require chocofamilyme/laravel-tarantool

Configuration

You can use Tarantool either as the main database, either as a side database. To do so, add a new tarantool connection to config/database.php:

'tarantool' => [
    'driver'   => 'tarantool',
    'host'     => env('DB_HOST', '127.0.0.1'),
    'port'     => env('DB_PORT', 3301),
    'database' => env('DB_DATABASE'),
    'username' => env('DB_USERNAME'),
    'password' => env('DB_PASSWORD'),
    'driver_oprions' => [
        'connection_type'     => env('DB_CONNECTION_TYPE', 'tcp')
    ],
    'options'  => [
        'connect_timeout' => 5,
        'max_retries' => 3
    ]
],

Set tarantool as main database

'default' => env('DB_CONNECTION', 'tarantool'),

You can also configure connection with dsn string:

'tarantool' => [
    'driver'   => 'tarantool',
    'dsn' => env('DB_DSN'),
    'database' => env('DB_DATABASE'),
],

Related Packages

ems/versatile

Extensions for Laravels Eloquent ORM

8,592 0
hugorut/filterable

A laravel package for working with query filtering

20 0
rtablada/ordered-eloquent

An extension of Eloquent ORM for automatically ordering results

18 3
dbout/wp-orm

WordPress ORM with Eloquent.

11,224 133
mattkirwan/illuminate-database-silex-service-provider

A Silex specific service provider for using Illuminate Database as a standalone...

1,748 1

Version History

Version Released PHP Laravel License
1.1.2 ^7.3|^8.0 ^8.0 BSD-3-Clause
1.1.1 ^7.3|^8.0 ^8.0 BSD-3-Clause
1.0.1 ^7.3 ^8.0 BSD-3-Clause
1.0.0 ^7.3 ^8.0 BSD-3-Clause
0.1.9 ^7.2 ^5.8|^6.0|^7.0 BSD-3-Clause