bypass-finals
Removes `final` and `readonly` keywords from source code on-the-fly and allows mocking of final methods and classes. It can be used together with any test tool such as PHPUnit or Mockery. (by dg)
ideas
Issues board used for Laravel internals discussions. (by laravel)
bypass-finals | ideas | |
---|---|---|
3 | 8 | |
444 | 928 | |
- | - | |
5.4 | 1.1 | |
5 days ago | almost 3 years ago | |
PHP | ||
GNU General Public License v3.0 or later | - |
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.
bypass-finals
Posts with mentions or reviews of bypass-finals.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2023-07-11.
-
BillaBear - Design Decisions ‐ Not Using Final Classes
I had this issue when working with Dibi as I needed to mock final methods. You can use this https://github.com/dg/bypass-finals package and forget all the debate about finals against non-final.
-
Laravel considered harmful
It definitely is my job. If you feel you should ignore best practices and author's opinion, use something like this: https://github.com/dg/bypass-finals
-
Design Decisions: Why use final classes
Even with the keyword final it's still possible to extend by using the final disable library https://github.com/dg/bypass-finals but the fact you needed to disable it makes it very clear that it's unsupported behaviour.
ideas
Posts with mentions or reviews of ideas.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2023-05-10.
-
Go with PHP
I just don't get why people in php use lazy comparison in php when you know that "0e4"=="0e5" in php.
and yes, Laravel use lazy comparison. And yes at least three bugs where caused by this use.
see: https://github.com/laravel/ideas/issues/698 for why I'm a bit grumpy with php ecosystem
-
Laravel considered harmful
I explained why singleton are not well used. There is plenty of example online. TLDR: Laravel hides a lot of dependencies. You want to use another Container? You cannot. The issue is described here: https://github.com/laravel/ideas/issues/1467.
-
I've made a random serial key generator
By the way Laravel is still PSR-2 and will unlikely adopt PSR-12, while I understand your intentions. I'm on the fence about suggesting Laravel's users to use a coding standard not adopted in the framework.
-
Strict models
That's what they did here before the PR: https://github.com/laravel/ideas/issues/455
- @push from ServiceProvider
-
Simple feature/project upvoting system?
Example: https://github.com/laravel/ideas
What are some alternatives?
When comparing bypass-finals and ideas you can also consider the following projects:
Codeception - Full-stack testing PHP framework
Laravel - The Laravel Framework.
Torch - Examples of using each Illuminate component in non-Laravel applications
Sylius - Open Source eCommerce Framework on Symfony
composer-patches - Simple patches plugin for Composer
phel-lang - Phel is a functional programming language that transpiles to PHP. A Lisp dialect inspired by Clojure and Janet.
parthenon - The Symfony SaaS boilerplate
laravel-strict-coding-standard - PHP_CodeSniffer rules for Laravel to force the "right" design of the app
votey-uppy