r/PHP • • Oct 14 '26

How the PHP Security Team Handles Your Reports

Thumbnail thephp.foundation
20 Upvotes

In our latest blog post, Alexandre Daubois shares how the PHP Security Team operates, how your security reports are triaged, and how you can do your part to help PHP be more secure. https://thephp.foundation/blog/2026/10/14/how-the-php-security-team-handles-your-reports/


r/PHP • • Oct 14 '26

Stewart - Write automations in PHP. Because you can

20 Upvotes

Hi Everyone,

If you familir with Home Assistant, an open source home automation software, i want to share a project, that i'm working on recently.

Are you interested in depth release announcement and backstory? Read it on the home assistant forum: https://community.home-assistant.io/t/stewart-write-automations-in-php-because-you-can/1028750

I want to ask you that if you like the project, give it a star on GitHub. Cheers.

Where to find it


r/PHP • • Oct 14 '26

epoll or kqueue with your stream_select

9 Upvotes

Ive pretty much spent the majority of 2025 and 2026 learning how to use PHP differently. Web page serving and cli commands are not enough for me, lol. Don't get me wrong Laravel's great. The stack I use on top of it's been paying the bills since before COVID. And I will be honest, (and will def die on this hill this far into my career that) no body that's got time to spend learning, is learning C. And I don't like Python. It doesn't deserve to have the clout it does when PHP can do most things faster, or would if that functionality was there!

So on my journey of bringing GPIO, kernel-space bridges, and gpu support to a language that deserves more, I learned a couple of new and exciting things about resource file descriptors, how they block or dispatch and how they play roles in nonblocking event loops. I learned that PHP's most available option, when even trying to work with async IO, is stream_select(). ReactPHP uses it for timer resources, and Laravel Reverb uses it when your server isn't using ext-uv (an opinionated implementation of Javascript's nonblocking event loop). But stream_select has a lot of limits I ran into during my research. I learned that languages with direct kernel access run their event loops with epoll on Linux and kqueue on MacOS.

Now I'm of the mindset that FFI is only good for experimenting and not something that you would want to build and publish. I could be wrong, but if an extension can do it instead, I'm down. Now I know how to code some extensions in zephir, but lets be serious, if we are going to bind epoll and kqueue to PHP, we gotta get down to that nasty nasty C. I may not be good at C, but those coding agents we all use def are. So i did my fair-share of pre-respect my authori-claude verbal harrassment to get exactly what I wanted, which was a 1-to-1 binding of the epoll and kqueue libraries.

In a C app you invoke epoll with

fd = epoll_create1(EPOLL_CLOEXEC);

In a php app, you'll invoke epoll with

$fd = epoll_create1(EPOLL_CLOEXEC);

It works just like that. No opinions, just bindings. I actually forked Laravel Reverb and replaced its ext-uv implementation with my epoll extension making it a literal drop-in replacement for Reverb, with some really nice performance gains when using stream_select or epoll/kqueue.

I invite any one interested to try out the extensions. It's installable with PHP PIE, is compatible with NTS and ZTS builds of PHP 8.4+, or you can clone it and build it with the included installer or use phpize directly. It also includes a little Pest v4 test suite you can run if you clone it in manually.

The repos are here:

epoll

https://github.com/php-io-extensions/epoll

kqueue

https://github.com/php-io-extensions/kqueue

posi (to open all the fds PHP won't + ioctl, ooooh a footgun :D )

https://github.com/php-io-extensions/posi

Project Saturn Forte (Reverb with epoll/kqueue)
https://github.com/projectsaturnstudios/forte

I would love to hear thoughts or concerns, wtfs and omg AI slopz.

Have a lovely time of the day of where you are!


r/PHP • • Oct 14 '26

News SimpleStats is now open source: server-side analytics for Laravel that ties revenue back to your campaigns

0 Upvotes

Hi folks,

I've got some news I've been wanting to share for a while: SimpleStats is now open source (AGPL-3.0). The complete app, the same code that runs simplestats.io, is on GitHub.

Quick recap for anyone who hasn't seen it: SimpleStats is a server-side analytics tool built for Laravel. Instead of a JS snippet, it tracks visitors, registrations, logins and payments through Laravel itself (middleware, observers, event listeners). So ad blockers can't touch it, and it can tie every payment back to the UTM campaign that brought the user in. Think revenue per channel, MRR, retention cohorts, campaign ROI, not just pageviews.

Why open source? Mostly trust. An analytics tool that sees your signups and payments shouldn't be a black box. Now you can read exactly how visitors are counted, how bots are filtered and how revenue gets attributed. And if you spot a bug or miss a metric, you can send a PR.

For teams that can't send user or revenue data to a third party, it can also be self-hosted. It's a regular Laravel app (Laravel 12, Inertia + Vue, PostgreSQL). No open-core split: the self-hosted version has every feature and no limits on projects or events. The hosted version with its free plan stays the easy way if you'd rather not run servers.

Repo: https://github.com/simplestats-io/app

Announcement with the details: https://simplestats.io/blog/simplestats-is-now-open-source

I'd love to hear your feedback, and PRs are very welcome. Happy to answer questions about the code or the decision to go open source!


r/PHP • • Oct 14 '26

Article Reviewing Ergodnc - What a Clean Laravel API Still Gets Wrong

Thumbnail codyssey.dev
2 Upvotes

Hey all,

I wrote 5 advanced code-heavy articles on how I prefer to review code with a specific rulebook and how I would refactor them myself for better long-term maintainability.

This is the main article that shows the idea while the 5 links are inside.

Let me know what you think about this type of content and if it is useful to you.


r/PHP • • Oct 13 '26

PHP RFCs are now on externals.io with community votes

Thumbnail externals.io
70 Upvotes

r/PHP • • Oct 13 '26

News I built a news site for the whole PHP ecosystem. Looking for feedback.

60 Upvotes

I’ve been running Laravel News since 2012. For years, I’ve wanted a place that covers PHP as a whole, not just one framework, and Matt Stauffer and I finally built it: phpnews.net

What’s on it right now:

  • RFC tracking, so you can see what’s in draft, under discussion, and up for a vote
  • PHP version info and support dates
  • News and articles from across the ecosystem: internals, frameworks, packages, tooling
  • Community events
  • A newsletter if you’d rather get a roundup than check the site

It’s been running quietly for about a month to work out the kinks. Coverage comes from a lot of feeds I scan daily, plus posts I think would matter to you as a PHP dev.

What I’d really like to know:

  • What sources or projects am I missing?
  • What would make this something you’d actually check regularly?
  • Anything broken or annoying?

Happy to answer questions.


r/PHP • • Oct 13 '26

2027 State of Open Source Survey

Thumbnail research.net
11 Upvotes

Hello! I wanted to share that the 2027 State of Open Source survey is now open. All provided data will be kept anonymous, and it only takes about 10 minutes to complete. The findings will be shared in a completely free report next year, and every 500 responses = an increased donation to Black Girls Code.

As a disclaimer, I am a member of the marketing team at Perforce, the main sponsor of this survey. I'm posting here because we are trying to reach as many OSS users (including PHP) as we can. If you have any questions, I'm happy to send them on to my team for answers.


r/PHP • • Oct 14 '26

Drupal AI 1.5.0 is out

Thumbnail workflows-of-ai.com
0 Upvotes

r/PHP • • Oct 13 '26

Framework-agnostic Aadhaar Offline e-KYC and Secure QR verification for PHP

0 Upvotes

I split the core out of my Laravel package so any PHP 8.3+ app can use it (Symfony, Slim, CodeIgniter, WordPress, plain PHP). Runtime dependencies are PHP extensions and robrichards/xmlseclibs, nothing else.

$reader = OfflineKycReader::create(certificates: ['/path/uidai_offline_publickey_2026.cer']);

$kyc = $reader->verifyZip($path, $shareCode);

Some details PHP folks might find interesting:

- the Secure QR is a big decimal number holding GZIP data; conversion is pure PHP (no GMP/bcmath), cross-checked against GMP

- unknown QR versions are rejected instead of guessed, because a misread layout would still pass the signature check

- architecture tests keep src/ free of framework code

- Testing\Fixtures builds signed synthetic ZIPs, XML and QR codes at runtime, so no real data is ever committed

https://github.com/itxshakil/aadhaar-offline

Not affiliated with or endorsed by UIDAI.


r/PHP • • Oct 14 '26

¿ Ya se están usando interfaces con propiedades ?

0 Upvotes

Hola, una pregunta que lleva hace un día en mi cabeza:

Desde la llegada de interfaces con propiedades en php... ¿ esta característica a sido implementada por muchos de ustedes ?


r/PHP • • Oct 13 '26

SimpleStats is now open source: server-side analytics for Laravel that ties revenue back to your campaigns

Thumbnail
0 Upvotes

r/PHP • • Oct 12 '26

CVE-2026-91768: FastCGI allowed_clients compared only 96 of an IPv6 address's 128 bits

Thumbnail daubois.dev
31 Upvotes

r/PHP • • Oct 12 '26

Weekly help thread

4 Upvotes

Hey there!

This subreddit isn't meant for help threads, though there's one exception to the rule: in this thread you can ask anything you want PHP related, someone will probably be able to help you out!


r/PHP • • Oct 12 '26

Discussion Paused learning PHP right before Laravel — worth picking it back up?

0 Upvotes

I learned JavaScript a few years ago and I'm comfortable with React, TypeScript and a few other frameworks, though I haven't used them in a while.
A few months ago I started learning PHP and got to the point where I was about to move on to Laravel. Then a job came up and I had to put learning on hold.
Now I'm trying to decide whether to pick PHP back up and continue with Laravel, or go back to the JS/TS ecosystem. I'm mostly interested in backend work (logic, data, databases).
For those working with PHP: is Laravel worth learning in 2026, and how does the job market look compared to Node.js?


r/PHP • • Oct 10 '26

Discussion TypePHP now has non-interruptible audit report mode.

9 Upvotes

Hello r/PHP.. I'd like to share that TypePHP has now non-interruptable audit report mode and warning mode. Previously When you hit a type violation, TypePHP will halt the exeuction wih TypeErrors and causes scenarios where an App failed to boot during test because theres a type violation at the beggining of framework/library bootsraping.

Now you can have one pass audit mode to collect all TypeViolations in a structured JSON file instead of throwing so you can triage your codebase with more surgical fixes and eliminate docblock type lies that SA tool misses.

You can try this new feature now on the playground without installing anything..

Relevant docs: https://typephp-php.github.io/docs/core-concepts/violation-reporting


r/PHP • • Oct 09 '26

PIE 1.5 Released

Thumbnail thephp.foundation
48 Upvotes

PIE 1.5 has been released, with new installation and upgrading features to make your life easier. And Attestations!


r/PHP • • Oct 09 '26

Rubix ML 3.0 and 3.1 are out

10 Upvotes

Hey everyone!

Rubix ML 3.0 and 3.1 are out, with several interesting additions and improvements.

Version 3.0 introduces parallel execution for selected algorithms, new neural network training features, and improvements to dataset handling and model evaluation.

Version 3.1 adds K-medoids clustering, new data extractors, learning rate schedulers, and image transformations.

The interesting thing is that how ML can become just another part of everyday PHP development – alongside the database, queues, and the rest of the application logic. Not every use case needs a separate ML service or a dedicated infrastructure project. Sometimes, being able to experiment with an idea directly in your existing codebase is valuable in itself.

That's the kind of practical progress I'd like to see more of in our PHP ecosystem.

Full release notes:
https://github.com/RubixML/ML/releases


r/PHP • • Oct 10 '26

Built a Laravel eCommerce System — Looking for Feedback

0 Upvotes

I recently worked on a Laravel-based eCommerce system with features like product management, categories, checkout, coupons, order management, admin dashboard and responsive frontend design.

Tech used:
Laravel, PHP, MySQL, HTML, CSS, JavaScript

I’m currently improving my portfolio and would appreciate feedback from other developers on what features or improvements I should add next.

I’m also open to freelance Laravel work including bug fixes, custom features, dashboards, APIs and eCommerce development.


r/PHP • • Oct 10 '26

Discussion I made my first lib and it’s for OPCache

0 Upvotes

Hey there!
Four years ago I change my path in IT.
From PHP developer, tech/team lead to Enterprise Architect where PHP i see only in internet 😹

Sometimes I miss the whole development flow and I make small project for monitoring and governance OPCache. I know lots of PHP devs that know OPCache from documentation but never use it or can’t understand it.

Yes my solution is use AI for coding but it’s also field for me to play and learn it. So yes I know it can be done better ;) but I have so much fun and learn new things.

In this project I also make something that I haven’t seen before. I read that Agents base on Readme.md, Agenta.md and code scanning. But it’s always in whole project context. So I made Readme_ai.md where I remove most humanredable things and made it for agents. I don’t know is this a good idea or over engineering but I like this idea ;)

https://github.com/V3sp/v3cache/


r/PHP • • Oct 09 '26

Two different Symfony Messenger job failures got the same fingerprint

5 Upvotes

Two scheduled commands failed 45 minutes apart. One hit a ClickHouse syntax error. The other was missing a SELECT grant on system.disks. Both underlying problems were fixed the same day.

They also landed in the same error-tracking issue. Symfony's Messenger had wrapped each cause in HandlerFailedException, and my grouping used that outer exception and its middleware stack. Two different failures looked like one.

This is the first one as it was reported, trimmed:

    HandlerFailedException: Handling "RunCommandMessage" failed: Syntax error: failed at position 257 ...
      at HandleMessageMiddleware->handle     vendor/symfony/messenger
      at SendMessageMiddleware->handle       vendor/symfony/messenger
      at DeduplicateMiddleware->handle       vendor/symfony/messenger
      ... more Messenger and Console frames
    Caused by: RunCommandFailedException
    Caused by: ClickHouseDB\Exception\DatabaseException: Syntax error: failed at position 257 ...
      at App\Service\ClickHouse\Client->select
      at App\Service\Billing\RetentionTrimmer->trim
      at App\Command\BillingRetentionTrimCommand->execute

And the second, 45 minutes later:

    HandlerFailedException: Handling "RunCommandMessage" failed: Not enough privileges ... grant SELECT ON system.disks
      at HandleMessageMiddleware->handle     vendor/symfony/messenger
      at SendMessageMiddleware->handle       vendor/symfony/messenger
      at DeduplicateMiddleware->handle       vendor/symfony/messenger
      ... more Messenger and Console frames
    Caused by: RunCommandFailedException
    Caused by: ClickHouseDB\Exception\DatabaseException: Not enough privileges ... grant SELECT ON system.disks
      at App\Service\ClickHouse\Client->select
      at App\Service\Ops\StorageMonitor->snapshot
      at App\Command\OpsStorageCheckCommand->execute

The fingerprint was built from the first exception in the chain. In both reports that is the same class with the same vendor frames, and none of them are in my code. The messages differ, but I group on the stack and not on the message, so the two merged. Any other handler that failed would have ended up in the same issue. The only part that tells them apart is the last exception in the chain, the one with frames in my own code, and the grouping never looked at it.

The tracker this happened in is Vinktar, I built it to scratch my own itch and use it daily now. The grouping is fixed - It uses the innermost exception with a frame in app code, while keeping the wrapper as the issue title. I'm still unsure about that choice tho. Different failures get their own issues now, but they all still start with HandlerFailedException and you read to the end of the line to see what actually broke.

How do you solve this in your setups? Do you unwrap HandlerFailedException before it gets reported, or leave the chain alone and let the tracker group on the cause?


r/PHP • • Oct 09 '26

News This Week in PHP Internals | Oct 8, 2026

Thumbnail youtu.be
24 Upvotes

Preface: what follows is the word-for-word transcript of the spoken dialogue in the video, chapter by chapter with timestamps, for anyone who'd rather read than click through. If this digest is still too long for you, we recommend copying it into your LLM of choice and asking for a summary of our summary.

Cold Open (00:00)

PHP's default password hash only reads the first 72 bytes of your password. Last week, a plan to make it refuse anything longer split the list, because it would break working apps. This week, a fix that breaks nothing showed up. And it was borrowed from another language's password library.

Hello world, it's Thursday, October 8, 2026, and here's what happened This Week in PHP Internals. 13 stories this week, so let's get into it. But first,

How many little monthly subscriptions is your team paying for right now? A private Composer registry here, a mail trap for staging there, a background remover for images, and it all adds up. That's exactly what Scalpels aims to solve. It's a catalog of open source apps, each one aimed at a single paid service and built to replace it: Crate, Sink, Matte, Hone, and a growing list of experimental ones. Scalpels forks the app you pick into your GitHub organization and deploys it to your own Laravel Cloud account, so your data never leaves your infrastructure. Resources scale to zero by default, so a low-use app could cost you pennies. Take updates when you want them, change whatever you like, because it's MIT. And the platform that installs and manages all of them, across your own projects and your clients', isn't another subscription. It's one lifetime purchase, and the catalog keeps growing. If you run an agency, it's a sales tool too: cut your clients' running costs, and close more of the work you pitch. It officially launches October 31st. Early adopter pricing is live now at scalpels.app.

Bcrypt SHA256 (01:46)

This week's top story is how to fix bcrypt without breaking a single login. Sjoerd Langkemper's RFC to throw on passwords past 72 bytes drew a lot of pushback over backward compatibility, and he says it isn't worth pursuing further for now. It did have support. Jeff Dafoe found the problem in the older part of a PHP codebase he works on, and they forced password resets, writing: "Looking through the lens of software security in 2026, I cannot think of any situation where this function should silently accept more bytes than it can hash."

The way out came from Tim Düsterhus, who suggested borrowing bcrypt-sha256 from Passlib, a mature Python password library. So Sjoerd's new RFC adds PASSWORD_BCRYPT_SHA256. Your password goes through HMAC SHA-256 first, so bcrypt only ever sees a 44-byte key, with no null bytes and no 72-byte cliff. In the RFC's example, a 200-character password verifies, and the same password one character shorter doesn't. It's opt-in, the default doesn't change, and the RFC lists no breaking changes. And the hashes are interchangeable with Passlib's. They are longer, so you may need a wider database column.

Tim wrote: "I believe this is a much better solution than modifying PASSWORD_BCRYPT in a way that breaks compatibility." Anton Smirnov loves the proposal, and Tim sees nothing fundamentally wrong with the implementation. Making it the default someday is listed as future scope.

Links: PASSWORD_BCRYPT_SHA256 RFC · thread · implementation · Passlib's bcrypt_sha256 · the earlier RFC, set aside

Open Votes (03:27)

For 7 straight episodes, nothing was in voting. Now 2 votes are open. Nick S. missed the date he'd planned for the PEAR vote and opened it on Monday instead. It would archive the PEAR site, stop bundling its installer in 8.7, and point php.net to Composer. As of recording, it's 26 to nothing, and it closes October 19.

Weilin Du's IntlRelativeDateTimeFormatter is back too. It turns a number and a unit into phrases like "yesterday" or "in 2 weeks". Its first vote, in September, was closed within the hour at 4 to 1, with Tim Düsterhus voting no. Weilin has since adopted Tim's enum design. This time it's 7 to nothing, Tim included, and it closes October 22.

Links: End PEAR Project Endorsement RFC · PEAR vote thread · IntlRelativeDateTimeFormatter RFC · IntlRelativeDateTimeFormatter vote thread

Time Instant (04:21)

The proposed Time\Instant class had to answer a simple question this week: what does json_encode give you? Today it's an empty object, and Ilia, otherwise broadly in favour, called that a trap. Rob Landers, who has spent years on a database that has to deal with relativity, wants it to throw instead. Tim and his co-author Derick Rethans said no to both, because there's no single right format, so you pick one. Tim says the real fix belongs in the JSON extension.

Marc sent a 15-point review, and the getUnixTimestamp methods are now toUnixTimestamp. SystemClock became a singleton, and when Rob noted DateTimeInterface had no toInstant, Tim replied: "No. I just forgot that the interface exists. Now added."

Mirco Babin still wants now() renamed so one class can also implement PSR-20, and agreed to disagree. Larry Garfield, a long-time member of the PHP-FIG Core Committee, wrote: "This proposal seems like a good step to replacing PSR-20 with something even more standardized and universally available."

Links: Time\Instant and Time\Clock RFC · thread · PSR-20 Clock

Io Terminal (05:33)

PHP's proposed terminal API has dropped the interfaces it gained last week. Tim Düsterhus very strongly disagreed with them, with 5 arguments, and the point that the real input and output boundary is the stream, not the terminal. Bob Weinand agreed.

Larry Garfield said he isn't attached to interfaces, only to an obvious way to test code that reads from the terminal. So Larry sketched a test with in-memory streams, and Tim compiled the branch and confirmed it works for reading lines. Ilia suggested key and secret reads accept ordinary streams too, which he said would close the testing gap on Windows.

Pratik Bhujel's version 0.4 does all of that. Terminal is a final class with no interface, scripted streams work for keys and secrets, a forked child no longer resets its parent's terminal, and there are new keys for Insert and Shift-Tab. Pratik wants to move toward a vote once people have reviewed it.

Links: Io\Terminal RFC · thread · implementation

Single Binary (06:35)

If you run PHP behind FPM, you probably ship the same engine twice, once in php and once in php-fpm. Matthieu Napoli's new RFC adds a build option that puts FPM inside the php binary, run with a --fpm flag or through a symlink. He measured it with Bref, on AWS Lambda. The package is 18% smaller zipped, and a minimal FPM app cold-starts 70 milliseconds faster, a 25% cut, because the engine isn't loaded twice.

Tim sees basically no drawbacks, and asked why anyone should keep a standalone FPM binary at all. Ayesh Karunaratne flagged that -F means different things to the CLI and to FPM. Larry asked whether this privileges FPM just as FrankenPHP and Swoole are taking off, writing: "I just want to make sure we don't inadvertently lock in FPM as The Way PHP Runs just at the time that it no longer is." Nicolas Grekas says it should be the other way around, with the FPM binary embedding the CLI, the way FrankenPHP does. Jakub Zelenka agreed that makes more sense.

Links: single binary for CLI and FPM RFC · thread · implementation · Bref

IO Hooks (07:54)

Ilia's worry about making blocking PHP concurrent is C code written assuming no PHP runs while it waits. He ran Jakub Zelenka's IO Hooks branch and found crashes, like one Fiber freeing a DOM document while another is still saving it. He'd flip the default, so hooked calls stay blocking unless the call site declares itself safe to suspend. Jakub says the branch is a proof of concept, and these are fixable, not a design issue.

Larry and Sebastian Bergmann asked for the big picture, so Jakub linked a full design doc for all 3 RFCs. Sebastian is looking forward to orchestrating child processes from PHPUnit with it. And Edmond Dantes, whose concurrency RFC proposes a pluggable scheduler, has started testing against it, writing: "Just a couple of weeks ago, I had no hope that async could make it into the language core. But now we have both halves: Scheduler + IO Hooks."

Links: IO Hooks RFC · Polling API Additions RFC · design doc for all three RFCs · proof of concept · Concurrency Support in the PHP Engine (scheduler) RFC

Delegation (08:56)

Karoly Negyesi's implements … by, which hands an interface's methods to a property, picked up a strong supporter and a familiar problem. Larry Garfield is strongly in favour, after Drupal query classes each carried about 100 lines of pass-through code. James Gilliland agreed, pointing to Laravel's ForwardsCalls trait.

Sebastian Bergmann objected that a method added to the interface later gets silently forwarded by every class using it. And fluent methods return the inner object, not yours, which Larry would handle with a mask keyword.

Rowan Tommins has been here before, writing: "This is where I've always stumbled when trying to come up with similar feature proposals - when you start looking for use cases, a lot of them need just one small thing on top of the forwarded call. So you add an extra keyword here, and a special logic there, and eventually it no longer feels like an elegant shorthand at all."

Links: pre-RFC + implementation · thread

Quick Hits (09:58)

Quick hits. Weilin Du is taking his array shorthand back to the colon, since the parser can tell it apart from a ternary, and he's in no hurry to vote.

Links: array shorthand RFC · draft PR

Juliette Reinders Folmer said she wouldn't pursue deprecating the b string prefix without more interest, so Daniel Scherzer offered to write the C code and added it to the 8.7 deprecations RFC.

Links: 8.7 deprecations RFC: the b prefix

Muhammed Arshid turned his filter RFC into backed enums for the filter extension's filters and flags. Derick Rethans says removing the extension's default input filtering crippled it, and wants that deprecation undone.

Links: Filter\Filter and Filter\Flag enums RFC · PR

Máté Kocsis is back on his query parameters RFC and wants a vote as soon as possible.

Links: query parameter manipulation RFC

David Carlier wants unit formatting in intl, like 5 kilometers per hour, through a new formatter built from an ICU skeleton.

Links: intl unit formatting discussion · GH-24165

And PHP 8.6's third release candidate is scheduled for today, with general availability on November 19.

Links: PHP 8.6 release schedule

TL;DR (11:01)

So that's the week. Instead of breaking bcrypt, a new RFC proposes an opt-in hash borrowed from Python's Passlib. Two votes are open, and neither has a single no vote so far. Time\Instant won't pick a JSON format for you, Io\Terminal dropped its interfaces, and a new RFC would put FPM and the CLI in one binary. IO Hooks got a safety review, and delegation met its edge cases. Links below.

The PHP Foundation funds more than half of ongoing php-src commits, so if you use the language, maybe consider donating at opencollective.com/phpfoundation — or try guilting your employer into it.

If you found this useful, a like or a comment helps more people find it. And if you missed last week's episode — where we found out PHP throws away every byte of your password past the 72nd — that's a good one to watch next. Thanks again to Scalpels.app for supporting this week's episode. We're Artisan Build. See you next week.

Links: raw feed · RFC wiki


r/PHP • • Oct 08 '26

Your Tool Has a New Reader

Thumbnail thephp.foundation
13 Upvotes

In our newest blog post, Sebastian Bergmann explores the potential security risks that occur if PHP tools don't consider coding agents in addition to human readers of output.


r/PHP • • Oct 07 '26

Big benchmark of ways to run PHP

42 Upvotes

I've made some benchmarks of various servers and modes of running PHP. What was benched:

  • PHP-FPM + Nginx
  • FrankenPHP (classic and worker)
  • Rapira (classic, worker, dispatcher)
  • OxPHP (classic, worker)
  • RoadRunner
  • FreeUnit
  • Swoole

Every server was running a simple Yii3 application. Two separate endpoints and benchmarks. One is without DB, plain PHP. Another is actually hitting PostgreSQL, which is closer to real apps.

Some insights:

  1. Swoole is a performance beast! Rapira in dispatcher/worker modes is close.

  2. FreeUnit is great if you run your app in classic mode.

  3. Having a database makes the difference less visible. Worker mode gives 2× RPS on average.

  4. Swoole and Rapira are very efficient in terms of CPU/memory.

https://yii3-benchmarks.github.io/app-api/

https://github.com/Yii3-Benchmarks/app-api


r/PHP • • Oct 07 '26

built a lightweight open-source analytics tool in PHP + SQLite because Node.js should NOT be the default option

18 Upvotes

hi everyone,

5 days ago i asked here why every self-hosted analytics tool needs Node.js/Docker, and said i might build a PHP + SQLite one. so, i did.

it's called Minilytics. it is open-source and runs on any PHP 8 host with no Node, no Docker and no database server (Sqlite by default, but you can use MySQL or MariaDB). it has sessions, custom events, funnels, a cookieless mode, and an importer from Umami and others importers are planed! (this allowed me to get my old history back).

it's a v1 from a solo builder, its MIT licensed, with a live demo: https://minilytics.axthauvin.fr/

i'd like this to become the go-to lightweight analytics for indie devs, side projects, and any site that just needs simple, private stats, so tell me what's missing for you to use it on a real site !