All posts about software development with PHP for backend and Javascript for frontend

When I'm not writting code for my job, I do it for personal project and fun. I'm self-taught man, 20 years ago I read a lot of tech blogs to learn basics and advanced concepts. Now it's my turn to share my knowledge. Most of posts in this category is about programing with PHP using Symfony framework for backend using cool poject like RabbitMQ or Elasticsearch. I'm also writting a little about Javascript for frontend dev.

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.

Package code in a PHP archive: PHAR

In this article, I show how to group its code in a PHP Phar archive. This step a little complicated, is now greatly facilitated by tools available on Github. I illustrate here, the use of clue/phar-dial.