det.social is one of the many independent Mastodon servers you can use to participate in the fediverse.
Mastodon Server des Unterhaltungsfernsehen Ehrenfeld zum dezentralen Diskurs.

Administered by:

Server stats:

2.1K
active users

#php

70 posts54 participants7 posts today
André Polykanine<p>Today I had a little discussion here on Mastodon with a friend of mine about single equal signs in conditions in <a href="https://dragonscave.space/tags/PHP" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>PHP</span></a>: `if ($a = 3…)`. Dear PHP community, what's the current take on those? I know that some people even use this "assignment-and-comparison" technique sometimes, but as it could lead to hideous hard-to-catch bugs, isn't it considered dangerous and won't it be eventually deprecated? I mean, did you have such discussions among internal devs? Thanks!</p>
PHP Weekly<p>Launched and built something with Laravel (what a great ecosystem)</p><p><a href="https://mind-jam.co.uk/analysis/HPMh3AO4Gm0" rel="nofollow noopener noreferrer" translate="no" target="_blank"><span class="invisible">https://</span><span class="ellipsis">mind-jam.co.uk/analysis/HPMh3A</span><span class="invisible">O4Gm0</span></a></p><p>Discussions: <a href="https://discu.eu/q/https://mind-jam.co.uk/analysis/HPMh3AO4Gm0" rel="nofollow noopener noreferrer" translate="no" target="_blank"><span class="invisible">https://</span><span class="ellipsis">discu.eu/q/https://mind-jam.co</span><span class="invisible">.uk/analysis/HPMh3AO4Gm0</span></a></p><p><a href="https://mastodon.social/tags/laravel" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>laravel</span></a> <a href="https://mastodon.social/tags/php" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>php</span></a> <a href="https://mastodon.social/tags/programming" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>programming</span></a> <a href="https://mastodon.social/tags/webdev" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>webdev</span></a></p>
brendt<p>We're currently preparing the very first beta release of Tempest. It's a huge milestone and I'm so excited for it!</p><p><a href="https://phpc.social/tags/php" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>php</span></a></p>
Christian Mayer<p><a href="https://mastodon.social/tags/API" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>API</span></a> Platform — The API-first <a href="https://mastodon.social/tags/framework" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>framework</span></a></p><p><a href="https://api-platform.com/" rel="nofollow noopener noreferrer" translate="no" target="_blank"><span class="invisible">https://</span><span class="">api-platform.com/</span><span class="invisible"></span></a></p><p><a href="https://mastodon.social/tags/PHP" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>PHP</span></a> <a href="https://mastodon.social/tags/Symfony" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>Symfony</span></a> <a href="https://mastodon.social/tags/Laravel" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>Laravel</span></a></p>
Christian Mayer<p>FrankenPHP: Modern <a href="https://mastodon.social/tags/PHP" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>PHP</span></a> App Server</p><p><a href="https://frankenphp.dev/" rel="nofollow noopener noreferrer" translate="no" target="_blank"><span class="invisible">https://</span><span class="">frankenphp.dev/</span><span class="invisible"></span></a></p><p><a href="https://mastodon.social/tags/AppServer" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>AppServer</span></a></p>
Alerta! Alerta!<p>Hey <a href="https://phpc.social/tags/PHP" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>PHP</span></a> friends. My websearch-foo is failing me and perhaps someone knows an answer:</p><p>With composer it is right now possible to only install a package when a certain extension is available by setting </p><p>{<br> require: {<br> ext-foo: "*"<br> }<br>}</p><p>Is there a way to do the opposite? Install a package only when a certain extension is **not** available?</p><p>I was so far not able to find anything in that direction...</p><p>Background are polyfills that should **only** be installed when an extension is missing...</p>
PHP Weekly<p>Build Laravel Login &amp; Registration from Scratch</p><p><a href="https://youtu.be/QtKZxNNPT_U" rel="nofollow noopener noreferrer" translate="no" target="_blank"><span class="invisible">https://</span><span class="">youtu.be/QtKZxNNPT_U</span><span class="invisible"></span></a></p><p>Discussions: <a href="https://discu.eu/q/https://youtu.be/QtKZxNNPT_U" rel="nofollow noopener noreferrer" translate="no" target="_blank"><span class="invisible">https://</span><span class="ellipsis">discu.eu/q/https://youtu.be/Qt</span><span class="invisible">KZxNNPT_U</span></a></p><p><a href="https://mastodon.social/tags/laravel" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>laravel</span></a> <a href="https://mastodon.social/tags/php" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>php</span></a> <a href="https://mastodon.social/tags/programming" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>programming</span></a> <a href="https://mastodon.social/tags/webdev" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>webdev</span></a></p>
PHP Weekly<p>Create AI Agents In PHP Powered By Google Gemini LLMs</p><p><a href="https://inspector.dev/create-ai-agents-in-php-powered-by-google-gemini-llms/" rel="nofollow noopener noreferrer" translate="no" target="_blank"><span class="invisible">https://</span><span class="ellipsis">inspector.dev/create-ai-agents</span><span class="invisible">-in-php-powered-by-google-gemini-llms/</span></a></p><p>Discussions: <a href="https://discu.eu/q/https://inspector.dev/create-ai-agents-in-php-powered-by-google-gemini-llms/" rel="nofollow noopener noreferrer" translate="no" target="_blank"><span class="invisible">https://</span><span class="ellipsis">discu.eu/q/https://inspector.d</span><span class="invisible">ev/create-ai-agents-in-php-powered-by-google-gemini-llms/</span></a></p><p><a href="https://mastodon.social/tags/php" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>php</span></a> <a href="https://mastodon.social/tags/programming" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>programming</span></a></p>
Larry Garfield<p>Unfortunately, Rector creates a ton of these when upgrading to constructor promotion... 😞 </p><p><a href="https://phpc.social/tags/PHP" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>PHP</span></a></p>
Larry Garfield<p><a href="https://phpc.social/tags/PHP" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>PHP</span></a> friends. I have vague memories of this being bad from an SA perspective:</p><p>public function __construct(<br> /**<br> * Blah blah<br> */<br> private string $blah;<br>) {}</p><p>And you must do:</p><p>/**<br> * @param string $blah <br> * Blah blah<br> */<br>public function __construct(<br> private string $blah;<br>) {}</p><p>But I cannot recall why. Does this ring a bell for anyone? (Asking before I spend too much effort fixing it...)</p>
Larry Garfield<p><a href="https://phpc.social/tags/PHPStan" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>PHPStan</span></a> users! What level do you consider "good enough" for your code?</p><p><a href="https://phpc.social/tags/PHP" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>PHP</span></a></p>
Dion Moult<p>I felt really guilty writing a new <a href="https://mastodon.social/tags/PHP" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>PHP</span></a> forum leaning towards minimalism (under 2k SLOC) knowing that forums are done to the death and there are well established options out there.</p><p>Then I realised `find . -type f -iname "*.php" | wc -l` is already &gt; 2000 for Vanilla Forums (let alone the bigger players).</p><p>What am I missing?</p>
Ben Clifford<p>another day, another <a href="https://mastodon.hawaga.org.uk/tags/PHP" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>PHP</span></a> web framework</p>
Stephan Hochdörfer<p>I am seeking speakers for my <span class="h-card" translate="no"><a href="https://phpc.social/@phpugffm" class="u-url mention" rel="nofollow noopener noreferrer" target="_blank">@<span>phpugffm</span></a></span> &amp; <span class="h-card" translate="no"><a href="https://phpc.social/@phpugmrn" class="u-url mention" rel="nofollow noopener noreferrer" target="_blank">@<span>phpugmrn</span></a></span> meetups. We prefer in-person presentations in Frankfurt or the Mannheim area, but remote talks are also an option.</p><p>If you have anything interesting to share with us, let us know. We'd be more than happy to have you! Thx!</p><p><a href="https://phpc.social/tags/php" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>php</span></a> <a href="https://phpc.social/tags/phpc" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>phpc</span></a> <a href="https://phpc.social/tags/phpugffm" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>phpugffm</span></a> <a href="https://phpc.social/tags/phpugmrn" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>phpugmrn</span></a></p>
MCMicHas anyone seen measurable performance improvements from <a class="hashtag" href="https://social.chilliet.eu/tag/php" rel="nofollow noopener noreferrer" target="_blank">#PHP</a> opcache preloading?<br>I tried to set it up on a test setup but could not see any improvements, I do not know if that means I’m doing it wrong or not preloading enough stuff, or if the feature simply got obsoleted by better auto preloading integrated in PHP newer versions or something.<br><br>The benchmarks at the time of 7.4 release says there was a 10% speedbump at the time.<br><br>Boosts welcome.
Luke Dorny<p>Combining all of the logic for my ogimage generator to use the page's proper image for the page's head:</p><p>ogimage = page's ogimage,<br>else = relatedproduct -&gt; ogimage, <br>else = page's cover image,<br>else = relatedproduct -&gt; cover image,<br>else = site -&gt; ogimage,<br>else = site -&gt; cover image,<br>else = site -&gt; fpoImage.</p><p>(where ogimage is for social sharing preview, and cover is for a page's card preview on the site)</p><p>It's brilliant!<br><a href="https://typo.social/tags/php" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>php</span></a> <a href="https://typo.social/tags/WebDesign" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>WebDesign</span></a> <a href="https://typo.social/tags/design" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>design</span></a> <span class="h-card" translate="no"><a href="https://mastodon.social/@getkirby" class="u-url mention" rel="nofollow noopener noreferrer" target="_blank">@<span>getkirby</span></a></span></p>
PHP Weekly<p>Relaticle - a totally free &amp; open-source CRM built with Laravel 12 + Filament 3</p><p><a href="https://github.com/Relaticle/relaticle" rel="nofollow noopener noreferrer" translate="no" target="_blank"><span class="invisible">https://</span><span class="">github.com/Relaticle/relaticle</span><span class="invisible"></span></a></p><p>Discussions: <a href="https://discu.eu/q/https://github.com/Relaticle/relaticle" rel="nofollow noopener noreferrer" translate="no" target="_blank"><span class="invisible">https://</span><span class="ellipsis">discu.eu/q/https://github.com/</span><span class="invisible">Relaticle/relaticle</span></a></p><p><a href="https://mastodon.social/tags/laravel" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>laravel</span></a> <a href="https://mastodon.social/tags/opensource" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>opensource</span></a> <a href="https://mastodon.social/tags/php" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>php</span></a> <a href="https://mastodon.social/tags/programming" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>programming</span></a> <a href="https://mastodon.social/tags/webdev" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>webdev</span></a></p>
LeedsPHP<p>🚨Join us on Wednesday 21st of May for our event on Feedback Loops &amp; Event Sourcing 🚨</p><p><a href="https://www.meetup.com/leedsphp/events/307248301/" rel="nofollow noopener noreferrer" translate="no" target="_blank"><span class="invisible">https://www.</span><span class="ellipsis">meetup.com/leedsphp/events/307</span><span class="invisible">248301/</span></a></p><p><a href="https://phpc.social/tags/leedsphp" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>leedsphp</span></a> <a href="https://phpc.social/tags/php" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>php</span></a> <a href="https://phpc.social/tags/leedstech" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>leedstech</span></a> <a href="https://phpc.social/tags/feedbackloops" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>feedbackloops</span></a> <a href="https://phpc.social/tags/eventsourcing" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>eventsourcing</span></a></p>
PHP Weekly<p>PHP recap for week 17/2025</p><p><a href="https://discu.eu/weekly/php/2025/17/" rel="nofollow noopener noreferrer" translate="no" target="_blank"><span class="invisible">https://</span><span class="">discu.eu/weekly/php/2025/17/</span><span class="invisible"></span></a></p><p><a href="https://mastodon.social/tags/php" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>php</span></a> <a href="https://mastodon.social/tags/programming" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>programming</span></a></p><p>Get RSS feeds and support this bot with the premium plan: <a href="https://discu.eu/premium" rel="nofollow noopener noreferrer" translate="no" target="_blank"><span class="invisible">https://</span><span class="">discu.eu/premium</span><span class="invisible"></span></a></p>
OTX Bot<p>The Return of Pharmacy-Themed Spam</p><p>Pharmaceutical-themed spam campaigns continue to target individuals and organizations, particularly in the healthcare and pharmaceutical sectors. Recent observations reveal a bulk spam campaign using spoofed identities and compromised infrastructure to send deceptive emails. The attackers employ tactics such as domain spoofing, DKIM signature manipulation, and the use of compromised servers running malicious PHP scripts. The emails contain links that redirect users to fraudulent websites posing as legitimate Canadian pharmacies, often including a fake security verification step. These campaigns aim to trick recipients into revealing sensitive information or potentially installing malware. The persistence of pharmacy-themed spam highlights the need for continued vigilance and awareness of common scam tactics.</p><p>Pulse ID: 680cb26edefa55cafa886d51<br>Pulse Link: <a href="https://otx.alienvault.com/pulse/680cb26edefa55cafa886d51" rel="nofollow noopener noreferrer" translate="no" target="_blank"><span class="invisible">https://</span><span class="ellipsis">otx.alienvault.com/pulse/680cb</span><span class="invisible">26edefa55cafa886d51</span></a> <br>Pulse Author: AlienVault<br>Created: 2025-04-26 10:16:14</p><p>Be advised, this data is unverified and should be considered preliminary. Always do further verification.</p><p><a href="https://social.raytec.co/tags/Canadian" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>Canadian</span></a> <a href="https://social.raytec.co/tags/CyberSecurity" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>CyberSecurity</span></a> <a href="https://social.raytec.co/tags/Email" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>Email</span></a> <a href="https://social.raytec.co/tags/Healthcare" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>Healthcare</span></a> <a href="https://social.raytec.co/tags/ICS" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>ICS</span></a> <a href="https://social.raytec.co/tags/InfoSec" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>InfoSec</span></a> <a href="https://social.raytec.co/tags/Mac" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>Mac</span></a> <a href="https://social.raytec.co/tags/Malware" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>Malware</span></a> <a href="https://social.raytec.co/tags/OTX" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>OTX</span></a> <a href="https://social.raytec.co/tags/OpenThreatExchange" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>OpenThreatExchange</span></a> <a href="https://social.raytec.co/tags/PHP" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>PHP</span></a> <a href="https://social.raytec.co/tags/Pharmacy" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>Pharmacy</span></a> <a href="https://social.raytec.co/tags/Spam" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>Spam</span></a> <a href="https://social.raytec.co/tags/bot" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>bot</span></a> <a href="https://social.raytec.co/tags/AlienVault" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>AlienVault</span></a></p>