Skip to content
/ php-di Public

The PHP 7 dependency injection container for cgTag

License

Notifications You must be signed in to change notification settings

cgTag/php-di

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

DependencyInjection

License Build Status codecov Total Downloads Latest Stable Version

An easy to use dependency injection library

Background

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.

Requirements

  • PHP 7.1 or higher

Usage

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.

License

MIT License

Refer to LICENSE.txt for detailed information.

Releases

No releases published

Packages

No packages published

Languages