Pros:
decimal/uuid PECL extensions).withMiddleware().$client->getSpace()) maps cleanly to Laravel’s Eloquent/Query Builder patterns.Cons:
AppServiceProvider).App\Http\Middleware\TarantoolAuth).bind(Tarantool\Client\Client::class, fn() => Client::fromDsn(env('TARANTOOL_DSN'))).Criteria/Operations must be used.RetryMiddleware vs. AuthenticationMiddleware) must be explicitly managed to avoid auth leaks on retries.Decimal, UUID) require PECL extensions for full performance; fallback to pure PHP may impact speed.try/catch) must account for Tarantool\Client\Exception\* classes.decimal/uuid types?LoggingMiddleware must be configured to integrate with Laravel’s logging (e.g., Monolog).AppServiceProvider:
public function register()
{
$this->app->singleton(Tarantool\Client\Client::class, fn() =>
Client::fromDsn(env('TARANTOOL_DSN'))
->withMiddleware(
new AuthenticationMiddleware(env('TARANTOOL_USER'), env('TARANTOOL_PASS')),
RetryMiddleware::exponential(3)
)
);
}
public function handle($request, Closure $next)
{
$client = app(Tarantool\Client\Client::class);
// Custom logic (e.g., validate request before passing to Tarantool)
return $next($request);
}
TarantoolUserRepository) to hide Criteria/Operations complexity.TarantoolProcessDataJob). Use RetryMiddleware for resilience.TarantoolDataSynced) for reactive updates.box.stat.user) into Laravel Prometheus/Grafana.php: ^7.4|^8.0, ext-json, ext-pcntl (for async).ext-decimal, ext-uuid (for performance).tarantool/client namespace.composer require tarantool/client..env.Decimal/UUID types need manual PECL management.laravel + tarantool yield few results; expect low signal-to-noise.How can I help you explore Laravel packages today?