Now that you know more about TDD and BDD, it is time to explain a few tools that you can use in your development workflow. There are a lot of tools available, but we will only explain the most used ones.
Composer is a PHP tool used to manage software dependencies. You only need to declare the libraries required by your project and Composer will manage them, installing and updating them when necessary. This tool has only a few requirements--if you have PHP 5.3.2+, you are ready to go. In the case of a missing requirement, Composer will warn you.
You can install this dependency manager on your development machine, but since we are using Docker, we will install it directly on our PHP-FPM (FastCGI Process Manager) containers. The installation of Composer in Docker is very easy; you only need to add the following rule to the Dockerfile:
RUN curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/bin/ --filename=composer