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

Mysql Laravel Package

react/mysql

Async MySQL client for ReactPHP. Pure PHP implementation of the MySQL protocol with no extensions required. Connect via URI, run queries with promises, stream results, and manage connection lifecycle (ping/quit/close).

View on GitHub
Deep Wiki
Context7

Technical Evaluation

This package is designed for ReactPHP's event-driven architecture, which fundamentally conflicts with Laravel's synchronous request lifecycle. Laravel's ecosystem (Eloquent, Query Builder, middleware, etc.) relies on blocking I/O and PHP-FPM/PHP-CLI execution models, making direct integration with this async MySQL client non-trivial. While the package is well-documented for ReactPHP use cases, its 0 dependents and niche use case (pure ReactPHP applications) indicate low adoption in mainstream PHP ecosystems. Technical risks include: 1) Incompatibility with Laravel's transaction management and connection pooling, 2) Event loop management conflicts (Laravel doesn't expose its event loop), 3) No support for Laravel's database abstraction layer, and 4) High cognitive load for developers unfamiliar with async patterns. Key questions: Can the project transition to a fully async stack (e.g., Swoole instead of ReactPHP)? How will transactions and ORM interactions be handled? Is there a concrete use case requiring async MySQL that can't be solved with Laravel's sync drivers?

Integration Approach

This package has no meaningful stack fit for standard Laravel applications. Laravel's HTTP kernel is synchronous by design, and ReactPHP requires a custom event loop execution model incompatible with PHP-FPM or traditional Laravel deployments. A migration path would require replacing Laravel's entire HTTP layer with a ReactPHP-based server (e.g., using react/http), which would necessitate rewriting all middleware, route handling, and service providers to be async-compatible—effectively abandoning Laravel's core value proposition. Compatibility with Laravel's existing database tools (Eloquent, DB facade) is impossible without complete reimplementation. Sequencing would involve: 1) Building a proof-of-concept outside Laravel using ReactPHP, 2) Only if successful, considering a full-stack rewrite to ReactPHP (not Laravel). For most Laravel projects, this approach is infeasible and counterproductive.

Operational Impact

Maintenance burden would be extremely high due to the package's low adoption (0 dependents) and lack of Laravel-specific tooling. Support would rely solely on community forums and the small ReactPHP ecosystem—no official Laravel support exists for async MySQL clients. Scaling would not benefit from this package in a Laravel context; async I/O only helps when the entire stack is async, which Laravel isn't. Failure modes would be severe: unhandled promise rejections could crash the application, connection leaks might occur due to improper event loop management, and debugging async race conditions would be significantly harder than synchronous errors. Ramp-up time for developers would be substantial, requiring deep expertise in ReactPHP's event-driven patterns and async programming—skills rarely needed in traditional Laravel projects. Overall, operational costs would outweigh any theoretical performance benefits for standard Laravel applications.

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