Download the PHP package synapcores/laravel without Composer
On this page you can find all versions of the php package synapcores/laravel. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download synapcores/laravel
More information about synapcores/laravel
Files in synapcores/laravel
Package laravel
Short Description Laravel integration for the SynapCores AIDB PHP SDK — facade, artisan commands, Eloquent vector cast, RAG trait, and queueable agent jobs
License MIT
Homepage https://synapcores.com
Informations about the package laravel
synapcores/laravel — Laravel integration for SynapCores AIDB
First-class Laravel package on top of synapcores/sdk. Get a SynapCores facade, three artisan commands, an Eloquent vector cast, a RAG trait, and a queueable agent job — all wired to a single config file.
Requirements
- PHP 8.1+
- Laravel 10, 11, or 12
- A running SynapCores engine (free CE:
docker pull synapcores/community:latest)
Install
Then set in .env:
That's it — the service provider auto-registers, the facade auto-loads, the singleton client is shared across your whole app.
Facade
Artisan commands
Eloquent vector cast
Store embeddings as a VECTOR(N) column; work with float[] in PHP. The cast handles encoding both ways.
HasRAG trait — semantic search returning Eloquent models
Queue jobs — async agent runs
The job persists its result to the cache under synapcores:agent:{jobId} for 1 hour. For custom persistence, pass a [Class::class, 'method'] tuple as resultHandler.
Configuration reference
All keys are documented in config/synapcores.php. The most-used ones:
.env |
Default | Notes |
|---|---|---|
SYNAPCORES_HOST |
localhost |
|
SYNAPCORES_PORT |
28080 |
|
SYNAPCORES_USE_HTTPS |
false |
Set true in prod |
SYNAPCORES_API_KEY |
— | aidb_… Bearer key (recommended) |
SYNAPCORES_USER |
— | For login() flow |
SYNAPCORES_PASSWORD |
— | For login() flow |
SYNAPCORES_DATABASE |
— | Sets X-Database header |
SYNAPCORES_TENANT |
— | Sets X-Tenant header |
SYNAPCORES_TIMEOUT |
30.0 |
seconds |
SYNAPCORES_QUEUE_CONNECTION |
default | Queue connection for the agent job |
Engine compatibility
Tested live against SynapCores AIDB v1.7.0.2.1-ce (current :latest,
image ghcr.io/synapcores/community:latest). Full integration suite passes
through the facade + service container against a real engine. See
synapcores-sdks/php/PHP_SDK_PLAN.md in the SDK monorepo for the validation
matrix.
License
MIT — see LICENSE.
All versions of laravel with dependencies
synapcores/sdk Version ^1.0
illuminate/support Version ^10.0 || ^11.0 || ^12.0
illuminate/console Version ^10.0 || ^11.0 || ^12.0
illuminate/queue Version ^10.0 || ^11.0 || ^12.0
illuminate/database Version ^10.0 || ^11.0 || ^12.0