PHP

Back Open Paginator
30.03.2026 17:11
TurboLearnPHP (@TurboLearnPHP@mastodon.social)

Upload Filetype Allowlist

Block dangerous uploads with strict MIME checks.

youtube.com/watch?v=5l5Zu4OyjsI




Show Original Post


30.03.2026 16:46
wolframkriesing (@wolframkriesing@mastodontech.de)

oooh, #PHP takes numbers like 50_000 too, I didn't know.
And I also don't know if #js learned it from there ... anyways, both know it now. Good




Show Original Post


30.03.2026 16:12
jclermont (@jclermont@phpc.social)

Laravel makes it easy to fake UUIDs in tests with Str::createUuidsUsing, but returning a plain string instead of a proper UUID object can break in ways you might not anticipate. #php #laravel masteringlaravel.io/daily/2026




Show Original Post


30.03.2026 14:21
symfony (@symfony@mastodon.social)

🎙️🔥 Symfony, comme vous ne l’avez jamais entendu

1h15 d’échange avec Nicolas Grekas — vision, open source, IA… avec Yoan Bernabeu 💥

Incontournable pour tous les passionnés de Symfony !

🎥 youtu.be/eok2xwvK4Mc





Show Original Post


30.03.2026 11:34
Laracopilot (@Laracopilot@mastodon.social)

Genuine question for the Laravel community 👇

What's the most painful part of your current development workflow?

→ Repetitive boilerplate setup every project?
→ Fixing generic AI output to match Laravel conventions?
→ Onboarding new team members to existing codebases?
→ Writing tests last or never at all?
→ Something else entirely?

We're building LaraCopilot based on real developer pain. Every reply shapes our roadmap.




Show Original Post


30.03.2026 11:00
zymurgic (@zymurgic@mastodon.online)

A thought about legacy code styles, and esoteric-but-works code styles:

I found code that looks like this in a composer-loaded library recently:

static function load() {
$args = func_get_args();

$data = array_shift($args);
$type = array_shift($args);
...
}

which really confused static code analysis tools that you'd use in an IDE. You're supposed to always call load() with a data and type parameter, but they didn't declare it as such.

Is it worth a pull request with phpdoc?

#php




Show Original Post


30.03.2026 10:07
decompwlj (@decompwlj@mathstodon.xyz)

A250048: Numbers n such that m = floor(n/6) is coprime to n and, if nonzero, m is also a term of the sequence
A250048 ➡️ oeis.org/A250048

3D graph, threejs - webGL ➡️ decompwlj.com/3Dgraph/A250048.
3D graph Gen, threejs animation ➡️ decompwlj.com/3DgraphGen/A2500
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


30.03.2026 10:03
decompwlj (@decompwlj@mathstodon.xyz)

Decomposition into weight × level + jump of prime numbers:
- a new classification of primes ➡️ decompwlj.com/primedecomp.php
- in 3D - threejs - webGL ➡️ 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


30.03.2026 10:02
decompwlj (@decompwlj@mathstodon.xyz)

A250047: Numbers n such that m = floor(n/7) is not coprime to n and, if nonzero, m is also a term of the sequence
A250047 ➡️ oeis.org/A250047

3D graph, threejs - webGL ➡️ decompwlj.com/3Dgraph/A250047.
3D graph Gen, threejs animation ➡️ decompwlj.com/3DgraphGen/A2500
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


30.03.2026 05:56
decompwlj (@decompwlj@mathstodon.xyz)

A249723: Numbers n such that there is a multiple of 9 on row n of Pascal's triangle with property that all multiples of 4 on the same row (if they exist) are larger than it
A249723 ➡️ oeis.org/A249723

3D graph, threejs - webGL ➡️ decompwlj.com/3Dgraph/A249723.
3D graph Gen, threejs animation ➡️ decompwlj.com/3DgraphGen/A2497
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


30.03.2026 05:50
decompwlj (@decompwlj@mathstodon.xyz)

A249669: a(n) = floor(prime(n)^(1+1/n))
A249669 ➡️ oeis.org/A249669

3D graph, threejs - webGL ➡️ decompwlj.com/3Dgraph/A249669.
3D graph Gen, threejs animation ➡️ decompwlj.com/3DgraphGen/A2496
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


29.03.2026 23:10
TurboLearnPHP (@TurboLearnPHP@mastodon.social)

How to Replace strpos With str_contains

str_contains returns bool. No more === false checks. PHP 8+

youtube.com/watch?v=Omin0qJyRtA




Show Original Post


1 2 3 4 5 6 ...468
UP