Using PHP Attributes instead of Annotations for Static Analysis (www.linkedin.com)
Since the release of PHP 8.0 more and more libraries, frameworks and tools have been updated to use attributes instead of annotations in PHPDocs.
Since the release of PHP 8.0 more and more libraries, frameworks and tools have been updated to use attributes instead of annotations in PHPDocs.
Explore insights from PHP experts who gathered from all around the world to discuss web development innovations, embracing change, and securely maintaining our code.
Pest is a testing framework for PHP you can install via composer that makes writing your tests a lot easier than you think!
A quick guide on how to set up OPCache and fine-tune PHP-FPM.
When I come to a new project, I want to make a rough idea of what I'm dealing with in a few minutes. I usually check composer.json and measure the lines. Then, I'd love to run PHPStan and get a rough idea of the current state. But are there baselines, custom extensions, global ignores, or no PHPStan at all?
Introduction Some months ago I started a side project aiming for study and personal use to...
Attributes First class callable syntax Constructor changes Parameter changes This post is going to...
For many developers, PHP is synonymous with web development. But what if you could leverage your...
...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,...
Windows support for NativePHP was announced this mean, which means that you can now build applications for the Windows platform.
When you are deploying code to a server and not with containers then it is critical to know how to properly restart Opcache. Why? Opcache never throws old files out of the cache. Therefore, if a new version is deployed in a completely new directory, all files from the old version will remain in the [...]
I have gone through all the Drupalcon sessions in Portland and selected those that I think are perfect for someone learning Drupal. Here is the result. NOTE: Did I miss anything that you think it should be highlighted here? Please let me know 😊.
Bad news first, php[tek] 2024 is over. Good news, you don’t have to listen to us talk about php[tek] 2024 as much anymore. php[tek] 2025, however, is just around the corner, and there is no time like the present to put the bug in your supervisor’s ear about attending.
PHP 8.4 will be released in November 2024, but the list of new features and deprecated features is...
As a developer, you may have encountered situations where you need to convert numbers to words or...
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
In the landscape of software testing, the choice between a do-it-yourself (DIY) approach to mocking and utilizing mocking frameworks is a pivotal decision for programmers. While mocking is indispensable for code reliability, its overuse or incorrect implementation can introduce complexities and fragilities within test suites....
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....
A framework is a collection or set of tools and processes that work together to support testing and...
If you're interested in Machine Learning and PHP, Transformers PHP emerges as a game-changer,...
⚡ Enhance the Developer Experience (DX) with Serverless and DevOps Best Practices In the...
This snippet shows how to transform an array into a traversable object with PHP. A reminder: iterable is a type hint introduced in PHP 7.1, whereas Travers
I'm not sure how big of a series I want to make this. But here we go. The target of the series is to...