2025-12-02 07:44:01
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
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
Any super smart #php folks here know how to mock built-in functions like ‘glob’?
I know I could wrap calls to it in a class that I could mock, but I hate adding code just for a test.
Please boost!
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 was interviewed by Marcos Marcolin for the Brazilian #PHP community. It's a long interview, but I had fun with it. 🙂
https://www.marcosmarcolin.com.br/blog/php-30-years-la…
In May, I'll be giving what will probably be the first ever PHP 8.6 talk: Piping Hot PHP.
8.5 isn't even cool yet, but 8.6 already has some hot new features. Combining 8.5's pipe operator with the new partial function application capabilities in 8.6 should give us a whole new way to think about structuring code!
Want to be the first to see the future? Get your tickets to #phptek
Oops: Error: Maximum call stack size of 2048000 bytes (zend.max_allowed_stack_size - zend.reserved_stack_size) reached. Infinite recursion?
#PHP
🚀 #PHP 150x faster – no rewrite needed! #FrankenPHP threads #Swow coroutines #PHP Generators
Traits in #PHP are a limited purpose tool, but they do have a purpose.
https://www.garfieldtech.com/blog/beyond-abstract
RE: #PHP ist so weit abgerutscht?
Was ist denn heute bei Web
Bypassing #PHP visibility controls. Please don't do this often.
https://www.garfieldtech.com/blog/phptricks-access-control-bypass
What in the #PHP?
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("
#hitcounter #webcounter #webdev #php
UPDATE: the
New Year, Same Job Search.
If you are looking for a Staff/Principal level #PHP developer, with a long history of helping both projects and teams update and modernize to become more robust and reliable, look no further because you've found him! I've worked on multiple major OSS projects, including PHP itself.
US-based, remote-only, plenty experience working for non-US companies as we…
#PhpStorm 2025.3.2 is now available 👀
#php
https://youtrack.jetbrains.com/article
Running #Lando on GitHub Actions. #Laravel #PHP
https://www.
Traits in #PHP are a limited purpose tool, but they do have a purpose.
https://www.garfieldtech.com/blog/beyond-abstract
Using #PSR-3 placeholders properly in #PHP (and other awesome alliterations).
https://peakd.com/hive-168588/@crell/u
Quick and easy #PHP code generation testing.
https://www.garfieldtech.com/blog/code-generation-testing
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
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
Advanced PHPUnit Data Provider shenanigans. #PHP
Part 1: https://peakd.com/hive-168588/@crell/fun-with-phpunit-data-providers
Part 2:
RE: #PHP d…