obrainwave/ai-semantic-engine-phpsdk

Official PHP SDK for the AI Semantic Engine

Maintainers

Package info

github.com/Obrainwave/ai-semantic-engine-phpsdk

Homepage

pkg:composer/obrainwave/ai-semantic-engine-phpsdk

Statistics

Installs: 0

Dependents: 0

Suggesters: 0

Stars: 0

Open Issues: 0

1.0.0 2026-03-08 18:25 UTC

This package is auto-updated.

Last update: 2026-03-08 18:35:15 UTC


README

The official PHP client for the AI Semantic Engine.

Installation

composer require obrainwave/ai-semantic-engine-phpsdk

Usage

<?php
require 'vendor/autoload.php';
use AiSemanticEngine\Client;

$client = new Client('https://ai.quizcore.org', 'YOUR_API_KEY');

// 1. Embed Text
$embeddings = $client->embed("Hello world");

// 2. Compute Similarity
$score = $client->similarity("Apple", "Orange");

// 3. Store Knowledge
$client->store("Machine learning is fascinating.", ["topic" => "AI"]);

// 4. Search Knowledge
$results = $client->search("Tell me about AI", 3);
print_r($results);

Endpoints Supported

  • embed and embed-batch
  • similarity
  • store (items endpoint)
  • search