// the take
The query builder, Eloquent ORM, and schema/migration toolkit that powers Laravel's database layer, split out so it can be used standalone via the Capsule manager. It's for PHP developers who want an ActiveRecord-style ORM with multi-database support outside of a full Laravel app, or who are reading/vendoring the code that Laravel itself depends on.
The multi-driver abstraction is real, not cosmetic — separate Grammar and Processor classes per database (MySQL, MariaDB, Postgres, SQL Server, SQLite) mean date functions, upserts, and index handling are correctly translated per engine instead of lowest-common-denominator SQL. Eloquent's relationship system is unusually complete: polymorphic relations, has-many-through, pivot models with custom attributes, and inverse relation tracking cover edge cases most lightweight ORMs punt on. Migrations, schema builder, and seeders ship in the same package, so you're not stitching together three libraries to get a working toolkit. Years of production use in Laravel means the edge cases around connection loss, deadlock retries, and transaction nesting are already handled.
It's a read-only subtree split — you can't file a PR or issue here; every real contribution has to go through laravel/framework, which adds friction if you're vendoring this directly. Capsule, the standalone entry point, is clearly a second-class citizen: most Eloquent documentation and Stack Overflow answers assume a full Laravel container, so you'll hit gaps (e.g. event dispatcher wiring) that aren't obvious from this README. Connections are synchronous PDO with no async query support, which matters if you're trying to use this inside a long-running worker (Swoole, RoadRunner) rather than a traditional request-response app. Eloquent's active-record coupling (models know how to query themselves) makes pure unit testing harder than a data-mapper ORM — you're usually reaching for a real or in-memory SQLite connection rather than mocking at the model level.
We read the README, the directory tree and a key source file in November 2026. Nobody pays to be listed. How we judge →