rector-src
Development repository for Rector (by rectorphp)
Laravel
The Laravel Framework. (by laravel)
| rector-src | Laravel | |
|---|---|---|
| 2 | 241 | |
| 128 | 34,385 | |
| 5.5% | 0.5% | |
| 9.9 | 10.0 | |
| 7 days ago | about 22 hours 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.
rector-src
Posts with mentions or reviews of rector-src. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2024-11-14.
- Upcoming Hardening in PHP
Like everything... It depends.
Just use rector
https://github.com/rectorphp/rector
- Improved RectorPHP memory managment
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.
- Battling Laravel's Sneaky DELETEs: How I Got ORDER BY and LIMIT to Play Nice with Joins
I fired up a PR #57138 overriding compileDeleteWithJoins in MySqlGrammar. Now? Laravel spits out the full SQL-JOINs, ORDER BY, LIMIT and all. Let the database (MySQL, MariaDB, or even Vitess) decide if it's happy. On vanilla MySQL? You'll get a crisp QueryException. Check mysql docs for more info (Mysql: Multi-Table Deletes). On PlanetScale or Vitess? It just works, thanks to their query-rewriting magic.
- 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.
What are some alternatives?
When comparing rector-src and Laravel you can also consider the following projects:
polyfill-php84 - Symfony polyfill backporting some PHP 8.4+ features to lower PHP versions
FrameworkBenchmarks - Source for the TechEmpower Framework Benchmarks project
php-tensorflow - PHP TensorFlow Binding
Brick\Money - A money and currency library for PHP
web-pecl - The PECL website
octane - Supercharge your Laravel application's performance.