Planet PHP - RSS Feed

People blogging about PHP

Latest articles

PHP 8.2.0 Beta 3 available for testing - PHP: Hypertext Preprocessor

The PHP team is pleased to announce the third beta release of PHP 8.2.0, Beta 3. This continues the PHP 8.2 release cycle, the rough outline of which is specified in the PHP Wiki.For source downloads of PHP 8.2.0 Beta 3 please visit the download page.Please carefully test this version and report any issues found in the bug reporting system.Please DO...

On syntactic sugar - Evert Pot

Ever so often the term ‘syntactic sugar’ comes when people discuss language features, and it’s not uncommon to see the word ‘just’ right in front of it; some examples: Why Async/Await Is More Than Just Syntactic Sugar JS classes are not “just syntactic sugar” The ‘just’ has a lot of meaning here. To me it suggests that language...

Simple Solutions 1 - Active Record versus Data Mapper - Matthias Noback

Having discussed different aspects of simplicity in programming solutions, let's start with the first topic that should be scrutinized regarding their simplicity: persisting model objects. As you may know, we have competing solutions which fall into two categories: they will follow either the Active Record (AR) or the Data Mapper pattern (DM) (as described...

Xdebug Update: July 2022 - Derick Rethans

Xdebug Update: July 2022 London, UK Tuesday, August 9th 2022, 09:06 BST In this monthly update I explain what happened with Xdebug development in this past month. These are normally published on the first Tuesday on or after the 5th of each month. Patreon and GitHub supporters will get it earlier,...

PHP 8.2.0 Beta 2 available for testing - PHP: Hypertext Preprocessor

The PHP team is pleased to announce the second beta release of PHP 8.2.0, Beta 2. This continues the PHP 8.2 release cycle, the rough outline of which is specified in the PHP Wiki.For source downloads of PHP 8.2.0 Beta 2 please visit the download page.Please carefully test this version and report any issues found in the bug reporting system.Please DO...

Narrowing types for static analysis - Jordi Boggiano

I have spent the last year moving a few big old codebases, including Composer, to PHPStan's level 8. Here are a few lessons I think I have learned in the process. Baseline + strict static analysis is the way to go I was for a while skeptical about using the baseline feature as it seemed to me like shoving all type errors under the rug, never to...

What's a simple solution? - Matthias Noback

"As I'm becoming a more experienced programmer, I tend to prefer simple solutions." Or something similar. As is the case with many programming-related quotes, this is somewhat of a blanket statement because who doesn't prefer simple solutions? To make it a powerful statement again, you'd have to explain what a simple solution is, and how you distinguish...

Serde: A modern serialization library for PHP 8.1 - Larry Garfield

Serde: A modern serialization library for PHP 8.1 A while back, I announced the release of my AttributeUtils library and its powerful attribute-based analyzer. That library was built primarily to support the many edge cases I needed for Crell/Serde, a new, robust serialization/deserialization library built specifically for PHP 8.1. Continue...

My book-writing workflow - Matthias Noback

By request: what's my workflow for writing books? Steps, tools, etc. Writing with the Leanpub platform A long time ago I noticed that testing-advocate Chris Hartjes published his books on Leanpub. When I had the idea of writing a book about the Symfony framework, I tried this platform and it was a good match. You can write your book...

When to use a trait? - Matthias Noback

When to use a trait? Never. Well, a trait could be considered to have a few benefits: Benefits If you want to reuse some code between multiple classes, using a trait is an alternative for extending the class. In that case the trait may be the better option because it doesn't become part of the type hierarchy, i.e. a class that uses...

Discover, share and read the best on the web

Follow RSS Feeds, Blogs, Podcasts, Twitter searches, Facebook pages, even Email Newsletters! Get unfiltered news feeds or filter them to your liking.

Get Inoreader
Inoreader - Follow RSS Feeds, Blogs, Podcasts, Twitter searches, Facebook pages, even Email Newsletters!