upstash / vector-laravel
Upstash Vector SDK for Laravel
Fund package maintenance!
Upstash
Requires
- php: ^8.3
- illuminate/contracts: ^12.0|^11.0|^10.0
- spatie/laravel-package-tools: ^1.16
- upstash/vector: ~1.2.0
Requires (Dev)
- larastan/larastan: ^3.1|^2.9
- laravel/pint: ^1.14
- nunomaduro/collision: ^8.1.1|^7.10.0
- orchestra/testbench: ^10.0|^9.0.0|^8.22.0
- pestphp/pest: ^2.0|^3.0
- pestphp/pest-plugin-arch: ^2.0|^3.0
- pestphp/pest-plugin-laravel: ^2.0|^3.0
- phpstan/extension-installer: ^1.3
- phpstan/phpstan-deprecation-rules: ^2.0|^1.1
- phpstan/phpstan-phpunit: ^2.0|^1.3
This package is not auto-updated.
Last update: 2025-05-23 10:07:54 UTC
README
Upstash Vector is an HTTP serverless Vector Database.
You can store, query, and retrieve vectors from your application, use it to power your search, and more.
You can read more about Upstash Vector here.
Installation
You can install the package via composer:
composer require upstash/vector-laravel
You can publish the config file with:
php artisan vendor:publish --tag="vector-config"
This is the contents of the published config file:
return [ 'default' => env('UPSTASH_VECTOR_CONNECTION', 'default'), 'connections' => [ 'default' => [ 'url' => env('UPSTASH_VECTOR_REST_URL'), 'token' => env('UPSTASH_VECTOR_REST_TOKEN'), ], ], ];
Usage
use Upstash\Vector\Laravel\Facades\Vector; $info = Vector::getInfo();
Testing
composer test
Changelog
Please see CHANGELOG for more information on what has changed recently.
Contributing
Please see CONTRIBUTING for details.
Security Vulnerabilities
Please review our security policy on how to report security vulnerabilities.
License
The MIT License (MIT). Please see License File for more information.