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

Seeds From Sql Laravel Package

christian-schoenefeld/seeds-from-sql

Laravel package demonstrating how to seed a database from a .sql file. Includes an SQLSeeder that imports SQL using DB::unprepared; run via php artisan db:seed --class=SQLSeeder (after migrate) or as part of DatabaseSeeder.

View on GitHub
Deep Wiki
Context7

Product Decisions This Supports

  • Data Migration & ETL Workflows: Enables seamless SQL import capabilities for Laravel applications, reducing reliance on manual scripts or third-party tools for bulk data operations (e.g., seeding, syncing, or legacy system migrations).
  • Developer Productivity: Accelerates onboarding for teams needing to import structured data (e.g., CSV-to-database pipelines, test data generation) without deep SQL expertise.
  • Build vs. Buy: Justifies internal tooling investment if the package replaces custom scripts or SaaS solutions (e.g., AWS Glue, Airbyte) for niche use cases.
  • Roadmap Alignment: Supports initiatives requiring scalable data pipelines (e.g., analytics dashboards, multi-tenant data isolation) by providing a maintainable foundation.

When to Consider This Package

  • Use Case Fit:
    • Importing prepared SQL dumps (e.g., .sql files) into Laravel’s database without transaction overhead (via DB::unprepared).
    • Non-transactional bulk inserts where ACID compliance isn’t critical (e.g., analytics, reporting).
    • Teams already using Laravel’s Eloquent/Query Builder and needing a lightweight SQL import layer.
  • Avoid If:
    • Requiring transactional integrity (use Laravel’s DB::transaction or raw PDO instead).
    • Importing unstructured data (e.g., JSON/XML) or needing schema validation (consider Laravel Excel or custom parsers).
    • Performance-critical environments (benchmark against LOAD DATA INFILE or bulk insert queries).
    • Preferring GUI tools (e.g., phpMyAdmin, Adminer) for ad-hoc imports.

How to Pitch It (Stakeholders)

For Executives: "This package lets us import SQL data into Laravel apps 10x faster than manual scripts, cutting dev time for migrations, analytics, or test data. It’s a lightweight, open-source alternative to paid ETL tools—ideal for projects where we control the data format and don’t need transactions. Early adopters include [Team X], who used it to sync legacy databases in 2 hours instead of 2 days."

For Engineering: *"v1.0.3 adds raw SQL import via DB::unprepared, perfect for:

  • Seeding large datasets (e.g., php artisan db:seed --import=users.sql).
  • Syncing external DBs (e.g., PostgreSQL → MySQL) without ORM overhead.
  • Avoiding transaction locks in read-heavy workflows. Tradeoff: No schema checks or rollback—use cautiously for production. Pair with our existing validation layers."*
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.
daikazu/eloquent-salesforce-objects
unseen-codes/chat
romalytar/yammi-jobs-monitoring-laravel
kisame76/filament-db-table-state
nqxcode/laravel-lucene-search
dpfx/laravel-livewire-wizards
workos/workos-php-laravel
sofa/laravel-global-scope
nawasara/auth-primitives
adhocrat-io/arkhe-main
make-dev/orca-harpoon
itsemon245/lamet
baks-dev/dashboard
amoifr/pickle-panther-bundle
make-dev/orca
dmstr/symfony-system-resources-bundle
dmstr/symfony-job-queue-bundle
dmstr/openapi-json-schema-bundle
dmstr/keycloak-security-bundle
dmstr/doctrine-audit-log-bundle