An easy to use dependency injection library
cgTag DI is the dependency injector for PHP used to develop the cgTag.com website and cron services. It allows me to design PHP classes without concerns of tight coupling between class usage and class implementation. It uses a fluid interface for easier usage and supports automatic injection via reflection.
- PHP 7.1 or higher
Here's some basic concepts to get you started. This DI library works by associating a string
(the symbol) to another variable (the dependency). This
association is called the binding. There are different types of bindings such as; constants, singletons, lazy loading and reflection.
MIT License
Refer to LICENSE.txt for detailed information.