This is a past event. Please join us for Web Summer Camp this year.

Loose coupling in practice

About

Practices like DDD are becoming so popular in the PHP world that we tend to forget about the most basic forces in object oriented design - coupling and cohesion. This tutorial will remind you how important loose coupling is, what are the risks carried by tightly coupled software, and how to write loosely coupled code in the context of Symfony framework.

Setting up developer environment 

You can follow the workshop better with the virtual appliance configuration used at the event. Check out the main repo and follow the instructions. In a nutshell, you should be able to create the Vagrant box with:

$ git clone https://github.com/netgen/summercamp-2015.git
$ cd summercamp-2015
$ git submodule init
$ git submodule update
$ vagrant up --no-provision

Then add all domains in the hosts as explained in the README.

To prepare this workshop, you should then:

$ vagrant ssh
(vagrant)$ cd /var/www/summercamp/
(vagrant)$ ./run.sh loose

You should have the workshop accessible in your browser at http://loose.phpsc/. If you have problems, check the FAQ. If you still have problems, you can fall back to using only workshop repo listed here.

Video - part 1

Video - part 2