photog.social is one of the many independent Mastodon servers you can use to participate in the fediverse.
A place for your photos and banter. Photog first is our motto Please refer to the site rules before posting.

Administered by:

Server stats:

246
active users

#php

26 posts21 participants5 posts today

Periodic reminder Stop using boolean as options flags in #PHP use Enum (Backed or Not that's not the point) instead. Boolean flags are hard to read and to remember and they often lead to tricky bugs or at best a required trip to the API documentation if it exists (defaulting to scanning the codebase for the method definition), Enum are explicit and readable and offer granularity instead of a simple yes/no answer

What are folks using for job/message queues in #PHP, these days?

Edit: I’m looking for PHP applications or libraries that provide a drop-in job queuing system that your existing code can use to register and manage jobs.

Continued thread

Splitting the tag files into project and vendor ones and including both as tag files increased performance enormously!

The amount of data is the same, but it's somehow ten times faster. Before, it took about ten to fifteen seconds to `tselect` something; now, it takes less than one second.

```vim
set tags=./tags;,./vendor.tags;
```

Is the Vim (9.1) tag search slow for you too? This only happens with huge projects that have many PHP vendor dependencies, which can occur quickly with PHP. How do you handle it? Does Vim understand multiple tag files? Can it be multi-threaded somehow?

#vim#vim9#ctag

Composer is great — but it is not a magic remedy to solve autoloading performance problems.

In fact, autoloading can slow down large PHP apps like Magento or Laravel by 100 ms + per request.

We share 5 common mistakes and how to fix them (with real profiling data), in our latest blog post.

tideways.com/profiler/blog/aut

What defines great Shopware performance?

In this episode of @shopcastfm, @beberlei shares key takeaways from benchmarking 700+ stores:

- Core Web Vitals explained

- Real-world tips for faster UX

- Plugin pitfalls and hosting choices

🎧 Listen: shopcast.fm/casts/057-shopware
📺 Watch: youtube.com/watch?v=46k1NpnAjfE

shopcast.fm - E-Commerce für die OhrenShopware 6 PerformancePerformance. Ein entscheidendes Thema für Online-Shops.

I have just released new versions of PHPUnit 8.5, PHPUnit 9.6, PHPUnit 10.5, PHPUnit 11.5, and PHPUnit 12.3.

These new versions (as well as new versions of some of their dependencies) no longer use functionality that was deprecated for PHP 8.5 within the last 24 hours or so. This should make testing your code with PHP 8.5 easier.

How is your Sunday going?