News
Aggregated news about Symfony
Florent Destremau
·
At Windoo, we make a SaaS for HR people, with surveys, pulse questions and such… When we try to generate fixtures, or even demo accounts, it’s important to have realistic data. For...
Swag Industries
·
Debunking btrfs
A few weeks ago I listened to one of the Linux Unplugged podcasts about btrfs. It was a reminder that btrfs is great. I have been using btrfs for a few months now, so here is my comment.For...
Swag Industries
·
Simple strategy pattern with Symfony
Use the dependency injection of Symfony to configure super-easily a strategy pattern with your services.
The Strangebuzz PHP/Symfony blog
·
Adding a custom data collector in the Symfony debug bar
In this post, we will see how to add a custom data collector in the Symfony debug bar. The debug bar, also called profiler, is one of the most useful components as it is of great help...
The Strangebuzz PHP/Symfony blog
·
Step by step debugging with Xdebug, Symfony and PHPStorm
In this post, we will see how to do step by step debugging with Xdebug, Symfony and PHPStorm. We will do a basic example where we will stop the execution of the Symfony code just before...
The Strangebuzz PHP/Symfony blog
·
Introducing CW: a cache watcher for Symfony
In this post, I will introduce you to Cw which is an acronym for "Cache Watcher". Cw is a small Go (Golang) program that watches your Symfony files and warms your cache when...
The Strangebuzz PHP/Symfony blog
·
Setting a CI/CD workflow for a Symfony project thanks to the GitHub actions
In this post, we will see how to set up a CI/CD workflow for a Symfony project thanks to the GitHub actions. It will cover from configuring PHP on the runner host to launching the...
The Strangebuzz PHP/Symfony blog
·
Auto-configuration of Doctrine repositories as services
In this post, we will see how to use Doctrine repositories as services without adding additional configuration to the services.yaml file.
The Strangebuzz PHP/Symfony blog
·
On using the good old Symfony BaseController
In this post, we will see how to use the Symfony AbstractController that was introduced in Symfony 3.3/4.1. We will review what we used to do before and the evolutions that were done...
The Strangebuzz PHP/Symfony blog
·
What are your Symfony best practices?
In this post, we will check all the Symfony best practices listed in the official documentation. For each one, I will say if I agree with it or not and why.
The Strangebuzz PHP/Symfony blog
·
Implementing a honeypot in a Symfony form
In this post, we will see how to implement a simple honeypot in a Symfony form to avoid spam. We will try it on a newsletter form with a unique email field. We'll also log what...
The Strangebuzz PHP/Symfony blog
·
Implementing a search engine with elasticsearch and Symfony (part 3/3)
In this third and last part, we will continue to improve our search engine. First, we will enhance our elasticsearch stack with Kibana. Then, we will implement an autocomplete using...
The Strangebuzz PHP/Symfony blog
·
Implementing a search engine with elasticsearch and Symfony (part 2/3)
This is the second part of the tutorial. In this post, we will see how to improve our search engine to make is much more relevant. We will use an alias, create a custom command to...
The Strangebuzz PHP/Symfony blog
·
Implementing a search engine with elasticsearch and Symfony (part 1/3)
In this post, we will see how to create a full-text search engine with elasticsearch in a Symfony application. We will use Docker compose to set up an elasticsearch stack. We will...
The Strangebuzz PHP/Symfony blog
·
On hiding the main Symfony front controller
In this post, we will see how to hide the front controller's file name of a Symfony application so it can't be accessed when typing it: "index.php". The less the...
The Strangebuzz PHP/Symfony blog
·
Disable the HTML5 validation of all your Symfony forms with a feature flag
In this post, we will see how to implement a simple feature flag. This flag will help us to debug our forms and will allow to disable the HTML5 client side validation of all the forms...
The Strangebuzz PHP/Symfony blog
·
On using the Symfony NotCompromisedPassword security validator
In this post, we will see how to use the NotCompromisedPassword validator which was introduced in Symfony 4.3. This validator allows us to check if a given password was publicly exposed...
The Strangebuzz PHP/Symfony blog
·
Implement a "Read in your language" link with Symfony
In this post, we will see how to implement a "Read in your language" link in your pages. The goal will be to detect the user browser preferred language and show him a link...
The Strangebuzz PHP/Symfony blog
·
Send Symfony application logs to Slack with Monolog
In this post, we will see how to send logs to Slack. Typical usage is, of course, to send critical errors to be warned in real-time and be able to fix the issues quickly. But we can...
The Strangebuzz PHP/Symfony blog
·
The Symfony Request class interactive cheatsheet
In this post, we will review one of the most used and useful service (in fact it's a value object) provided by Symfony which is the Request service Is is part of the HttpFoundation...