https://github.com/aidynmakhataev/laravel-tarantool-session
A Tarantool session driver for Laravel
https://github.com/aidynmakhataev/laravel-tarantool-session
laravel session session-driver tarantool tarantool-session
Last synced: 24 days ago
JSON representation
A Tarantool session driver for Laravel
- Host: GitHub
- URL: https://github.com/aidynmakhataev/laravel-tarantool-session
- Owner: AidynMakhataev
- License: mit
- Created: 2020-07-30T17:41:03.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2020-08-06T05:21:03.000Z (almost 6 years ago)
- Last Synced: 2025-09-19T16:22:16.628Z (9 months ago)
- Topics: laravel, session, session-driver, tarantool, tarantool-session
- Language: PHP
- Homepage:
- Size: 25.4 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Laravel Tarantool Session Driver
A Tarantool session driver for Laravel. For more information about sessions, check http://laravel.com/docs/session.
## Requirements
- PHP ^7.2
- Laravel ^5.5
## Installation
Via Composer
```bash
composer require aidynmakhataev/laravel-tarantool-session
```
Laravel uses Package Auto-Discovery, so doesn't require you to manually add the ServiceProvider.
### Laravel without auto-discovery:
If you don't use auto-discovery, add the ServiceProvider to the providers array in config/app.php
```php
\AidynMakhataev\Tarantool\Session\SessionServiceProvider::class
```
### Change session driver
Change the session driver in `config/session.php` to tarantool:
'driver' => 'tarantool',
## Configuration
You can publish the config file with the following command:
```bash
php artisan vendor:publish --tag="tarantool-session-config"
```
You need to provide following tarantool connection variables
```dotenv
TARANTOOL_SESSION_HOST=tcp://tarantool
TARANTOOL_SESSION_USER=user
TARANTOOL_SESSION_PASSWORD=password
TARANTOOL_SESSION_SPACE=sessions
```
## Transfer session from another storage
You can easily transfer your sessions with following artisan commands
### File Driver
```bash
php artisan tarantool-session:transfer-file
```
### Redis Driver
Currently not supported
### Database Driver
Currently not supported
### Memcached Driver
Currently not supported
## License
MIT. Please see the [license file](LICENSE) for more information.