A full database toolkit for PHP with expressive query builder, Eloquent ORM, and schema builder, extracted from Laravel.
Illuminate Database is a standalone database toolkit for PHP that provides an expressive query builder, Eloquent ORM, and schema builder. It solves the problem of database interaction complexity by offering a fluent, intuitive API for working with multiple database systems. Originally extracted from the Laravel framework, it brings Laravel's database features to any PHP application.
PHP developers building applications that need robust database interaction outside of the Laravel framework, or those who want to use Laravel's database components in other PHP projects.
Developers choose Illuminate Database for its elegant, expressive syntax that reduces boilerplate code, its proven reliability as part of Laravel, and its ability to bring Laravel's powerful database tools to any PHP project without the full framework overhead.
[READ ONLY] Subtree split of the Illuminate Database component (see laravel/framework)
Open-Awesome is built by the community, for the community. Submit a project, suggest an awesome list, or help improve the catalog on GitHub.
Offers an expressive, chainable interface for building queries, as shown in the example `Capsule::table('users')->where('votes', '>', 100)->get();`, reducing SQL boilerplate and improving code readability.
Provides ActiveRecord ORM with relationships, mutators, and events, usable outside Laravel via the Capsule manager, enhancing developer productivity with familiar Laravel syntax.
Allows programmatic table creation and modifications for MySQL, Postgres, SQL Server, and SQLite through a unified API, enabling database-agnostic application development.
Capsule manager simplifies setup with static access, as demonstrated in the configuration code, making it straightforward to adopt in any PHP project without full framework overhead.
Relies on Laravel framework documentation for guidance, which may not fully address standalone usage nuances, forcing developers to extrapolate or seek community help.
Requires installing the illuminate/events package to use Eloquent observers, adding extra components and complexity to the project setup, as noted in the README.
Setting up Capsule with optional event dispatcher and global access can be overly verbose for simple applications that only need basic database queries, increasing initial setup time.