php

Back Open Paginator
28.02.2026 17:04
alexloskutov (@alexloskutov@mastodon.social)

Чистое API для чтения PHP-атрибутов

Сколько строк кода вы пишете, чтобы просто прочитать один атрибут у класса? Обычно это 3-5 строк с ReflectionClass, проверкой count($attributes) > 0 и вызовом newInstance(). А если нужно найти все атрибуты Validate в свойствах, методах и параметрах — код разрастается до неприличных размеров.

Spatie выпустили элегантное решение spatie/php-attribute-reader, которое превращает это безобразие в одну строку.

dev-notes.ru/articles/php/attr




Show Original Post


28.02.2026 17:02
alexloskutov (@alexloskutov@mastodon.social)

Руководство по стилю объектного проектирования для PHP 8.5

Хватит писать код, который только имитирует инкапсуляцию. 🙃

В 2019-м Нобак выпустил Object Design Style Guide — манифест о том, какими должны быть объекты. В 2025-м PHP 8.5 наконец-то догнал эту философию и встроил её прямо в синтаксис.

Теперь не нужно выбирать между «правильно» и «быстро». В статье рассматриваем, как новые фичи меняют повседневную практику.

dev-notes.ru/articles/php/obje




Show Original Post


28.02.2026 14:01
nyamsprod (@nyamsprod@phpc.social)

Interesting fact that no one cares about Laravel13 soon to be released will require PHP8.3 minimum whereas the latest Symfony8 requires PHP8.4 different framework, different strategy I presume. But still, I would have expected an alignment of L13 to PHP8.4 🤷 #PHP guess I was wrong




Show Original Post


28.02.2026 12:02
habr (@habr@zhub.link)

ApiKit — чистый REST API в Symfony без шаблонного кода

REST API на Symfony писать удобно, но есть одна скучная особенность: контроллеры быстро начинают обрастать повторяющимся кодом. Парсинг запроса, валидация, однотипная JSON‑обёртка, try/catch с преобразованием исключений в HTTP‑ответы. Всё это несложно, но со временем размазывается по десяткам эндпоинтов и отвлекает от основной задачи. Ниже - способ привести все в порядок с помощью небольшого бандла, который я использую в своих проектах.

habr.com/ru/articles/1004904/

#symfony #php #rest #api




Show Original Post


28.02.2026 11:10
TurboLearnPHP (@TurboLearnPHP@mastodon.social)

PHP String Increment Magic

Wait for it! PHP can increment strings. See what happens with 'Z'++ and '9'++. This will blow your mind!

youtube.com/watch?v=BRIbAfafHSg




Show Original Post


28.02.2026 10:04
decompwlj (@decompwlj@mathstodon.xyz)

A145749: Numbers n such that sigma(n)+phi(n)=sigma(n+1)+phi(n+1)
A145749 ➡️ oeis.org/A145749

3D graph, threejs - webGL ➡️ decompwlj.com/3Dgraph/A145749.
3D graph Gen, threejs animation ➡️ decompwlj.com/3DgraphGen/A1457
2D graph, first 500 terms ➡️ decompwlj.com/2Dgraph500terms/

#decompwlj #math #mathematics #maths #sequence #OEIS #JavaScript #php #graph #3D #threejs #webGL #triangular #numbers #primes #PrimeNumbers #palindromes #animation #FundamentalTheoremOfArithmetic #sequences #NumberTheory #classification #integer #decomposition #number #theory #equation #graphs #sieve #fundamental #theorem #arithmetic #research





Show Original Post


28.02.2026 10:00
decompwlj (@decompwlj@mathstodon.xyz)

Decomposition into weight × level + jump of prime numbers in 3D, threejs - webGL (log(weight), log(level), log(jump))
➡️ decompwlj.com/3Dgraph/Prime_nu

#decompwlj #math #mathematics #maths #sequence #OEIS #JavaScript #php #graph #3D #threejs #webGL #triangular #numbers #primes #PrimeNumbers #palindromes #animation #FundamentalTheoremOfArithmetic #sequences #NumberTheory #classification #integer #decomposition #number #theory #equation #graphs #sieve #fundamental #theorem #arithmetic #research





Show Original Post


28.02.2026 09:58
decompwlj (@decompwlj@mathstodon.xyz)

A145471: Primes p such that (5+p)/2 is prime
A145471 ➡️ oeis.org/A145471

3D graph, threejs - webGL ➡️ decompwlj.com/3Dgraph/A145471.
3D graph Gen, threejs animation ➡️ decompwlj.com/3DgraphGen/A1454
2D graph, first 500 terms ➡️ decompwlj.com/2Dgraph500terms/

#decompwlj #math #mathematics #maths #sequence #OEIS #JavaScript #php #graph #3D #threejs #webGL #triangular #numbers #primes #PrimeNumbers #palindromes #animation #FundamentalTheoremOfArithmetic #sequences #NumberTheory #classification #integer #decomposition #number #theory #equation #graphs #sieve #fundamental #theorem #arithmetic #research





Show Original Post


28.02.2026 09:54
codebyjeff (@codebyjeff@hachyderm.io)

Not great timing with the economy, but finally getting the long vacation I need

Looking for #web #development work, starting whenever you want me

I do #php ( mainly #laravel ) and all the big front end framework stuff

All the web jazz

#fediHire




Show Original Post


28.02.2026 09:24
brendt (@brendt@phpc.social)

I'd say this weekend is the perfect time to participate in the 100M-row challenge with #PHP!

github.com/tempestphp/100-mill




Show Original Post


28.02.2026 08:56
michabbb (@michabbb@social.vivaldi.net)

🚀 #PHP 150x faster – no rewrite needed! #FrankenPHP threads + #Swow coroutines + #PHP Generators + #Go = 🔥 performance for legacy & new code. Talk by Johan Janssens

gamma.app/docs/PHP-150x-Faster





Show Original Post


28.02.2026 05:02
decompwlj (@decompwlj@mathstodon.xyz)

A145292: Composite numbers generated by the Euler polynomial x^2 + x + 41
A145292 ➡️ oeis.org/A145292

3D graph, threejs - webGL ➡️ decompwlj.com/3Dgraph/A145292.
3D graph Gen, threejs animation ➡️ decompwlj.com/3DgraphGen/A1452
2D graph, first 500 terms ➡️ decompwlj.com/2Dgraph500terms/

#decompwlj #math #mathematics #maths #sequence #OEIS #JavaScript #php #graph #3D #threejs #webGL #triangular #numbers #primes #PrimeNumbers #palindromes #animation #FundamentalTheoremOfArithmetic #sequences #NumberTheory #classification #integer #decomposition #number #theory #equation #graphs #sieve #fundamental #theorem #arithmetic #research





Show Original Post


1 ...106 107 108 109 110 111 112 113 114 115 116 ...525
UP