Search by

illuma-law / healthcheck-pgvector

miguelenes

Focused pgvector extension health check for Spatie's Laravel Health package.

Package info

github.com/eloquage/healthcheck-pgvector

Language:Blade

pkg:composer/illuma-law/healthcheck-pgvector

Fund package maintenance!

illuma-law

Statistics

Installs: 63

Dependents: 0

Suggesters: 0

Stars: 0

Open Issues: 1

v0.1.4 2026-10-23 13:52 UTC

README

pgvector PostgreSQL extension check

A Spatie Laravel Health check that reports whether the vector extension is installed on your PostgreSQL connection.

Tests Latest Version License

Requirements

  • PHP 8.3 or later
  • Laravel 12 or 13
  • Spatie Laravel Health 1.39 or later
  • A PostgreSQL database connection

Install

composer require illuma-law/healthcheck-pgvector

Laravel discovers the service provider automatically. Register the check with your other health checks:

use IllumaLaw\HealthCheckPgvector\PgvectorExtensionCheck;
use Spatie\Health\Facades\Health;

Health::checks([
    PgvectorExtensionCheck::new(),
]);

Configure

The check looks up the installed vector extension and reports its version. When the extension is missing, the result is a warning by default. Require it with the environment variable or published configuration:

HEALTH_PGVECTOR_REQUIRED=true
php artisan vendor:publish --tag=healthcheck-pgvector-config

You can override the default for one check:

PgvectorExtensionCheck::new()->required();

Database query errors always return a failed result.

Test

composer test
composer analyse
vendor/bin/pint --test

MIT licensed. See LICENSE.md.