Weave 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
Simple Pdo Query Builder

Simple Pdo Query Builder Laravel Package

megawilddaddy/simple-pdo-query-builder

A lightweight, simple PDO query builder for PHP that lets you construct and execute SQL queries through a clean, chainable API. Great for small projects that need straightforward database access without the overhead of a full ORM.

View on GitHub
Deep Wiki
Context7

Simple PDO Query Builder. Useful to generate low level queries with ease.

Frequently asked questions about Simple Pdo Query Builder
Is megawilddaddy/simple-pdo-query-builder a Laravel package?
No. megawilddaddy/simple-pdo-query-builder is a standalone PDO wrapper for PHP, not a Laravel package: it ships no service provider, facade, config file, or Illuminate integration. It sits beside Laravel rather than inside its container. For a Laravel app, use Illuminate\Database's query builder or Eloquent instead.
How do I install megawilddaddy/simple-pdo-query-builder with Composer?
Install it with composer require megawilddaddy/simple-pdo-query-builder. It is MIT-licensed, has no dependents, and likely has zero transitive dependencies. There is no Laravel auto-discovery, so you must instantiate and wire it yourself. Because the last release was 2022-01-03, run a smoke test on your PHP and Laravel CI matrix before adopting it.
Does simple-pdo-query-builder protect against SQL injection?
The package claims to use prepared statements with bound parameters, which is the right foundation for SQL injection protection. However, a simple query builder can still interpolate identifiers, ORDER BY fragments, or IN () lists, so verify every value path goes through PDO::prepare and bindValue. Ask for a code walkthrough and written confirmation that no user input is concatenated into SQL. This single fact should dominate your go/no-go decision.
Can I use simple-pdo-query-builder with Laravel and Eloquent?
It is not integrated with Laravel or Eloquent; there is no service provider, facade, or container awareness. You could pass DB::connection()->getPdo() into it, but that creates a second database access path with different transaction, logging, and connection-count semantics. Prefer DB::select(), DB::statement(), or Laravel's query builder for Laravel code. Its only defensible niche is shared low-level data access in non-Laravel PHP code such as legacy scripts, CLI tools, or small services.
What Laravel versions does simple-pdo-query-builder support?
There is no Laravel-specific version support because the package has no Laravel integration or Illuminate constraints. Laravel compatibility therefore depends on its PHP constraint and your runtime, not on a Laravel version matrix. Check composer.json and test on your current Laravel CI matrix. A 2022-era release makes untested PHP 8.2, 8.3, and 8.4 behavior a plausible risk.
What PHP versions does simple-pdo-query-builder support?
The context does not state the exact composer.json PHP constraint, so inspect it before adopting. The last release was 2022-01-03, and there is no CI badge or version matrix evidence. PHP 8.2, 8.3, and 8.4 deprecations such as dynamic properties and implicit nullable types are plausible for a hobby project of that age. Run a smoke test on your exact PHP runtime and framework matrix.
Is megawilddaddy/simple-pdo-query-builder maintained?
Treat it as a personal utility project, not a maintained library. It has 0 stars, 0 dependents, and a last release of 2022-01-03, with no evidence of release cadence, issue triage, or a security disclosure channel. A single unknown maintainer means there is no guarantee of a patch if a future PHP minor breaks it. Abandonment is the default assumption, not the tail risk.
What are the alternatives to simple-pdo-query-builder in Laravel?
For Laravel, the natural alternatives are Laravel's DB query builder, Eloquent, and DB::select() or DB::statement(). For standalone PHP, consider raw PDO, Doctrine DBAL, Aura.Sql, or Laminas Db, depending on whether you need schema management, logging, or a larger ecosystem. The real comparison is capability: if you cannot name a gap that DB::select() or the Laravel query builder does not fill, the answer is none. Choose a standalone builder only for non-Laravel code where illuminate/database is considered overweight.
How do I configure a PDO connection and transactions with simple-pdo-query-builder?
The package has no config file or Laravel configuration integration; you supply a PDO handle configured with a DSN, credentials, and PDO::ATTR_ERRMODE. In Laravel, deriving that PDO from DB::connection()->getPdo() conflicts with the framework's connection manager and transaction helpers. Verify nested transactions and savepoints, whether PDOException is swallowed or rethrown, and whether any static or singleton connection state exists. If you adopt it, wrap it behind a single internal repository or adapter from day one to contain exit cost.
What should I verify before using simple-pdo-query-builder in a Laravel production app?
Before production, test bound parameters end to end, named versus positional parameters, IN () expansion, identifier quoting, ORDER BY handling, nested transactions, savepoints, error mode, and PDOException behavior. Run it on your PHP 8.2+ and Laravel CI matrix and check for global or singleton state that could conflict with Laravel's connection manager. It makes sense only for a spike or prototype, or for non-Laravel legacy code where pull-in of illuminate/database is too heavy. For a standard Laravel app, adopt Laravel's native query builder instead.
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.
dbravoan/dbcms-admin-theme-dbcms
dbravoan/dbcms-theme-db-cyber
dbravoan/dbcms-blocks-basic
dbravoan/dbcms-module-content-audit
dbravoan/dbcms-module-ai-assistant
paygate-to/paygate-php
padosoft/askmydocs-connector-base
defstudio/supercharged-carbon
bernskioldmedia/laravel-matomo
bernskioldmedia/laravel-harvest
bernskiold/laravel-data-scrubber
bernskiold/laravel-currency-converter
bernskiold/laravel-campaign-monitor
bernskioldmedia/laravel-autotranslate
siberfx/telegram-bot
roy-sandip/laravel-view-extended
gregsphotography/site-builder-core
roy-sandip/laravel-view
anodyne/blade-fluentui-icons
webx-ui/module-catalog-collections