Développement avec le framework PHP Symfony

J'ai découvert le framework Symfony avec la version 1.0 qui utilisait l'ORM Propel. Depuis je n'utilise plus que le framework Symfony ou un ensemble de ses composants pour tous mes projets (pro ou perso). Il y a beaucoup à écrire sur ce framework, dans les articles ci dessous je partage essentiellement sur son utilisation sans pour autant revendiquer "la bonne" façon de faire car les cas d'usage change pour chaque projet.

Protect your application with Symfony rate limiter component

Brut force or enumeration attack are not limited to login form. An easy way to fix this is to rate limit usage of your application. There are many solution out there to achieve that, in this post I show you how to do it with Symfony rate limiter component. I will also show you how to protect your server with long running task to avoid server overwhelming.

Manage Elasticsearch indices with elasticsearch-php library

I already wrote on this blog about elasticsearch-php library maintained by Elastic, the firm that created Elasticsearch. It's my first choice when I need to add Elasticsearch to a project. This library wrap the whole REST API of Elasticsearch including indices management and this is the subject of this post. How to manage indices with elasticsearch-php.

Migrate to Jenkins pipeline for my PHP Symfony project

Yes, we are in 2022 and I'm still using Jenkins and not the hype CI like gitlab or github action. In fact I have just migrated all my old job definition from Phing (it's like Ant but written in PHP) to declarative pipeline. It's faster to run, config file are easier to read and I still keep metrics. Want to know more? Read this article.