The archive · 20 articles

All articles.

Everything we’ve shared, from recent experiments to lessons from the early days.

Symfony

Symfony setter injection

The Symfony documentation explains four ways to inject dependencies to your service. In short, you can use the constructor, inject directly to a public property or you can use a two flavours of…

Tobias Nyholm

One year of AsyncAws

It has been one year since Jérémy Derussé and I started to work on a new API client for AWS. At the time we could never have imagined how popular it would be. In this first year we had over 1.5…

Tobias Nyholm
PHP Symfony

PHP 7.4 preloading benchmark

Preloading arrived to PHP 7.4.0 in November 2019. I was super excited about this and I started to try it out. But I quickly noticed that it was a little buggy when you started with a "real world"…

Tobias Nyholm
Symfony

Symfony HTTP Client and caching

Symfony has a HTTP client which differ from other clients like Guzzle, Buzz or clients from the HTTPlug organization. Symfony's HTTP client is asynchronous by default. Using asynchronous anything is…

Tobias Nyholm
Web

Blocking vs non-blocking fonts

Just the other day I found out about the font-display: swap; css directive. It basically allows you to configure the browser to load the webpage first and then add the correct fonts when they are…

Tobias Nyholm
Symfony

Testing the Symfony 4.1 router

How much faster is the new Symfony router in a real world application? We ran some tests to find out. An improved router A few days ago we received the fantastic news that the Symfony router had…

Tobias Nyholm
Symfony

Generate URLs in Symfony commands

It has been great many years since Symfony 2.0 was released. 2.0 did not have as many great features as Symfony 4.0, but it was flexible and you could still accomplish what ever you want. I've just…

Tobias Nyholm

Always use caret instead of tilde

I've been noticing people having trouble understanding the differences between the caret ("^") and the tilde ("~") operator in the composer.json file. Composer's documentation is great but a bit…

Tobias Nyholm