2025-12-05 22:05:09
I'm not 100% sure this is the right way, but I sure didn't have “Contribute to the php.net web site" on my 2025 bingo card, and yet…
/cc @…
#PHP
I'm not 100% sure this is the right way, but I sure didn't have “Contribute to the php.net web site" on my 2025 bingo card, and yet…
/cc @…
#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
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
Advanced PHPUnit Data Provider shenanigans. #PHP
Part 1: https://peakd.com/hive-168588/@crell/fun-with-phpunit-data-providers
Part 2:
Ran into this little quirk of (many) C-syntax languages, yesterday. Hadn't seen it before.
#PHP
```
<?php
function getApiData() {
https://example.org/api
return file_get_contents("
When should you use #PHP Enums, and when shouldn't you?
https://peakd.com/hive-168588/@crell/on-the-use-of-enums
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
stscoundrel/struct: Structs for PHP. Simple data transfer objects. Supports immutability.
#php
I currently have 4 in-flight RFCs for PHP, and one more I'm trying to launch soon. I'm not actually paid for any of this.
I think I may be the problem...
#PHP #OpenSource
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.
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/
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
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
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…
There's no such thing as $_PUT in #PHP . One must fake it
$_PUT = array();
parse_str(file_get_contents('php://input'), $_PUT);
RE: #PHP d…
⚡ 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
Freshly built images, same issue. #PHP 8.4 image output should be the same as PHP 8.5 output:
RE: #php
📦 #Laravel Auto Transaction package eliminates manual database transaction management #PHP #database #opensource
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
#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…
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
I dare you to build a website with plain #php, json markdown and csv. No sql, no laravel, no twig
On empty return values. #PHP
https://www.garfieldtech.com/blog/empty-return-values
At #longhornphp, @… is talking about the history of floss.
I didn't think I was at a dental conference, but here we are.
#php
When should you use #PHP Enums, and when shouldn't you?
https://peakd.com/hive-168588/@crell/on-the-use-of-enums
RE: #php