What’s new in PHP7

Haven’t you switched to PHP7 yet? If not, you should read “How Badoo saved one million dollars switching to PHP7” and consider to change your version. Moreover, remind to update at least to 5.6 version: it’s now the only minor 5.x release that will be supported and not dismissed. http://php.net/supported-versions.php Ok, maybe (probably)…

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…

Rome AWS Meetup day

Saturday the 15th of October we leaved the comfort of our couches (have we already said we are a distributed team from all around Italy?) to leave to the glorious destination of Rome! The ancient town best known for the engineers of the Roman empire, was once again at center…

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…

Amazon S3 point in time restore

It’s said necessity is the mother of invention and in this article we’ll show the reason why we initially wrote s3-pit-restore. Our infrastructure heavily rely on S3 object storage to store the several millions files our users everyday produce. S3 works reliably and everything went well until we were in…

Peering multiple VPCs with Ansible

Sometimes happens, as it happened to us, that you have one or more services you want to share between your VPCs. For us, the case was for an ELK stack that we use internally to monitor the state of our infrastructure. With this article we want to share our recipe…

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…

AWS Meetup – Rome

AWS is well known for its cloud services for almost everything you need in a cloud environment. As Madisoft we like them a lot and we use many of them for our cloud activities. We’re very proud and happy to be part of the AWS Meetup in Rome on 15th…

1 2