#PHP Friends,
Why can't I do:
use A as B;
public function test(B $var): B
{
return $var;
}
I get "Return value must be of type B, A returned" which techically is true, but A and B are the same here?
In other words, I can use B everywhere, except as return type.
(on PHP 8.4.16)
Casting to bool by doing `$foo = $bar && true` just to spice up code reviews
Hot take: #PHP's strict mode is the new weak mode!🍿 Recent improvements to casting rules in default mode are so much better than the explicit casts that strict mode forces on ppl that use it!
The code is working. In Episode 2 of What I'm Working On, I'm giving full demos of the latest Artisan Pack UI packages.
I cover:
📝 Forms: A powerful form builder with conditional logic and submission management.
📊 Analytics: Real-time, local-first tracking that respects privacy.
🔎 SEO: Tools for sitemaps, redirects, and content scoring.
Watch the update here: https://youtu.be/7-Lgw35QHYg
#Laravel #PHP #WebDev #BuildInPublic
Global Scope CHAOS: var vs $GLOBALS!
JavaScript's global scope vs PHP's superglobals - which is messier? CONTROVERSIAL!
#php #javascript #phpvsjs #globalscope #superglobals #globalvariables #scopemanagement #viralcoding #programmingpatterns #bestpractices #mindblown #gotchas
https://www.youtube.com/watch?v=6xlPsrbGR78
RE: https://hachyderm.io/@itworldcup/115943591172752318
Ok #php community...
Let's play a game
Do we prefer #sql or #python ?
As I have been traumatized by the last results (no longer invited for Xmas at @phparch ) I will __NOT__ promise @eric will wear a batman cheerleader uniform if SQL wins at the upcoming #PHPtek2026
PHP Still Reigns? WordPress Drama and Laravel's Rise #shorts: PHP remains a relevant language. Despite WordPress drama and Laravel's funding, PHP's influence persists. #PHP #WordPress #Laravel #WebDevelopment https://www.youtube.com/shorts/excTPoysmf8

Hi everyone 👋
I’m new here and just joined phpc.social.
I’m currently learning HTML and CSS and starting my journey into web development.
I’m here to learn, follow PHP-related discussions, and get inspired by what others are building.
Looking forward to learning from the community 🙂
#php #html #css #backend #frontend #software #webdev
🔔 #PHP object-mapper library Valinor v2.3.2 released!
Mainly a bug-fix release, with 2 notable changes:
- End of PHP 8.1 support (support ended in December 2025)
- Removal of `composer-runtime-api` requirement, making this library completely dependency free. 🎉
https://github.com/CuyZ/Valinor/releases/tag/2.3.2
PHP HTML Cleaner: история разработки Composer-пакета для очистки HTML
Сегодня я хочу рассказать вам о тот как небольшая задача привела меня к созданию своего первого Composer пакета (ну да, логично, тайтл статьи именно такой :D). И так, у клиента из 1С, в реквизитах товара, прилетает превью описание такого вида...
https://habr.com/ru/articles/988344/
Before you install that package, take a closer look at its test suite. In this week's podcast, Aaron and I discuss what we look for and why it matters. #php #laravel https://masteringlaravel.io/daily/2026-01-23-laravel-podcast-what-could-be-worse-than-having-no-tests
Back in 2013, WebSockets were the "new" thing. I spent so much time building PHP polling fallbacks for browsers like IE9. This screenshot of my Windows 7 desktop with four browsers open for testing is peak old-school dev life. #BringsBack #Developer #RetroComputing #PHP #WebDevelopment
