Weave Code
Weaver
Helps Laravel developers discover, compare, and choose open-source packages. See popularity, security, maintainers, and scores at a glance to make better decisions.
Feedback
Share your thoughts, report bugs, or suggest improvements.
Subject
Message

Laravel Mariadb Vector Laravel Package

devilsberg/laravel-mariadb-vector

MariaDB 11.7+ native vector storage and similarity search for Laravel. Adds a VECTOR column type, binary-safe Eloquent casts, and nearestNeighbors() query macros powered by VEC_DISTANCE functions — essentially pgvector, but for MariaDB.

View on GitHub
Deep Wiki
Context7
1.2.1

Fixed

  • VectorCast::get() misdetected binary vectors whose first byte is 0x5B (ASCII [, ~1 in 256 vectors) as JSON strings, causing an InvalidArgumentException when reading them back from a VECTOR column. Format detection now validates the whole string as JSON before taking the JSON path and falls back to binary unpacking for any string whose length is a multiple of 4 bytes; only values matching neither format throw.
1.2.0

Added

  • Vector index support in Blueprint for MariaDB native vector indexes.
1.1.0

Added

  • nearestNeighbors Eloquent macro for nearest-neighbor queries.

Changed

  • Incorporated MariaDB feedback on the nearestNeighbors macro implementation.

Fixed

  • Badge URLs in the README.
1.0.0

Added

  • Initial release: VectorCast for casting MariaDB VECTOR columns to PHP float arrays.
  • Query builder macros: whereVectorSimilarTo, orderByVectorDistance, selectVectorDistance.
  • COSINE and EUCLIDEAN distance metrics via MariaDB's native VEC_DISTANCE_* functions.
Weaver

How can I help you explore Laravel packages today?

Conversation history is not saved when not logged in.
Prompt
Add packages to context
No packages found.
htinlynn/genius-helper
maco-studios/hephaestus
elmogy/larafast
xeviant/laravel-paystack
gorilladash/laravel-website-sdk
martialbe/flysystem-oss
chondal/3312client
jeroen-g/flickr
opscale-co/nova-genbi
itsjustvita/laravel-retention
tequilarapido/trackit
gregsphotography/site-builder-filament
cabaoctavio/laravel-query-log
gregsphotography/site-builder-components
io-digital/clickatell
snowsoft/laravel-admin
oxygen/auth
relicsoftware/barakah-payment-gateway
tobya/work-with-composer
equipc/laravel-email-validator