2025-09-03 03:44:02
Let's be controversial: In modern #PHP, you should never type-hint an array.
https://peakd.com/php/@crell/php-never-type-hint-on-arrays
Using #PHP arrays as pseudo-objects is almost never the right answer. They're less self-documenting, slower, worse on memory, and more bug prone.
https://peakd.com/php/@crell/php-use-a
Queens of #PHP, from sometime in the '00s.
@… @…
(Not sure Laura is on here, and I haven't talked to Dhwani in… at least 15 years…
Functional programming isn't just for Haskell developers. It's for #PHP developers, too. "Thinking Functionally in PHP" is available from LeanPub.
https://leanpub.com/thinking-functiona
RE: #PHP d…
New post on how to Unlock Composer Plugins by Self Hosting Renovate on GitHub Actions
https://blog.wyrihaximus.net/2025/10/unlock-composer-plugins-by-self-hosting-renovate/
Don't miss our Christmas meetup on December 11th, featuring talks about #HTMX and the latest updates on #PHP 8.5!
Sign up here: https://www.
stscoundrel/struct: Structs for PHP. Simple data transfer objects. Supports immutability.
#php
I've been dragging a `~/.ssh` directory around with me since at least 2008.
I can probably safely purge these, now, though—right? (-;
```
❯ cat ~/.ssh/known_hosts | grep php.net | awk {'print $1'}
y2.php.net,69.147.83.197
y1.php.net,69.147.83.196
```
#php
Let's be controversial: In modern #PHP, you should never type-hint an array.
https://peakd.com/php/@crell/php-never-type-hint-on-arrays
⚡ Huge time saver for #PHP developers looking to streamline debugging sessions. No more getting stuck in third-party code - focus directly on the parts that matter for your application
🔧 Powerful feature demonstrated by Derick Rethans shows real-world workflow optimization. Perfect for complex debugging in large applications with extensive dependencies and framework code
RE: #php
There's no such thing as $_PUT in #PHP . One must fake it
$_PUT = array();
parse_str(file_get_contents('php://input'), $_PUT);
Null is problematic, but why? Let's see why, and let that guide us to new alternatives. #PHP
https://peakd.com/hive-168588/@crell/much-ado-about-null
Freshly built images, same issue. #PHP 8.4 image output should be the same as PHP 8.5 output:
I just updated 8 libraries I maintain to run on PHP 8.5.
None of them required any changes for 8.5. One had two deprecation nitpicks left over from 8.4 that I'd not previously caught, trivially fixed.
It took me a little over an hour to do all 8, including some other maintenance at the same time.
PHP upgrades rock if your code is good. 🙂 :elephpant:
#PHP
#phpugmrn meetup on Dec 11th - save the date!
We have scheduled talks abot HTMX & PHP 8.5. Do not miss!
Sign up here: https://www.meetup.com/phpug-rhein-neckar/events/30547833…
On empty return values. #PHP
https://www.garfieldtech.com/blog/empty-return-values
I dare you to build a website with plain #php, json markdown and csv. No sql, no laravel, no twig
At #longhornphp, @… is talking about the history of floss.
I didn't think I was at a dental conference, but here we are.
#php
RE: #php
When should you use #PHP Enums, and when shouldn't you?
https://peakd.com/hive-168588/@crell/on-the-use-of-enums
I benchmarked #PHP's native serializer vs code export. You won't believe what I found!
https://peakd.com/hive-168588/@crell/benchmarking-serialization
When should you use #PHP Enums, and when shouldn't you?
https://peakd.com/hive-168588/@crell/on-the-use-of-enums
#claudecode max subscription is so damn worth the money !!!!!
created 188 custom phpstan rules 😤
- step 1: run 10 agents in parallel to create them (opencode with grok-coder)
- step 2: verify with trigger files
- step 3: let claude/gemini/codex check everything
#php…
Today I would very much benefit from extension functions in #PHP...
📦 #Laravel Auto Transaction package eliminates manual database transaction management #PHP #database #opensource