Download the PHP package vuthaihoc/laravel-matrixone without Composer
On this page you can find all versions of the php package vuthaihoc/laravel-matrixone. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download vuthaihoc/laravel-matrixone
More information about vuthaihoc/laravel-matrixone
Files in vuthaihoc/laravel-matrixone
Package laravel-matrixone
Short Description A MatrixOne database driver for Laravel: Eloquent, Query Builder, Schema Builder and migrations on top of the MySQL protocol
License MIT
Homepage https://github.com/vuthaihoc/laravel-matrixone
Informations about the package laravel-matrixone
Laravel MatrixOne
A MatrixOne database driver for Laravel. Use MatrixOne as a drop-in Laravel database: Eloquent, Query Builder, Schema Builder, migrations, transactions and Laravel's own testing traits — plus vector search.
Features
matrixonedriver built on Laravel's MySQL stack — read/write splitting, reconnects and lazy connections work like a built-in driver- Eloquent & Query Builder — relationships, eager loading, soft deletes, upserts, JSON columns, full-text search, pagination
- Schema Builder & migrations —
migrate,migrate:fresh,db:wipe,db:showand schema introspection adapted to MatrixOne's catalog - Cache, queue and session — Laravel's
databasecache, lock, queue (batches, failed jobs) and session drivers work - Real transactions —
RefreshDatabase,DatabaseTransactionsandDatabaseTruncationwork unchanged - Vector search —
vecf32/vecf64columns, IVF-Flat and HNSW indexes, anAsVectorcast and nearest-neighbour queries - MatrixOne-aware — works around MatrixOne quirks and fails clearly on unsupported features
- PHP 8.2+, Laravel 12 and 13, MatrixOne 4.2+
Installation
Add a connection to config/database.php:
Set DB_CONNECTION=matrixone to make it the default connection. See Installation for every option.
Running MatrixOne
Ready-to-use Docker setups live in docker/:
Connect on 127.0.0.1:6001 as root / 111. See MatrixOne documentation.
Quick start
AI assistants (Laravel Boost)
The package ships Laravel Boost resources, picked up automatically when you run php artisan boost:install (or boost:update):
- a guideline (
resources/boost/guidelines/core.blade.php) with the rules an AI agent must follow on MatrixOne, such as no FULLTEXT index on a table with foreign keys, case-sensitive=and no JSON defaults; - a
matrixone-developmentskill (resources/boost/skills/matrixone-development/SKILL.md) covering schema design, queries, full-text, vectors, Scout, session variables and known server bugs.
See AI Assistants for installation, updates, customization and use without Boost.
Documentation
| Page | Content |
|---|---|
| Installation | Requirements and configuration |
| Docker | Standalone and S3-backed MatrixOne servers |
| Query Builder | Behaviour differences, JSON, full-text and vector queries |
| Eloquent | Models, the AsVector cast, transactions |
| Full-text Search | Parsers, relevance, session variables, FULLTEXT2 |
| Storage and Flushing | Flushing tables to object storage (S3) on a schedule, checkpoints |
| Monitoring | Statement history, slow queries, execution plans, table statistics |
| Analytics | Window functions, time windows, sampling, snapshots, time travel, CLUSTER BY |
| Integrations | Laravel Scout (in-table and separate index), Pulse and Telescope |
| Schema | Column types, indexes, vector indexes, introspection |
| Testing | Laravel testing traits on MatrixOne |
| AI Assistants | Laravel Boost guideline and matrixone-development skill |
| Compatibility | Every MatrixOne difference the driver handles or rejects |
| Companion Packages | laravel-db-portable and the CockroachDB driver |
Testing
See Testing for every suite.
TODO
Towards full parity with Laravel's MySQL and PostgreSQL drivers:
- [x] Case-insensitive string equality helpers (MatrixOne ignores
_cicollations for=and unique indexes) - [x]
php artisan dbsupport for thematrixonedriver - [ ]
schema:dumpthrough MatrixOne'smo-dump - [x] Verified reconnects after lost connections and server restarts
- [x] Tests for UUID/ULID keys, time zones and microsecond timestamps
- [x] Verified integration with Scout's database engine, Pulse and Telescope
- [x]
matrixone-indexScout engine: MatrixOne as a separate search index for models in any database - [x] Snapshot / time-travel helpers
- [x] Time windows, sampling and
CLUSTER BY - [x] Slow query and statement history helpers (
statementLog(),matrixone:slow-queries,tableStats()) - [ ] Hybrid full-text + vector search helper
- [ ] Bulk loading with
LOAD DATA - [ ] Compatibility matrix across MatrixOne 4.2.x releases
- [x] Release
v1.0.0on Packagist and publish the docs site - [ ] Benchmarks against MySQL
Related packages
- vuthaihoc/laravel-db-portable: query builder macros that compile for MatrixOne, MySQL, PostgreSQL/CockroachDB and SQLite, and
scan/audit/copycommands for moving an application to MatrixOne. - vuthaihoc/cockroachdb-laravel: the CockroachDB driver used on the other side of such a move.
Credits
Based on laravel-clickhouse.
License
MIT. See LICENSE.
All versions of laravel-matrixone with dependencies
ext-pdo Version *
ext-pdo_mysql Version *
illuminate/console Version ^12.0 || ^13.0
illuminate/database Version ^12.0 || ^13.0
illuminate/support Version ^12.0 || ^13.0
vuthaihoc/laravel-db-portable Version ^0.7