Download the PHP package illuma-law/healthcheck-pgvector without Composer
On this page you can find all versions of the php package illuma-law/healthcheck-pgvector. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download illuma-law/healthcheck-pgvector
More information about illuma-law/healthcheck-pgvector
Files in illuma-law/healthcheck-pgvector
Package healthcheck-pgvector
Short Description Focused pgvector extension health check for Spatie's Laravel Health package.
License MIT
Homepage https://github.com/illuma-law/healthcheck-pgvector
Informations about the package healthcheck-pgvector
Healthcheck pgvector for Laravel
A focused pgvector extension health check for Spatie's Laravel Health package.
This package provides a simple, direct health check to verify that the vector extension (pgvector) is properly installed and active in your PostgreSQL database. This is critical for applications that rely on pgvector for storing AI embeddings and running semantic/similarity searches.
Features
- Version Detection: Checks if the
vectorextension is enabled and reports the specific pgvector version installed. - Configurable Strictness: Choose whether a missing pgvector extension should return a Warning (degraded) or a Failure (broken) status for your application.
- Query Safety: Safely handles database connection errors or missing tables, returning a failed state with the exception message instead of crashing the health check suite.
Installation
Require this package with composer:
Configuration
You can publish the config file with:
The healthcheck-pgvector.php config file allows you to define whether the check is strictly required by default.
Usage & Integration
Register the check inside your application's health service provider (e.g. AppServiceProvider or a dedicated HealthServiceProvider), alongside your other Spatie Laravel Health checks:
Basic Registration
Fluent Configuration
You can override the config file's default strictness on a per-check basis using the fluent required() method.
Expected Result States
The check interacts with the Spatie Health dashboard and JSON endpoints using these states:
- Ok: The pgvector extension is installed. The short summary and meta data will include the exact installed version (e.g.
0.7.0). - Warning: pgvector is missing, but
requiredis set tofalse. - Failed: pgvector is missing and
requiredis set totrue. - Failed (Exception): The database query to
pg_extensionthrows an exception (e.g., database connection down).
Testing
Run the test suite:
License
The MIT License (MIT). Please see License File for more information.
All versions of healthcheck-pgvector with dependencies
illuminate/contracts Version ^11.0||^12.0||^13.0
illuminate/database Version ^11.0||^12.0||^13.0
illuminate/support Version ^11.0||^12.0||^13.0
laravel/framework Version ^12.0||^13.0
spatie/laravel-health Version ^1.39
spatie/laravel-package-tools Version ^1.16