Phpstan-drupal now supports PHPStan 2.0
Matt Glaman
by mglaman
3M ago
PHPStan 2.0 was released a month ago, a massive milestone for the project. To learn about all the changes, I recommend reading the release announcement. phpstan-drupal now has a PHPStan 2.0 compatible release: https://github.com/mglaman/phpstan-drupal/releases/tag/2.0.0. The 1.x branch will be maintained as long as a version of Drupal Core uses it, at least until Drupal 10's end-of-life near the end of 2026. If applicable, I will backport bug fixes and features to 1.x ..read more
Visit website
The Web APIs powering the Drupal CMS trial experience
Matt Glaman
by mglaman
4M ago
This blog expands on my DrupalCon Barcelona talk, which I managed to squeeze into a twenty-minute session slot. You can download a copy of my slides. Unfortunately, I could not dedicate enough time to the project and stepped down as the trial track lead. The Drupal CMS trial is no longer based on my WebAssembly work, and an ongoing process is being conducted to provide an official demo ..read more
Visit website
Restrict Composer dependency updates to only patch releases
Matt Glaman
by mglaman
4M ago
I was doing website maintenance and checked for outdated dependencies with composer outdated. I usually filter with -D for checking direct dependencies and -p for packages with patch releases. These are typically easy pickings. I saw I was on 2.1.3 of the Honeypot module and 2.1.4 was available. So I ran composer update drupal/honeypot. I noticed the module was updated to 2.2.0, because my Composer constraint is drupal/honeypot: ^2.0, allowing minor updates. I figured that was fine enough. Turns out it wasn't ..read more
Visit website
Lenient Composer Plugin officially replaces lenient packages endpoint
Matt Glaman
by mglaman
4M ago
Well, it's official. My Drupal Lenient Composer Plugin has allowed the lenient Composer repository endpoint on Drupal.org to be sunset and removed. I created the mglaman/composer-drupal-lenient repository two years ago at DrupalCon Portland. It is pretty wild how much it has been adopted in just two years. Not only has it allowed the Drupal Association to dismantle some infrastructure, but it is also baked into the Drupal.org GitLab CI. The package is pushing over 3,000,000 downloads from Packagist ..read more
Visit website
Next stages for the Drupal Starshot trial experience
Matt Glaman
by mglaman
7M ago
Drupal CMS is the official name for Drupal Starshot. We officially have the Drupal CMS project on Drupal.org, where the previous prototype has been converted into the official codebase. This monolithic repository will contain the Composer project and packages (recipes) that makeup Drupal CMS.  ..read more
Visit website
Trial experience for Starshot update
Matt Glaman
by mglaman
8M ago
Earlier this month, I debuted a way to try out Drupal core and the Starshot prototype running in the browser using WebAssembly. It started as a passion project and fascination with new web technologies, something I had tried a year before but didn't find a fit for. Now, it's officially part of a Starshot initiative track. Here, you can access the trial experience: https://wasm-drupal.mglaman.dev/ Trial experience for Starshot track I am the lead for the Trial experience for Starshot track. The track has three phases ..read more
Visit website
Running Drupal on the Edge with WebAssembly
Matt Glaman
by mglaman
9M ago
At DrupalCon Portland, Dries announced Starshot during his State of Drupal presentation. Part of Starshot is the idea that we have Drupal CMS and Core. The big difference is that the Drupal CMS offering comes with standard contributed modules used by almost every existing Drupal build. Then, Dries showed a proposed wireframe for the Drupal.org download page. One of the first things I noticed was the "Launch" in the Drupal CMS section. I wasn't sure about the end goal:  ..read more
Visit website
Starshot, recipe to cook up ambitious Drupal applications
Matt Glaman
by mglaman
11M ago
This blog post was inspired by my time at DrupalCon Portland and the Driesnote, announcing Starshot. There has also been a story about Drupal being a series of building blocks for building your own CMS (or other application). Often, it has been compared to building a LEGO® set. The idea is that you have Drupal core and contributed modules, acting as individual pieces, to build an application that meets your desired needs. Oftentimes, this could be done without writing any code. As someone who built with Drupal, this made so much sense. You take disparate components, build on a solid base, and ..read more
Visit website
Writing tests first saves time and money later on
Matt Glaman
by mglaman
1y ago
The TalkingDrupal podcast had Alexey Korepov on to talk about Test Driven Development. Alexey has written the Test Helpers module, a development package that provides many useful utility tools for writing unit tests for your Drupal code ..read more
Visit website
Ensuring smart_date works for all versions of Drupal 10 and 11
Matt Glaman
by mglaman
1y ago
At MidCamp a few weeks ago, Martin Anderson-Clutz tapped me on the shoulder to check out a Smart Date issue for compatibility with Drupal 10.2. As of Drupal 10.2, ListItemBase::extractAllowedValues takes an array as its first argument versus a string. The method used to explode a newline separated string into an array for its callers. I took a look at the issue. The change affected the parseValues method in the SmartDateListItemBase class. The parseValues method takes the field's values and passes them to extractAllowedValues, the method with a changed signature in Drupal 11. The original meth ..read more
Visit website

Follow Matt Glaman on FeedSpot

Continue with Google
Continue with Apple
OR