How to Replace switch With match in PHP 8
match is strict. No fall-through. Returns a value. One expression.

How to Replace switch With match in PHP 8
match is strict. No fall-through. Returns a value. One expression.

Here it is! GooseRSS! 🪿
Turn YouTube channels into RSS feeds so you can watch videos outside of YT.
And if you're into TV Shows and magnet links, that's supported too.
https://github.com/adegans/gooseRSS
#php #webdevelopment #php8 #selfhosted #rss #youtube #eztv #free #github
PHP 8 disable_functions bypass PoC
https://github.com/m0x41nos/TimeAfterFree
#HackerNews #PHP8 #disable_functions #bypass #PoC #security #vulnerability #exploit #GitHub
Modern Enums Battle: Python 3.10 vs PHP 8.1!
Both languages just added enums! Python's Enum class vs PHP's native enums - which implementation wins? This is HUGE!
#python #php #pythonvsphp #enums #python3.10 #php8.1 #modernfeatures #codecomparison #programmingcomparison #pythontricks #phptricks #programmingdebate #codingtips #typesafety #enummethods

Чистое API для чтения PHP-атрибутов
Сколько строк кода вы пишете, чтобы просто прочитать один атрибут у класса? Обычно это 3-5 строк с ReflectionClass, проверкой count($attributes) > 0 и вызовом newInstance(). А если нужно найти все атрибуты Validate в свойствах, методах и параметрах — код разрастается до неприличных размеров.
Spatie выпустили элегантное решение spatie/php-attribute-reader, которое превращает это безобразие в одну строку.
Match Expression vs Switch: Pattern Matching Showdown
PHP 8's match expression vs JavaScript switch. Which language's control flow is more elegant? You won't believe this!
#php #javascript #phpvsjavascript #matchexpression #switchstatement #patternmatching #php8 #programmingcomparison #codecomparison #controlflow #viralcoding

Attributes vs Decorators: Metadata Systems Battle
PHP 8 attributes vs JavaScript decorators (proposed). Which language's metadata system is more powerful? This will make you rethink everything!
#php #javascript #phpvsjavascript #attributes #decorators #metadata #php8 #annotations #programmingcomparison #codecomparison #frameworkfeatures #viralcoding

How to Use Union Types
int|string. Accept multiple. PHP 8. Catch invalid early.
