Symfony

Symfony and multi-tenant apps: Nuvola

This article starts a series of posts regarding a case-study about Symfony and multi-tenancy. Subject of the case-study is our flagship software Nuvola, a multi-tenancy product for schools, used since 2013 by more than 1 thousands Italian schools. Nuvola let them fulfill their administrative tasks, teachers completely accomplish their work online (grade…

SymfonyDay Italy: videos

Hello everybody, we are pleased to announce that finally videos of SfDayIT2016 have been posted by GrUSP onto Vimeo channel. If you don’t know that we were selected as speakers for that event, well, now you are aware  😀 Below you can find Matteo’s talk about scaling with Symfony (we suggest to read…

Symfony form pills – Value object

Suppose that we have a value object or, more in general, an object where its data has been set in the constructor

and its FormType

Let’s assume that bar and foobar are taken from HTTP POST values (so, basically, we need those values to be posted in order to instantiate a Foo object). Question How can I create…

Scaling Symfony sessions with Redis

In the Scaling Symfony sessions with Memcached article we focused on scaling our Symfony session with Memcached. Memcached is very easy to set-up and use but it lacks of persistence and some other cool stuffs we can find in Redis. What’s Redis? Redis in an in-memory data structure store. It is very…

Don’t rely entity setters (order)

What this code does?

It’s a simple class that represent a DateTimeInterval with a flag named allDayLong that let an object of DateTimeInterval class to fill all day. You can see that setFrom and setTo are affected from allDayLong flag: if is set, time of these DateTime are changed in order to fill all day. But…

PHPSpec – Array of mocks in constructor: a practical example

If you know PHPSpec a bit, you certainly are aware of let function.

that helps you to define “automagic” mocks handled directly by PHPSpec and that you can pass to your example

If type and name of your mock is the same of let function, then the mock is the…

Symfony Day 2016 (Italy, Rome)

Good news mates: we were selected as speakers for Symfony Day 2016 (Italy) that will take place in Rome (tickets available here). Samuele  and Matteo  sent out their talk proposals and both were picked (checkout program here: all talks are in italian language). Matteo’s proposal is entitled “Scaling Symfony apps” and will start at…

Scaling Symfony sessions with Memcached

Sessions are one of the main building blocks of a login-based web application. We’re going to see what they are, what Symfony offers us to handle them and how to scale when you have ton of them. What’s a session? As you know the HTTP protocol is stateless: each request is independent from…

1 2 3