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

Sql Parser Laravel Package

iamcal/sql-parser

Fast PHP parser for MySQL 5.7 CREATE TABLE statements. Converts schema SQL into an easy-to-use array describing tables, fields, indexes, and options. Designed to deconstruct valid DDL (not validate it); install via Composer.

View on GitHub
Deep Wiki
Context7

Product Decisions This Supports

  • Build vs Buy: Eliminates the need to build and maintain a custom MySQL schema parser, saving 2-4+ weeks of engineering effort. Leverages a battle-tested solution proven at Flickr and Tiny Speck for production schema diffing, avoiding reinvention of complex parsing logic.
  • Roadmap Alignment: Enables automated schema validation in CI/CD pipelines (e.g., comparing dev/staging vs production schemas pre-deployment), reducing human error in database migrations. Supports feature development requiring schema introspection (e.g., dynamic migration tools, schema-aware application features).
  • Use Case Focus: Ideal for teams needing lightweight, targeted parsing of CREATE TABLE statements for schema comparison, migration scripting, or database version control—without the overhead of full ORM dependencies. Fits scenarios like validating schema changes in pull requests or generating migration SQL from schema diffs.

When to Consider This Package

  • Adopt When: Working exclusively with MySQL 5.7 schemas in PHP projects, requiring fast parsing (140ms for 88K SQL files), and needing only core table/index/field metadata. Suitable for CI/CD schema validation, migration tooling, or ORM enhancements where performance and simplicity are critical, and unsupported features (e.g., partitions, MySQL 8.0 syntax) are irrelevant.
  • Look Elsewhere When: Using MySQL 8.0+ features (e.g., partitions, FLOAT(bits)), PostgreSQL, or non-MySQL databases. Avoid if community support is essential (0 dependents, minimal recent activity). For comprehensive schema management (e.g., full DDL parsing, migrations), use Laravel’s built-in tools or Doctrine DBAL instead.

How to Pitch It (Stakeholders)

For executives: "This open-source package automates critical database safety checks by parsing MySQL schemas in milliseconds—used by Flickr and Tiny Speck to prevent deployment errors. It eliminates manual schema comparisons, reducing migration risks and saving engineering time with zero licensing costs."
For engineering: "It’s a battle-tested, high-performance MySQL 5.7 parser with clean API for extracting table structures. Integrates in minutes via Composer, handles edge cases like indexes and engine settings, and avoids the 60-second parsing bottlenecks of alternatives. Perfect for CI schema validation or migration tooling where speed and simplicity matter."

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