A Year With Symfony by Matthias Noback

A great book on the Symfony2 framework and a must-read for every PHP developer

Posted on December 20, 2013

WARNING: Please note that this article was published a long time ago. The information contained might be outdated.

A Year With Symfony is a great book written by Matthias Noback on... well... the Symfony2 framework. Actually that's only half true. The book is full of "best practices" applicable to all kinds of projects and frameworks.

Matthias starts by describing how a basic request is handled by Symfony. From the Kernel to the response, everything is described in a detailed and clear way. Then patterns of dependency injection get on stage. Knowing how to create services and how to manage their dependency will make you love this part even if you are not developing with Symfony2. Matthias continues showing how a project should be structured. Also this part is focalized on Symfony2 but you'll be able to apply this knowledge to anything. Then the focus turns on configuration and security. The security part is very detailed and it should be "studied" more than once. The last part is titled "Being a Symfony developer" but it makes you understand how important it is to know how a framework (any framework you are using) works so that the code you're writing can be used by others and adapted to different projects.

Personally, I've chosen to buy the book because I had some trouble understanding and memorizing some Symfony2 stuff and I can assure you it really helped me.

You can buy Year With Symfony in digital via Leanpub or you can get a printed copy via Lulu. I also recommend to subscribe to Matthias Noback's blog on Symfony.