News
Aggregated news about Symfony
Swag Industries
·
Have your ghost blog engine running in only a few minutes! Here's our configuration if you want some inspiration. We are using docker compose, traefik, and an SQLite database.
The Strangebuzz PHP/Symfony blog
·
Initializing your Symfony project with solid foundations
This post shows how to initialize a Symfony project with solid foundations. I give several bits of advice about this crucial step that determines how your project will evolve in the...
mon-code.net
·
Which tool to choose to use Elasticsearch in a Symfony project
How to use Elasticsearch in a Symfony project? Which librairy or bundle to choose? I often read these questions on community slack. I'm not going to write a complete guide, but...
mon-code.net
·
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...
Florent Destremau
·
How to translate a Symfony and React project.
When starting a new web app, I tend to think that internationalization is not a first-version concern. However, as soon as your side project starts becoming a real world app, your...
The Strangebuzz PHP/Symfony blog
·
Simple API mocking with the Symfony HTTP client
In this post, we see a simple solution to mock API calls with the Symfony HTTP client, declare a scoped HTTP client and test it with or without mock.
mon-code.net
·
How Doctrine2 ORM killed the benefit of my cache to relieve my database
Today I tell you a little story about MariaDB and Doctrine2 sinking and how Redis, coming to save them, sinks them even faster. Feedback on my setbacks with Redis and Doctrine2 hoping...
The Strangebuzz PHP/Symfony blog
·
Organizing your Symfony project tests
In this post, we see how to organize your Symfony project tests. We check all the available test types and create consistent and robust test suites.
The Strangebuzz PHP/Symfony blog
·
Creating custom PHPStan rules for your Symfony project
In this post, we see how to create custom PHPStan rules for a Symfony project. We will check Symfony best practices but also more specific rules.
mon-code.net
·
Secure your sensible data using encryption in PHP
There isn't an application that is really security proof and will not suffer to a data breach. Encryption of the data is a good approach to reduce data breach impact. In this...
The Strangebuzz PHP/Symfony blog
·
The PHP exceptions' cheat sheet
This post is different from what I use to do. It will be a reference, a "cheat sheet" mentioning all available exceptions with PHP.
The Strangebuzz PHP/Symfony blog
·
Implementing a user workflow with Symfony and EasyAdmin3
In this post, we will see how to implement a user workflow with Symfony and EasyAdmin3. We will use the Symfony workflow component to handle the users' state and we will use EasyAdmin3...
The Strangebuzz PHP/Symfony blog
·
End-to-end testing with Symfony and Panther
In this post, we will see how to create an end-to-end test scenario using Symfony, Panther and Vue.js with a concrete example.
Swag Industries
·
Creating a PHP archive (phar)
How to create PHP archives (phar files) and use them, what they really are, all the answers are here.
The Strangebuzz PHP/Symfony blog
·
Securing an API with JWT and API Platform
In this post, we will see how to secure an API with JWT and API Platform. We will generate JWT security tokens thanks to the lexik/jwt-authentication-bundle, and we will take advantage...
The Strangebuzz PHP/Symfony blog
·
Replacing manual API endpoints by API Platform in a Symfony application
In this post, we will see how API Platform can help us to document and migrate manual endpoints in a Symfony application. We will see concrete examples related to this blog application.
Swag Industries
·
Test emails with Symfony
Let's see together how to test Symfony emails with PHPUnit, but also with Behat.
Swag Industries
·
How to get the real PHP memory usage on macOS
PHP provides the function memory_get_usage(), this is very helpful whenever you find your code using a lot of RAM. But this method has a significant limitation: it only counts memory...
The Strangebuzz PHP/Symfony blog
·
Using an expression for disabling the security of a Symfony administration in the dev environment
In this post, we will see how to use an expression for disabling the security of a Symfony administration in the dev environment. We won't use an IP based test like the documentation...
mon-code.net
·
Use the Symfony Expression Language component in YML and XML service files
This article shows, by example, the usage and syntax of the Symfony2 Expression Language component in service files written in XML or Yaml. This component allows you to add dynamism...