Eloquent
[READ ONLY] Subtree split of the Illuminate Database component (see laravel/framework) (by illuminate)
Laravel
The Laravel Framework. (by laravel)
Eloquent | Laravel | |
---|---|---|
9 | 240 | |
2,738 | 33,997 | |
0.3% | 0.7% | |
9.6 | 9.9 | |
4 days ago | 7 days ago | |
PHP | PHP | |
MIT License | MIT License |
The number of mentions indicates the total number of mentions that we've tracked plus the number of user suggested alternatives.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
Eloquent
Posts with mentions or reviews of Eloquent.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2025-03-30.
-
Improving Eloquent for real: test setup
I'm not going to pretend that my improvements will land in the official Laravel code any time soon, or ever. So I am going to use the illuminate/database repository. Because it is a sub module of the laravel/framework this has a few problems. The biggest problem is that there are no tests.
-
Recommend a pre-written framework for basic, local, offline xampp-based software?
Eloquent (docs for query builder and ORM) or Doctrine (docs for (ddbal query builder) and ORM - note, these are separate libraries, but the ORM includes dbal).
- Suggestions for MySQL wrapper or helper or interface library for PHP?
- Laravel mixins
-
laravel migration as separate package
You can use the database component: https://github.com/illuminate/database
-
“The most scarily/stunningly impressive linguistic feat I’ve ever seen“
A similar example: in Laravel's codebase, every line in a doc block is 3 characters shorter than the line above it.
Example: https://github.com/illuminate/database/blob/master/Eloquent/...
-
[Part 3/100] Eloquent sucks
View on GitHub
- [Junior Developer] Can someone code-review my project?
-
IMHO: JSX > PHP Templating
In this case, getting started might be rough unless you know Laravel well, because there's not even a readme there (in contrast to e.g. https://github.com/illuminate/database#illuminate-database which has a clear guide how to use it)
Laravel
Posts with mentions or reviews of Laravel.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2025-05-22.
-
Check Every Key Exists in a PHP Array with Arr::hasAll()
The method was contributed by @devajmeireles in PR #55815.
-
Composition vs. Inheritance in PHP Frameworks
In Laravel, inheritance plays a key role in the framework’s core architecture. A clear example is the Application class, which extends the Container class. This relationship allows Laravel’s application instance to inherit all the powerful features of the service container—such as dependency resolution and binding—while adding its own framework-specific logic.
-
PHP Attributes and Metaprogramming
Let’s take a real-life example of attributes. Laravel 11 introduced contextual attributes and for our example we will be using the Config attribute. The #[Config(...)] attribute allows you to annotate a constructor or method parameter, so that Laravel’s service container can resolve and inject the corresponding config value at runtime:
-
Eloquent: is an ORM too restrictive?
For databases that have relations between entities, I would move those to the Builder class, instead of in the model currently. I think the with methods could do the trick with a bit a of modification. And adding a to method for nested inserts.
-
How to Enable Relationship Autoloading in Versions Before v12.8
A few days ago, Litvinchuk added the method withRelationshipAutoloading in PR #53655. As explained in the merge description, it checks the relationships you're calling and applies Auto Eager Loading to them. Of course, this method only exists in v12.8, so I decided to add it to earlier versions in case I work on a project that uses a version before that. 🔥
-
Improving Eloquent for real: test setup
I'm not going to pretend that my improvements will land in the official Laravel code any time soon, or ever. So I am going to use the illuminate/database repository. Because it is a sub module of the laravel/framework this has a few problems. The biggest problem is that there are no tests.
-
Move from DDD Laravel make command to Codestarter (fase 2)
Looking at artisan and the Symfony maker bundle, I saw two different ways to build content. Artisan works with stub files which are text files with a Twig syntax for the variables. And the maker bundle works with php templates.
-
Preventing Destructive Commands from Running in Laravel
In PR #51376 to Laravel in May 2024, Jason McCreary and Joel Clermont added the Illuminate\Console\Prohibitable trait to the framework, which was then included in the Laravel 11.9 release.
-
Laravel Under The Hood - The Strategy Pattern
When you call the driver method on the facade, it's proxied to a manager, depending on which facade you're using. In the caching scenario, it's directed to the CacheManager. Let's inspect its code.
-
🚨High-Severity Laravel Vulnerability (CVE-2024-52301) - Awareness and Action Required
For more information on this vulnerability, check out the official Laravel security advisory: GHSA-gv7v-rgg6-548h
What are some alternatives?
When comparing Eloquent and Laravel you can also consider the following projects:
Doctrine - Doctrine Object Relational Mapper (ORM)
octane - Supercharge your Laravel application's performance.
Propel - Propel2 is an open-source high-performance Object-Relational Mapping (ORM) for modern PHP
FrameworkBenchmarks - Source for the TechEmpower Framework Benchmarks project
RedBean - ORM layer that creates models, config and database on the fly
Brick\Money - A money and currency library for PHP