dreamfactory/df-sqldb
DreamFactory SQL DB service for exposing MySQL, PostgreSQL, SQL Server, Oracle, and other SQL databases as REST APIs, with schema discovery, CRUD operations, stored procedures, and role-based access control.
Architecture fit. dreamfactory/df-sqldb is not a general-purpose library — it is a service plugin for the DreamFactory platform, which is itself a Laravel application. It ships the SQL-database service type(s) that let DreamFactory expose MySQL, PostgreSQL, SQL Server, Oracle, and SQLite schemas as governed REST endpoints (auto-generated CRUD, schema introspection, stored procedures, filtering, RBAC, API keys, rate limits). Architecturally it sits between df-core (the platform kernel: service contracts, routing, auth, caching) and the underlying PDO/driver layer. That means it is only meaningful in a deployment where DreamFactory core is present; it has no standalone API surface of its own.
Integration feasibility. Adopt the platform, not the package. Realistic paths:
Direct composer require dreamfactory/df-sqldb into an unrelated Laravel app is a non-starter: the service provider expects core service contracts, config namespaces, and the platform's auth/role model.
Technical risk. Rated low-score (18.4) with 2 stars and 0 dependents — that is the key signal. It reflects that this repo is an internal component of a commercial OSS platform, not an ecosystem package; popularity metrics are the wrong lens, and the platform's health is the right one. Concrete risks:
df-core and Laravel/PHP version bands; a core upgrade can force a plugin upgrade with little notice.oci8/PDO_OCI) and SQL Server (pdo_sqlsrv) require non-default PHP extensions and OS-level client libraries; container builds are the usual failure point.Key questions.
df-core?Stack fit. Good fit for PHP/Laravel shops already operating LAMP/LEMP or containerized PHP-FPM workloads, and for organizations that want API governance (authn/z, keys, throttling, audit) in front of databases without writing a service layer. Poor fit for polyglot or JVM/.NET-centric estates, for teams wanting a thin typed SDK, or for anyone whose need is <10 endpoints — a hand-rolled Laravel resource controller is cheaper.
Migration path. Treat this as a platform adoption, sequenced as:
Compatibility. Pin the platform version and lock the component to it; do not float. Build a container image that bakes in the required PDO drivers and client libraries per target engine — do not rely on host PHP extensions. Validate PHP/Laravel versions against the current composer.json constraints before committing.
Sequencing. Do not begin with this package. Start with DreamFactory core deployment and configuration ergonomics; DB services are then configuration, not development. Defer any forking/customization until a concrete limitation is proven in the pilot — the maintenance cost of a fork is high relative to the low upstream activity.
Maintenance. You own a stateful-ish PHP application: base image updates, PHP minor upgrades, driver rebuilds, and platform version bumps. The plugin itself is low-churn; the platform is the maintenance treadmill. Budget a recurring small fraction of an FTE, spiking at upgrade windows. Pin versions, keep a staging instance, and read upstream changelogs before upgrading — the low star count means you will not find community write-ups when a breaking change lands.
Support. Two tiers: (a) upstream vendor — confirm whether commercial support, SLAs, and security advisories are available and priced; (b) community — effectively none for this repo in isolation (0 dependents, 2 stars). Internal runbooks, config-as-code for services/roles, and a named owner are mandatory. Do not assume Stack Overflow coverage.
Scaling. The API tier is stateless and scales horizontally behind a load balancer; the constraints are database-side — connection count per PHP worker against DB max_connections, and the cost of schema introspection/caching on cold start. Enable and tune metadata/schema caching. Watch out for large result sets: enforce pagination and field selection at the platform layer, not in client goodwill. For LLM consumers, latency and token-cost of oversized JSON payloads is a real scaling concern.
Failure modes.
Ramp-up. Two distinct skill sets: platform administration (service definitions, roles, API keys, caching) is learnable in days for anyone with API-gateway experience; PHP/Laravel depth is needed only for customization, driver work, or debugging. Expect 1–2 weeks for a competent engineer to reach productive pilot velocity, plus a security review of the default permission posture before any production data is connected. Document tribal knowledge early — the external knowledge base is thin.
How can I help you explore Laravel packages today?