PHP code example of illuma-law / healthcheck-pgvector

1. Go to this page and download the library: Download illuma-law/healthcheck-pgvector library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

illuma-law / healthcheck-pgvector example snippets


return [
    // If true, the check will FAIL when the extension is missing.
    // If false, it will generate a WARNING instead.
    '

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

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

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

Health::checks([
    // Make the health check FAIL immediately if pgvector is missing
    PgvectorExtensionCheck::new()->
shell
php artisan vendor:publish --tag="healthcheck-pgvector-config"