Weave Code
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

Singlestoredb Laravel Laravel Package

singlestoredb/singlestoredb-laravel

Official SingleStoreDB driver for Laravel. Wraps Laravel’s MySQL support to improve compatibility and add SingleStore features: Eloquent/migration extensions (columnstore/rowstore, shard/sort keys, etc.), JSON column support, query fixes, and tested across PHP/Laravel versions.

View on GitHub
Deep Wiki
Context7

Product Decisions This Supports

  • Hybrid Transactional/Analytical Workloads: Enables Laravel applications to leverage SingleStoreDB’s Universal Storage (columnstore + rowstore) for unified OLTP/OLAP workloads, reducing the need for separate databases (e.g., MySQL + ClickHouse). Ideal for apps with mixed read/write patterns (e.g., e-commerce, SaaS platforms).
  • Performance Optimization: Supports persistent PDO connections (critical for SingleStore’s connection-heavy workloads) and shard/sort keys to optimize query performance at scale. Mitigates "build vs. buy" tradeoffs by providing native Laravel integration for SingleStore’s distributed architecture.
  • Schema Flexibility: Unlocks SingleStore-specific features (e.g., sparse columns, reference tables, global temporary tables) via Laravel migrations, enabling teams to prototype and iterate without rewriting schema logic.
  • Cost Efficiency: Reduces infrastructure complexity by consolidating databases (e.g., replacing Redis + MySQL for caching/analytics) while maintaining Laravel’s familiar Eloquent/Query Builder syntax.
  • Roadmap Alignment: Supports future-proofing for:
    • Real-time analytics (e.g., dashboards, ML feature stores).
    • Multi-region deployments (via SingleStore’s global tables).
    • Serverless/Lambda integrations (via persistent connections).

When to Consider This Package

  • Avoid if:
    • Your app is purely OLTP (high-frequency writes, low analytics) → Stick with MySQL or PostgreSQL.
    • You need PostgreSQL-specific features (e.g., JSONB operators, advanced geospatial) → Use pgsql driver.
    • Your team lacks SingleStore expertise → Evaluate managed services (e.g., Aurora, BigQuery) with simpler Laravel drivers.
    • You’re constrained by PHP < 8.1 and cannot use attribute casting → Risk of type mismatches in queries.
  • Consider if:
    • You’re building a real-time data platform (e.g., IoT, ad tech) where latency and analytics must coexist.
    • Your current Laravel + MySQL setup is bottlenecked by reads (e.g., >10K QPS) or requires complex joins.
    • You’re migrating from separate databases (e.g., MySQL + ClickHouse) and want to simplify ops.
    • Your app uses Laravel Queues and needs to offload failed jobs to SingleStore (reducing Redis dependency).

How to Pitch It (Stakeholders)

For Executives:

*"This package lets us run Laravel on SingleStoreDB—combining the familiarity of MySQL with SingleStore’s speed for both transactions and analytics. For example:

  • Cut infrastructure costs by replacing 3 databases (MySQL + Redis + ClickHouse) with one.
  • Scale real-time features (e.g., personalized dashboards) without adding latency.
  • Future-proof the stack for AI/ML workloads by leveraging SingleStore’s vector search and GPU acceleration. Risk: Minimal—it’s a drop-in replacement for MySQL, with 234+ GitHub stars and SingleStore’s backing. We’d pilot it on [X feature] to validate performance gains before full migration."*

For Engineering:

*"This driver extends Laravel’s MySQL support to SingleStoreDB, unlocking:

  1. Native schema features: Columnstore tables (default), shard/sort keys, sparse columns—all via Laravel migrations.
  2. Performance optimizations: Persistent PDO connections (critical for SingleStore) and query fixes (e.g., ORDER BY in DELETE).
  3. Seamless integration: Works with Eloquent, Queues, and existing Laravel code. Example:
    Schema::create('users', function (Blueprint $table) {
        $table->id();
        $table->string('email')->sortKey(); // SingleStore-specific
        $table->json('preferences'); // Native JSON support
    });
    

Tradeoffs:

  • Requires PHP 8.1+ (or manual casting for older versions).
  • SSL setup for managed SingleStore (but automated via PDO::MYSQL_ATTR_SSL_CA). Next steps: Benchmark against current MySQL setup for [critical query X] and validate migration scripts."*
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.
davejamesmiller/laravel-breadcrumbs
artisanry/parsedown
christhompsontldr/phpsdk
enqueue/dsn
bunny/bunny
enqueue/test
enqueue/null
enqueue/amqp-tools
milesj/emojibase
bower-asset/punycode
bower-asset/inputmask
bower-asset/jquery
bower-asset/yii2-pjax
laravel/nova
spatie/laravel-mailcoach
spatie/laravel-superseeder
laravel/liferaft
nst/json-test-suite
danielmiessler/sec-lists
jackalope/jackalope-transport