Download the PHP package x-laravel/embedding-oracle-driver without Composer

On this page you can find all versions of the php package x-laravel/embedding-oracle-driver. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package embedding-oracle-driver

x-laravel/embedding — Oracle 26ai Driver

Tests PHP Laravel

Oracle 26ai native vector similarity driver for x-laravel/embedding.

How It Works

Requirements

Installation

The OracleEmbeddingServiceProvider is auto-discovered and registers the oracle driver automatically.

Setup

1. Configure x-laravel/embedding

Publish the config if you haven't already:

Set the similarity driver and database connection in config/embedding.php:

2. Create the tables

This driver ships its own Oracle-native migrations that replace the default ones from x-laravel/embedding: embeddings with a VECTOR(1536, FLOAT32) column and embeddables with a native JSON payload column.

Publish and run the migrations (migrations are not loaded automatically — publish the driver migrations, not the core ones):

The published files are plain migrations in database/migrations/ — customise the DDL there if needed (e.g. tablespace, index parameters) before running migrate.

Note: VECTOR_DISTANCE works without an index (sequential scan). If you have the Oracle In-Memory option, add a CREATE VECTOR INDEX ... ORGANIZATION INMEMORY NEIGHBOR GRAPH statement after publishing the migration.

3. Model

Follow the standard x-laravel/embedding setup. No Oracle-specific changes are needed on your models.

Usage

The driver is transparent — use the standard x-laravel/embedding API:

All methods set a similarity_score float attribute on each returned model.

Payload filtering

Models using #[EmbedPayload] can filter similarity searches at the database level. The driver translates filter: to a whereExists subquery with JSON_VALUE — numbers via RETURNING NUMBER, plus a JSON type guard on every condition, so comparisons are type-strict (34 never matches "34"):

Note: oci8 returns Oracle NUMBER columns to PHP as strings. Add an integer cast to numeric payload fields on your models — otherwise a queued payload sync writes "34" instead of 34 after the DB round-trip, and type-strict filters stop matching.

Testing

License

This package is open-sourced software licensed under the MIT license.


All versions of embedding-oracle-driver with dependencies

PHP Build Version
Package Version
Requires php Version ^8.3
illuminate/support Version ^12.0|^13.0
x-laravel/embedding Version ^1.0
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package x-laravel/embedding-oracle-driver contains the following files

Loading the files please wait ...