FireDI Release 2.1.0

FireDI 2.1.0 was just released. Here’s what’s new: Implemented PSR-11 Container Interface. Here’s what that means. FireDI is compliant with an agreed upon standard for how you should implement a container of objects. Updated code base to follow PSR-2 Coding Standards. In a previous work situation, we followed Zend 1.* standards for coding. I adopted […]

FireDI – Advanced Use Cases

FireDI can do a lot more than just resolve your dependencies for you. This tutorial, we are going to cover other scenarios where FireDI can become helpful. For Mocking In Test Cases When working on testing your code, you will find that from time to time, you will need to mock a dependency for the […]

FireDI – API Documentation

UA1Labs\Fire\Di get($classname) Attempts to retrieve an instance object of the given classname by resolving its dependencies and creating an instance of the object. @param $classname string The class you would like to instantiate @throws \UA1Labs\Fire\Di\NotFoundException If the class cannot be resolved @return object The instantiated object based on the $classname set($classname, $entry) Puts an object into the object cache that is used to resolve dependencies. @param string $classname The classname the instance object should resolve for @param object|callable $entry The object or callable you’d like to place in the object cache @return void has($classname) Determines if the class can be resolved. @param string $classname The classname of the instance you would like to resolve @return boolean getWith($classname, $dependencies) […]

FireDI – Getting Started

In this tutorial, you will learn how to get started with FireDI! A quick recap, FireDI is a PHP dependency injection library that makes it simple to help you manage dependencies within your classes. If you haven’t quite decided whether you should be using FireDI or not, checkout our page about When Should I Use […]

FireDI – When Should I Use Dependency Injection?

UA1 Labs has been at this for a while and has made many wonder tools for developers to help keep them focused on the development they are doing. When we interact with other developers and talk with them about dependency injection, there is a bit of confusion on when they should be using it. This […]

FireDI Migration Started

As announced earlier this week, Ulfberht (a dependency injection container written for PHP) has started to migrate to UA1 Labs. So far, we have moved the repo from my personal GitHub account to UA1 Labs and started the refactor/rebranding we are doing to fit it into our vision for our Fire suite of development tools. […]

Moving Ulfberht to UA1 Labs and Renaming It To FireDI

Originally started as a learning project back in 2013, I was interested in creating a Dependency Injection Container for PHP. At the time, AngularJS was king and had a really awesome way of resolving dependencies. Originally this project had been named “z20”. I have since, renamed the project and refactored it several times. It has […]