2025-11-12 23:33:02
Advanced PHPUnit Data Provider shenanigans. #PHP
Part 1: https://peakd.com/hive-168588/@crell/fun-with-phpunit-data-providers
Part 2:
Advanced PHPUnit Data Provider shenanigans. #PHP
Part 1: https://peakd.com/hive-168588/@crell/fun-with-phpunit-data-providers
Part 2:
I dare you to build a website with plain #php, json markdown and csv. No sql, no laravel, no twig
Freshly built images, same issue. #PHP 8.4 image output should be the same as PHP 8.5 output:
There's no such thing as $_PUT in #PHP . One must fake it
$_PUT = array();
parse_str(file_get_contents('php://input'), $_PUT);
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
I benchmarked #PHP's native serializer vs code export. You won't believe what I found!
https://peakd.com/hive-168588/@crell/benchmarking-serialization
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
#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…
When should you use #PHP Enums, and when shouldn't you?
https://peakd.com/hive-168588/@crell/on-the-use-of-enums
#PHP 8.1 calls, it would like it's credits back 🤣 https://social.skrasek.us/@hunter/115119499683395147
My daughter (1) decided to play with my #ElePHPants...
#php
Today I would very much benefit from extension functions in #PHP...
Dammit #PHP: zend_mm_heap corrupted
⚡ 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
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
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/
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
When should you use #PHP Enums, and when shouldn't you?
https://peakd.com/hive-168588/@crell/on-the-use-of-enums
On empty return values. #PHP
https://www.garfieldtech.com/blog/empty-return-values
Traits in #PHP are a limited purpose tool, but they do have a purpose.
https://www.garfieldtech.com/blog/beyond-abstract
At #longhornphp, @… is talking about the history of floss.
I didn't think I was at a dental conference, but here we are.
#php
Dear god I hate stateful services. Please, people, stop writing stateful service objects. You're just making more work for everyone.
#PHP
📦 #Laravel Auto Transaction package eliminates manual database transaction management #PHP #database #opensource