Elegant immutable object pattern in PHP (dev.to)
As many of you know, immutability is an extremely useful concept that makes code more predictable and...
As many of you know, immutability is an extremely useful concept that makes code more predictable and...
We observed an almost 40% reduction of CPU usage in our PHP servers by upgrading from Ubuntu 20.04 LTS to Ubuntu 22.04 LTS.
PHP 8.3 is a major update of the PHP language. It contains many new features, such as explicit typing of class constants, deep-cloning of readonly properties and additions to the randomness functionality. As always it also includes performance improvements, bug fixes, and general cleanup.
...and how to avoid it. Type coverage is a way to gradually add type declarations to your PHP project—step by step, one by one. It's a PHPStan package that helps you maintain a specific minimal level from 0 % to 100 %. Once we reach high coverage of 80-90 %, we feel safer. But our code can actually be in worse, even dangerous,...
Germany's Sovereign Tech Fund has been making significant, much-needed investments into various open-source upstream projects from the GNOME desktop to Rust-written Coreutils and more
Did you know you can perform a full-text search in a database using PhpStorm (any IntelliJ based IDE)
In the first post, we looked at the long-term effects of our decisions. Turning a legacy project into a fresh one is a matter of the "just do it" approach. But there are 3 things we should take with care even if our project seems outside the legacy project category. First of those are arrays.
When creating applications with PHP, Exceptions play a vital role in handling errors and irregularities that arise during the application lifecycle. We are going to see how to use Custom Exceptions to improve our applications.
This week, Symfony celebrated the SymfonyCon Brussels 2023 conference with great success. During the hackday, the community contributed many bug fixes and new features for the upcoming Symfony 7.1 ver...
Distributing PHP applications is quite complicated. For instance, to run a Symfony project in production, a web server, the PHP engine, and the appropriate PHP extensions need to be installed. Their versions and configurations must be compatible with the app. Because PHP is an interpreted language, the application source code...
Have you ever wondered how a language sets about adding new features, or deciding what changes from...
Hey! Chris Coyier here. This is a blog-itized version of a presentation I created. It started life as a Keynote file which I presented in person at RenderATL in June of 2023. I put a lot of work into it! I’m so grateful to everyone who came and saw it. But you can’t beat the […]
Symfony 6.3 introduces some new components to ease the creation and handling of webhooks in your applications.
Kevin Bond (aka Zenstruck) is joining forces with us as a head tutorial writer. This means tutorials created by Kevin in the SymfonyCasts style you know and love
Disclaimer This is a tutorial or a training course. Please don't expect a walk-through...
After the first blog post of this series explained the basic concepts of the settings-bundle, this...
It’s hard to believe, but the --all option for the messenger:consume command in Symfony was unavailable until version 7.1 — on lower versions list of transports must be passed explicitly to the executed command. But if you need this, it’s really easy to port this feature to 6.4!
In this article, we'll explore the process of creating JSON Web Tokens (JWTs) from scratch in PHP, presenting a superior and more secure authentication scheme. By implementing this advanced approach, we unveil a robust and highly secure authentication mechanism that significantly enhances data protection and user authentication....
The Property Hooks RFC for PHP moves closer to coming to PHP 8.4 with an overwhelmingly positive 34/1 vote. Learn about Property Hooks in PHP and the syntax outlined in the proposal.
PHP popularity has dropped dramatically, coinciding with WordPress becoming "JavaScript-first" according to its co-creator Matt Mullenweg.
PhpStorm, the PHP IDE by JetBrains, released version 2024.1 this week with a brand new terminal, local AI code completion, Pest improvements, and more.
A blog about modern PHP, the web, and programming in general. Follow my newsletter and YouTube channel as well.
Single Page Applications, AJAX loading of content… there are legitimate reasons to use these technologies. That said I am constantly amazed…
A quick guide to JWTs in PHP
In the previous article, I wrote about a particular setup you can use to configure Docker on WSL...