Performance test: Bref FPM vs Bref + Runtime component
The Symfony Runtime component is AWESOME. I did a talk about it at Symfony World 2021 where I explain how and why it works. I spent a lot of time on the cont...
The Symfony Runtime component is AWESOME. I did a talk about it at Symfony World 2021 where I explain how and why it works. I spent a lot of time on the cont...
The lock component have saved me so many times. It helps me with race conditions, it makes my code simpler and my application more reliable. I’m using it to ...
Symfony Messenger is great. It has so many features and is super flexible. I want to highlight one of these features in this small post: Failures and retrie...
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 bug...
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 b...
In today applications recommendations became quite necessary for better audience/customer targeting. So, as you could assume, we have our own recommendation ...
In a previous post I described how we are using Amazon SNS with Symfony Messenger. But what I didn’t mention is how we handle failures. Sure, we write perfe...
For the past 4 years we have developed web applications with a message bus. The Symfony Messenger component was released around a year ago and I’ve loved it ...
It has been just over 2 years since Symfony released their Workflow component. I was of course thrilled by the news and started to work on multiple PRs to m...
I was recently at a PHP conference in Odessa where I met many great developers. One of them asked me a question, that the answer was not obvious. His use ca...
How much faster is the new Symfony router in a real world application?
This post will cover how to use a ProcessManager class together with Symfony’s workflow component.
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...
You probably follow the Symfony best practices when you develop web applications. That is great but there is no much information about translation. The offic...
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 re...
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 ...
There are many great articles that tells you why you should use continuous integration i.e. the one by Martin Fowler and the book This is Lean by Niklas Modi...
Many times I’ve come got to a situation where I have a unusual high query count. When I inspect the queries in the Symfony profiler I can see that Doctrine i...
PHP is a great language but there are some drawbacks. One thing I miss the most is multi-threading. Wouldn’t it be great to be able to do some calculations i...
I’ve been working with the Symfony.se website the last couple of weeks. In a discussion on Github we argued how a nice excerpt should look like. We decided t...
In your main template you probably should have assetic to manage your assets. In the production environment you would like to dump this to static files.
I recently switched to Bower for managing my frontend third party libraries. First I defined some packages that I needed in a bower.json file and put it in t...
A tuple is very similar to a PHP array and a shape. The key feature of tuples is that they are immutable. You may not change the length or the types of the e...
Hack introduced a concept called Shapes. It is an object like the associative PHP array but with predefined array keys. If you are familiar with C you might ...
Hack has introduced some new object to replace the PHP array. These collections are Vector, Set, Map, Pair and some more. If you are familiar with Java or C#...
Hack got a lot of features and improvements of different kinds. It comes with some syntactic sugar. The constructor is a subject for a syntactic sugar improv...
When you are using Hack you are running in one of 3 different modes. The modes are telling the type checker how strict (or forgiving) it should be when check...
This post will go more in details of my last post about types. After reading that last post you know that a method declaration in Hack will look like this:
The biggest difference between Hack and PHP is that PHP is using dynamic typing and Hack is statically typed. Java and C# is other languages that is statical...
If you like to take your PHP to the next level there is an excellent option for you: Hack. It is a programming language develop by Facebook. They have been u...
I’ve been working with the Symfony.se website the last couple of weeks. In a discussion on Github we argued how a nice excerpt should look like. We decided t...
Lately there has been a lot of talk about HHVM and the new programming language Hack. It all looks great, to bad it does not run your code. The HHVM team is ...
I’ve been noticing people having trouble understanding the differences between the caret (“^”) and the tilde (“~”) operator in the composer.json file. Compos...
You probably follow the Symfony best practices when you develop web applications. That is great but there is no much information about translation. The offic...
Earlier this year I installed Fabien’s php-cs-fixer on my continuous integration server. So at each build I checked if there were any code style errors, if s...
Hack has introduced asynchronous programming. This is really great but it is not really documented at the moment. Not at all actually… I’ve done some experim...
Hack is all about making it easier for the developer to write good code. There has been some improvement of the PHP anonymous function or closer as they also...
Hack has introduced some new collection objects that will be a replacement for the array(). But what if you feel that something is missing? What if you have ...
I know there is plenty of javascript libraries that help you show dialogs. I’ve used a handful of them and I’ve read the documentation of many more. Many of ...
The answer may be trivial. Efficiency is when you work as hard as you can and as quick as possible to complete a task. The answer could also be a bit more co...
Earlier this year I installed Fabien’s php-cs-fixer on my continuous integration server. So at each build I checked if there were any code style errors, if s...
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 ...
The other day when I was making a PR to a Github project I got a comment like this:
There are many great articles that tells you why you should use continuous integration i.e. the one by Martin Fowler and the book This is Lean by Niklas Modi...
We are online! We started to build some open source projects to share on Github. But we needed a website to put documentation, faq etc… We also needed a plac...
The Symfony Runtime component is AWESOME. I did a talk about it at Symfony World 2021 where I explain how and why it works. I spent a lot of time on the cont...
In a previous post I described how we are using Amazon SNS with Symfony Messenger. But what I didn’t mention is how we handle failures. Sure, we write perfe...
For the past 4 years we have developed web applications with a message bus. The Symfony Messenger component was released around a year ago and I’ve loved it ...
Running serverless is great. When migrating our applications to use Bref we realized that we need a non-standard php-extension. With “non-standard” I mean t...
The lock component have saved me so many times. It helps me with race conditions, it makes my code simpler and my application more reliable. I’m using it to ...
Symfony Messenger is great. It has so many features and is super flexible. I want to highlight one of these features in this small post: Failures and retrie...
In a previous post I described how we are using Amazon SNS with Symfony Messenger. But what I didn’t mention is how we handle failures. Sure, we write perfe...
For the past 4 years we have developed web applications with a message bus. The Symfony Messenger component was released around a year ago and I’ve loved it ...
If you like to take your PHP to the next level there is an excellent option for you: Hack. It is a programming language develop by Facebook. They have been u...
I’ve been working with the Symfony.se website the last couple of weeks. In a discussion on Github we argued how a nice excerpt should look like. We decided t...
Lately there has been a lot of talk about HHVM and the new programming language Hack. It all looks great, to bad it does not run your code. The HHVM team is ...
An image is uploaded on S3, that triggers a lambda that optimize that image and put it back. How hard can that be?
Many times I’ve come got to a situation where I have a unusual high query count. When I inspect the queries in the Symfony profiler I can see that Doctrine i...
PHP is a great language but there are some drawbacks. One thing I miss the most is multi-threading. Wouldn’t it be great to be able to do some calculations i...
At Happyr, we have about 30 applications running across 14 Amazon EC2 servers and a lot of Lambda functions. Most of them are small microservice application...
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 bug...
I think I am a decent PHP programmer, but I am lost when it comes to devops, C, Makefiles and compiling stuff. I just want to write brew upgrade php and be h...
PHP is a great language but there are some drawbacks. One thing I miss the most is multi-threading. Wouldn’t it be great to be able to do some calculations i...
Recently I wanted to let my users authenticate with LinkedIn. We had just added a Facebook and Twitter authentication, so why not LinkedIn. To my big surpris...
I recently switched to Bower for managing my frontend third party libraries. First I defined some packages that I needed in a bower.json file and put it in t...
PHP is a great language but there are some drawbacks. One thing I miss the most is multi-threading. Wouldn’t it be great to be able to do some calculations i...
Many times I’ve come got to a situation where I have a unusual high query count. When I inspect the queries in the Symfony profiler I can see that Doctrine i...
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 th...
In today applications recommendations became quite necessary for better audience/customer targeting. So, as you could assume, we have our own recommendation ...
In today applications recommendations became quite necessary for better audience/customer targeting. So, as you could assume, we have our own recommendation ...
An image is uploaded on S3, that triggers a lambda that optimize that image and put it back. How hard can that be?
At Happyr, we have about 30 applications running across 14 Amazon EC2 servers and a lot of Lambda functions. Most of them are small microservice application...
The lock component have saved me so many times. It helps me with race conditions, it makes my code simpler and my application more reliable. I’m using it to ...
The Symfony Runtime component is AWESOME. I did a talk about it at Symfony World 2021 where I explain how and why it works. I spent a lot of time on the cont...