php

Back Open Paginator
23.01.2026 20:05
wanwizard (@wanwizard@mastodon.scot)

#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)




Show Original Post


23.01.2026 19:24
ellesaurus (@ellesaurus@toot.lgbt)

Casting to bool by doing `$foo = $bar && true` just to spice up code reviews

#PHP #WebDev




Show Original Post


23.01.2026 18:24
nicolasgrekas (@nicolasgrekas@phpc.social)

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!




Show Original Post


23.01.2026 17:30
viewfromthebox (@viewfromthebox@mastodon.social)

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: youtu.be/7-Lgw35QHYg




Show Original Post


23.01.2026 17:10
TurboLearnPHP (@TurboLearnPHP@mastodon.social)

Global Scope CHAOS: var vs $GLOBALS!

JavaScript's global scope vs PHP's superglobals - which is messier? CONTROVERSIAL!

youtube.com/watch?v=6xlPsrbGR78




Show Original Post


23.01.2026 16:58
dgoosens (@dgoosens@phpc.social)

RE: hachyderm.io/@itworldcup/11594

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

#phpc




Show Original Post


23.01.2026 16:41
carolinacodes (@carolinacodes@mastodon.social)

PHP Still Reigns? WordPress Drama and Laravel's Rise : PHP remains a relevant language. Despite WordPress drama and Laravel's funding, PHP's influence persists. youtube.com/shorts/excTPoysmf8





Show Original Post


23.01.2026 16:40
M_hossein_rajabi (@M_hossein_rajabi@phpc.social)

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




Show Original Post


23.01.2026 16:38
Romm (@Romm@mastodon.social)

🔔 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. 🎉

github.com/CuyZ/Valinor/releas




Show Original Post


23.01.2026 15:32
habr (@habr@zhub.link)

PHP HTML Cleaner: история разработки Composer-пакета для очистки HTML

Сегодня я хочу рассказать вам о тот как небольшая задача привела меня к созданию своего первого Composer пакета (ну да, логично, тайтл статьи именно такой :D). И так, у клиента из 1С, в реквизитах товара, прилетает превью описание такого вида...

habr.com/ru/articles/988344/

#php #html #cleaner #package




Show Original Post


23.01.2026 15:12
jclermont (@jclermont@phpc.social)

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 masteringlaravel.io/daily/2026




Show Original Post


23.01.2026 13:32
richardorilla (@richardorilla@mastodon.social)

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.





Show Original Post


1 ...176 177 178 179 180 181 182 183 184 185 186 ...526
UP