You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Garrett W edited this page Jan 21, 2022
·
5 revisions
In my efforts to write a new DIC, it seemed prudent to use Dice as a starting point as I have contributed to it previously and understand it well. However, there are a lot of other DIC libraries out there, and they often vary quite a lot in how they work. This is probably a large part of why PSR-11 only specifies two methods that all DICs should be able to agree on.
I intend to use this space to document my research into the paradigms used by other PHP DICs I can find, which will inform my further development of this library. Under each heading I will list the principles underpinning each library and a bit about how it accomplishes them -- along with any opinions I may have about it.
One resource I've used in compiling this list of libraries is kocsismate's benchmark. However I am only including libraries that are already somewhat close to doing things the way I prefer. This is why I have excluded Pimple, ChubbyPHP, and Disco.