Master Symfony2 fundamentals

Be trained by SensioLabs experts (2 to 6 day sessions -- French or English).
trainings.sensiolabs.com

Discover the SensioLabs Support

Access to the SensioLabs Competency Center for an exclusive and tailor-made support on Symfony
sensiolabs.com

Add your blog

To submit a RSS feed, you must be connected.
gravatar

Symfony2 Console component, by example

by Loïc Chardonnet – April 9, 2014 00:00

TL;DR: jump to the conclusion. Symfony2 is a set of libraries which help you in your everyday tasks. You can even stack them together and create a framework with it: Symfony standard edition Symfony empty edition Silex Many frameworks already use a lot of components from Symfony2: Laravel Drupal eZ Publish PHPUnit phpBB Composer In this article, we'll see the Console Component, which allows you to build Command Line Interface (CLI) applications. Symfony 2.5 will be released in may 2014, with [...]


Lukas Kahwe Smith

Finally! 1.1.0-RC1

Once we released 1.0, we did not sit idle. Instead we immediately began work on improving the CMF. In fact there was such a continuous stream of good ideas and things that felt like a must have, that we let ourselves slip quite far from our defined release process. Or lets say we had every intention of aliging ourselves with the Symfony2 core release cycle by releasing within 1-2 months of core which would have meant a 1.1 release in January. Instead it tooks us 6 months to get to RC1, which on [...]


Raul Fraile

Symfony2 components overview: ExpressionLanguage

by Raul Fraile – April 7, 2014 12:39

This is the 10th post in our series on Symfony2 components and we will cover the latest component added to Symfony: the ExpressionLanguage component. This component was added in version 2.4 and  provides a way to have dynamic aspects in static configurations. For example, it can be used to evaluate expressions in configuration files, create a DSL ,or build a business rules […] The post Symfony2 components overview: ExpressionLanguage appeared first on ServerGrove.


Thomas Rabaix

What's been keeping us busy, April 2014 Edition

April 6, 2014 23:16

The redesign serie continue, after works on the demo and on the sonata-project.org websites, we are happy to present the new SonataAdminBundle theme.


David Dan

REST APIs with Symfony2: The Easy Way

by David Dan – April 6, 2014 04:28

Developing a RESTful API with Symfony has been covered multiple times by many people.  If you want to learn how to implement it “the right way”, I suggest reading William Durand’s post. If you want to implement it “the best…Read more ›


Andrea Giuliano

Value objects in Doctrine

by Andrea Giuliano – April 3, 2014 09:43

Value object definition “A small simple object, like money or a data range, whose equality isn’t based on identity”1 Use case Let’s assume for example that you want to represent addresses in your application domain. What is really important to represent addresses is the value they hold and not the exact instance they could become. ...


Raul Fraile

Deployment of Symfony2 applications with Ansible

by Pablo – April 1, 2014 12:57

Ansible is a powerful automation engine that simplifies deploying systems and apps. Its popularity has been rising rapidly as developers and system administrators look for simpler ways to manage servers and deploy applications. The selling points of Ansible are: simplicity: the configuration is done through INI and YAML files agentless: there is no agent to […] The post Deployment of Symfony2 applications with Ansible appeared first on ServerGrove.


Paweł Jędrzejewski

Frontend redesign with Chilid

by Paweł Jędrzejewski – March 31, 2014 00:00

Preview not available


Timon Schroeter

Symfony style dynamic configuration with the eZ Publish ConfigResolver

by Timon.Schroeter – March 28, 2014 13:06

One of the central classes in the Symfony framework is: Symfony\Component\HttpFoundation\Request The front controller instanciates this object and populates it with the properties of the current HTTP Request. Controllers can easily obtain the current Request instance. Services can have the current Request object injected either directly or via the request stack (which is also subrequest […]


Richard Miller

Symfony2: Configuring different services for different environments

by miller – March 28, 2014 12:27

In my previous post I talked about avoiding optional dependencies. The example I used was of changing an optional dependency on a logger into a mandatory one. We injected a null logger implementation when we did not need logging. In this post I am going to look at this from the configuration point of view. […]


Paweł Jędrzejewski

Components BC break warning

by Paweł Jędrzejewski – March 28, 2014 00:00

Preview not available


Luis Cordova

Deconstructing Symfony: Part I – Getting Rid of Bad Practices Takes Effort

by Luis Cordova – March 27, 2014 03:02

I tried to avoid the bad practice of generating code. So I decided it was enough and created a custom Application.php class on my app/ folder and use that instead inside the console script. Something like this: #!/usr/bin/env php


Raul Fraile

Symfony2 components overview: Finder

by Raul Fraile – March 26, 2014 09:41

This is the 9th post in this series about the Symfony2 components. Today’s post covers one of the most popular PHP packages: the Finder component. According to Packagist it is the 14th most used PHP package, and the 3rd Symfony2 component, only after the EventDispatcher and Console ones. Installation Installation is really easy using Composer: If you have […] The post Symfony2 components overview: Finder appeared first on ServerGrove.


Grégory Quatannens

Elasticsearch and Symfony, export with the Scan/Scroll functions

by Gregquat – March 24, 2014 15:36

Lire la version française Elasticsearch allows you to make advanced searches. Some users may want to extract their search results to Excel (or LibreOffice Calc…) to work on the data. As we explained in our post Export data to a … Continue reading →The post Elasticsearch and Symfony, export with the Scan/Scroll functions appeared first on Obtao.


Maurits van der Schee

Symfony2 Guzzle bundle for cURL API calling

by Maurits van der Schee (Innovation Engineer) – March 24, 2014 10:37

The LswGuzzleBundle adds Guzzle API call functionality to your Symfony2 application. It is easy to use from the code and is aimed to provide full debugging capabilities. source: Github On Packagist, you can see that in the past two years we have published 10 LeaseWeb Symfony2 bundles. The latest and tenth addition to the list […] The post Symfony2 Guzzle bundle for cURL API calling appeared first on LeaseWeb Labs.


Matthias Noback

Test Symfony2 commands using the Process component and asynchronous assertions

by Matthias Noback – March 23, 2014 20:34


Hasin Hayder

A helpful Twig extension – Fetch

by Hasin Hayder – March 22, 2014 11:45


Raul Fraile

Symfony2 components overview: Translation

by Raul Fraile – March 18, 2014 15:52

This post covers the Symfony Translation component. The component  provides tools to internationalize our applications. The Translation component Modern applications need to be internationalized and localized to be able to reach people from all over the world. Internationalization – aka i18n – is the process of designing a software application so that it can be adapted […] The post Symfony2 components overview: Translation appeared first on ServerGrove.


Richard Miller

Avoiding Optional Dependencies

by miller – March 17, 2014 12:57

In my previous post I argued against setter injection. Optional dependencies are one of the main objections raised in the comments and elsewhere. I did mention these with a suggestion of just making them optional constructor arguments. I also mentioned that refactoring to stop it being optional was a solution. I think that this is […]


Richard Miller

Avoiding Setter Injection

by miller – March 12, 2014 15:03

A while ago I had a twitter discussion with Igor Wiedler and Matthias Noback about setter injected dependencies being mutable. When using objects as services in an application then we do not want them to have state. This is because we can them call them many times without the outcome changing. For example, if we […]