Symfony Community

« Symfony Community is a passionate group of over 300,000 developers from more than 120 countries, all committed to helping PHP surpass the impossible. »

Join the Community

SensioLabsConnect is an extensive professional network for Symfony developers. Create your profile and start collecting badges now!

Meet the Community

Upcoming events organized by the Symfony Community.

Contribute to the Community

Symfony is constantly developing thanks to an active volunteer community. Whatever your skills or level, send in your suggestions to continue advancing Symfony!

Learn from the Community

A selection of the most recent posts published by Symfony bloggers.

Run a Symfony application using Docker and docker-compose (English)

Why boot a full virtual machine when you can only run Docker containers of what you need to develop your Symfony applications ? This is one question asked by Jeremy Derusse at his Docker dans le développement l'intégration continue" talk during Symfony Live Paris 2015. Those slides are really interesting, I invite you to take a look. They demonstrate the power of Docker and docker-compose but are waiting for practice in order to well understand. So I enjoyed a rainy week-end for further [...]

Symfony2 components overview: Filesystem

The 15th post of the Symfony2 components series is focused on the Filesystem component, which provides some basic utilities to work with the filesystem. It extends PHP built-in functions such as mkdir() or copy() to make them more portable and easier to use and test. The problem PHP built-in functions for filesystem operations mimic common […] The post Symfony2 components overview: Filesystem appeared first on ServerGrove.

User as a service in Symfony2

To get the current logged in user in Symfony2 is kind of complicated. You have to do a lot for such simple task. First you have to get the TokenStorage to retrieve the token. The token may or may not exist. If the token exist you can get an user object or a string ‘anon.’. It all looks like this: The function above is provided by the FramworkBundle base controller. But what if you want to use the current user in a service? You have to inject the security.token_storage and do this you […] [...]

How to use Elasticsearch aliases with Symfony2 and FOSElastica

Elasticsearch is an incredibly powerful tool which can really help speed up listings and search in your web application. However, as your app grows and your types become more complex it becomes even more important to improve your testing and make further development simpler. Aliases allow you to point different indexes for different environments, and also to seamlessly switch between them. For this post I'll assume you are using Symfony 2.5.*, FOSElastica bundle 3.0.0alpha6 and Elasticsearch

Open files in PHPStorm from you Symfony application

If you want to open files in PHPStorm8 directly from the Symfony debug toolbar there is a neat trick you can use. This is very helpful when you quickly want to find a controller or when you got an exception. And that is pretty much it. You dont need to install PhpStormOpener, LinCastor or any other Apple script. This will work with PHPStorm8, Symfony2.6 and Mac OSX. Below is a picture to show where you should click to make PHPStorm open the controller used in this request. Read the post at [...]

View more posts or add your own blog to the Symfony Planet.