Symfony Framework Blog
1,408 FOLLOWERS
Symfony is an Open Source PHP Web applications development framework. Official Symfony Blog: all about Symfony releases, new Symfony features, case studies and other important announcements.
Symfony Framework Blog
4h ago
This week, Symfony 7.1.0 was released. We also upgraded the official Symfony book to Symfony 6.4. Meanwhile, we published more details about the SymfonyOnline June 2024 conference that will take place next week and about the accommodation for the next SymfonyCon Vienna 2024.
Symfony development highlights
This week, 39 pull requests were merged (33 in code and 6 in docs) and 37 issues were closed (31 in code and 6 in docs). Excluding merges, 20 authors made 2,502 additions and 8,678 deletions. See details for code and docs.
5.4 changelog:
3fa0149: [VarDumper] fix generator dump on PHP 8.4
9e2 ..read more
Symfony Framework Blog
2d ago
Contributed by
Baptiste Contreras
in #51502.
Signed URIs include a hash value that depends on the contents of the URI to ensure their integrity. Symfony provides a service to sign URIs and in Symfony 7.1, we're improving it so you can also make those URIs expire after some time.
Use the new optional second argument of sign() to define the URI expiration date:
$url = $this->urlGenerator->generate('document_show', ['id' => $document->getUuid()]);
$signedUrl = $this->uriSigner->sign($url, new \DateTimeImmutable('+10 minutes'));
Expiring URIs include an _expiration query ..read more
Symfony Framework Blog
2d ago
A few weeks ago, I've quietly released an updated version of the Symfony book, "The Fast Track" for Symfony 6.4.
Besides using Symfony 6.4, this new version uses the latest versions of all dependencies like using PostgreSQL 16. We are now using a new mailcatcher (mailpit) as this is now the default in the Symfony recipes. We were able to remove some steps that are not needed anymore; that's always a sign that we are improving DX (using the new make:security:form-login command, the session table is now created automatically, the SLACK_DSN env var is now automatically added by the recipe ..read more
Symfony Framework Blog
3d ago
Contributed by
Jérôme Tamarelle
in #52638.
When using a file to configure environment variables Symfony looks by default in the .env file at the root of the project (and its variants .env.local, .env.<environment>, .env.<environment>.local, etc.)
In Synmfony 7.1, we're making the .env file location configurable, so you can store that file in any other custom location. To do so, define the full path to the new location in the SYMFONY_DOTENV_PATH env var (you must define this env var outside Symfony; e.g. in your web/app server, in Docker, etc.)
Contributed by
Javier Spagn ..read more
Symfony Framework Blog
4d ago
Contributed by
Florent Morselli
in #52986.
Symfony's Request object provides a getPreferredLanguage() method to select the best possible locale for the current user among the list of locales passed to the method:
$locale = $request->getPreferredLanguage($supportedLocales) ?? $defaultLocale;
An issue with this method is that is very strict. If $supportedLocales are ['fr_FR', 'en_US'] and $defaultLocale is 'en_US', a user sending the following HTTP header: accept-language: ja-JP,fr_CA;q=0.7,fr;q=0.5 will be assigned en_US as the locale. However, given that the user accepts fr_CA and ..read more
Symfony Framework Blog
5d ago
SymfonyOnline June 2024 will start in less than a week on June 4th & 5th with pre-conference workshop days. Then main conference days will continue on June 6th & 7th with outstanding speakers and talks:
Fabien Potencier will present Using Git magic for the Symfony mono-repo,
Maximilian Beckers will present Practical insight into modulithic architecture,
Marie Minasyan will present Carry out the best audit for your client,
Imen Ezzine will present How to Test an External API with 0 Mocks?,
Carlos Granados will present The big upgrade. All the way up to Symfony 7 and PHP 8.3,
Kevin Bon ..read more
Symfony Framework Blog
5d ago
Contributed by
Simon André
in #53096.
In Symfony 6.2 we introduced a feature to transliterate and slugify emojis. This works by adding to the Symfony Intl component all the emoji data from the ICU library. This data includes the descriptions of all emojis and all its variants in all languages.
As a result, when you create a fresh new Symfony application, symfony/intl takes more than 70% of the total installation size (43MB unzipped). This is going to get worse as more emojis are added in the future.
That's why in Symfony 7.1 we've decided to remove the emoji data from Symfony Intl and mo ..read more
Symfony Framework Blog
6d ago
SymfonyCon Vienna 2024, our next annual international Symfony conference, will take place on:
December 3 & 4: 2 workshops days with several topics to learn, practice and improve your skills in small groups
December 5 & 6: 3 English-speaking tracks with more than 35 outstanding speakers, 1 Unconference track, and a conference community evening
Start preparing for your participation by submitting a paper for a talk or workshop, registering for the conference, and organizing your stay.
?️ Organize your accommodation
We are happy to share with you that some rooms have been pre-booked at ..read more
Symfony Framework Blog
1w ago
This week, we continued polishing Symfony 7.1 features and fixing some of its deprecations to prepare for its stable release next week. Meanwhile, we introduced a Symfony Jobs section so you can find a great job or post your own job to hire talent from the community. Lastly, we updated the code repository to create the branch for Symfony 7.2, which will be released at the end of November 2024.
Symfony development highlights
This week, 48 pull requests were merged (36 in code and 12 in docs) and 28 issues were closed (23 in code and 5 in docs). Excluding merges, 21 authors made additions and de ..read more
Symfony Framework Blog
1w ago
SymfonyOnline June 2024 is just around the corner and will start on:
June 4-5: Workshop days. It is possible to attend 1 two-day training or 2 one-day trainings!
June 6-7: Online conference days in English. All talks will be available for replay as soon as they go live.
? New speaker announcement!
We're thrilled to reveal the next speaker, and it's none other than...
Stiven Llupa, Senior Development Lead, Endava DACH, will present Designing Security-First Symfony Apps:
Start exploring secure software development with Stiven Llupa. Learn how you can integrate security into development and si ..read more