
2025-07-25 21:48:09
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
More than 50% of all websites run with #PHP, but some douchebags still say "and more." Crazy...
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
Don't miss our Sylius meetup on June 26th!
Register now and secure your spot: #php
Traits in #PHP are a limited purpose tool, but they do have a purpose.
https://www.garfieldtech.com/blog/beyond-abstract
All about the new pipe operator in PHP 8.5:
#PHP
The PHPStan elePHPants arrived today 🎉 ! Well done @…!
#PHP #ElePHPants
Dear god I hate stateful services. Please, people, stop writing stateful service objects. You're just making more work for everyone.
#PHP
Who do I have to buy a giant coffee for so that this crap that’s been around for three million years finally gets fixed? 🤔 🍵 😏
In #PHP, you can use both elseif and else if - except when you use the alternative control structure syntax (: ... endif;), where ONLY elseif works.
Why does it have to be so inconsistent and confusing?
Wouldn’t it be great if PHP just picked one way t…
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 hate it when I get a great idea for how to rewrite a library I've already written, but way better.
#PHP #Programming
Our Sylius meetup on June 26th is a great chance to meet fellow developers and Sylius enthusiasts. Come network and learn from each other!
Register here: https://www.meetup.com/phpug-rhein-neckar/events/305478305/
"PHP: 30 years of generating strings on the server." --@…
#JetBrainsPHPverse2025 #PHP
#Coroutines in #PHP: Functions That Can Pause and Resume ⏸️
🔄 #Generators provide asymmetric, stackless coroutines - can pause execution with yield keyword and resume with next() method…
The amount of pointless, useless, overly-complex indirection I see in so many well-established, popular projects makes me very sad.
Except when I am trying to debug it; then it makes me very angry.
#PHP #Programming
It's 2025. If your library still doesn't have types in it (parameter, return, and property), I assume it's abandoned and I should not use it.
There are no exceptions to this statement. Not typing your PHP code in 2025 is irresponsible. No, docblocks are not good enough.
#PHP
• 🔧 Extensible architecture via #PHP and #JavaScript plugins with lazy loading capabilities for performance
• 🎨 Visual #CMS functionality enabling live website content editing and drag & dr…
OH: "writing test isn't fun. But gotta say, kinda really helps with my anxiety."
#programming #PHP
That awkward moment when you spend 2 hours writing code without running it, then try to run it... and it works perfectly.
I'm scared...
#PHP
I like JetBrains products, but why in the hell does CLion, which you'd use to work on php-src, not support phpt files, which you would only need to use if you're working on php-src? It instead tells you to use PHPStorm, which... doesn't support the C code that is php-src.
This makes no sense to me at all.
#JetBrains
Advanced PHPUnit Data Provider shenanigans. #PHP
Part 1: https://peakd.com/hive-168588/@crell/fun-with-phpunit-data-providers
Part 2:
I've been an #eBay #developer for 20 years, yeah, a long time 😏
I am working on a #Amazon Lister - build from scratch with
I recently joined a startup. Nearly the entire code base was build by a single person over 3 years, who was learning programming as he went. Yep, he used #PHP.
Is it good code? Not by a long shot, though I've definitely seen worse. But it *works*, runs, and is making money. Now we can work to make it better, and make even more money.
*That* is why PHP is so popular, and still so relevant…
another #jetbrains giveaway
#phpstorm #php #coding
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
Seriously, who decided that "request," "response," and "result" should all begin with the same two letters? Damnit, English, could you spare *one* second for folks trying to write HTTP handling logic?
#Programming #PHP
Our Sylius meetup is coming to Mannheim on June 26th! Are you ready to join us for an evening of learning, networking, and fun?
Register here: https://www.meetup.com/phpug-rhein-neckar/events/305478305/
oh, i almost forgot:
- #PHP is great
- #JSON schema validation is great: https://github.com/opis/json-schema
(From yesterday)
Happy Birthday to #PHP, in Lego form!
https://www.youtube.com/watch?v=mmsKDVAvrbw
I don't mind solving hard and interesting problems.
But I do get unreasonably angry at tools that so clearly care about only one specific use case and give a big FU to any other, like the one I'm trying to solve.
#Programming #PHP
#ClaudeCode #SDK for #PHP - Streamlined AI coding assistance integration 🚀
🔌 Stream #Claude …
Pet peeve: In the process of making your library "simple" to setup or demo, you also make it difficult/impossible to use cleanly in a DI-based system.
Pet peeve: In the process of making your library DI-friendly, you make it so complicated that it's practically unusable outside of a pre-configured framework.
Come on, #PHP. We can do better than this. We *can* have this cake an…
What's the preferred easy-to-use benchmarking tool these days for testing full HTTP responses? I know ab (apache bench), but it's also very old so I assume there's a new favorite.
This is for mostly informal tests, so ease of use > capability. Must run on Linux CLI.
#PHP
Seriously, why has the PHPStorm/IntelliJ Markdown plugin been broken for so many years? I don't want a preview, the settings all day to just show me the editor, so it shows me only the preview for README.md, and split-screen for anything else.
WHY? HOW is a company with JetBrains' engineering prowess not able to fix this, years after I first encountered and reported it? As have many others?
#PHP
#Laravel #Livewire 4: The Future of #PHP Components 🚀
🔧 Single-file components with native #JavaScript