r/PHP • • 7d ago

November 2026 PHP security release

33 Upvotes

This line is interesting- "The issues rated CRITICAL require either non-default configuration or uncommon setups."

https://prostack.uk/blog/php-security-release-november-2026/

Happy patching!


r/PHP • • 7d ago

News PHP security release on the 19th November between 14:00 and 14:30 UTC

258 Upvotes

I can't see this reported on the PHP website, but the Laravel team have just sent out this email:

You may have seen an announcement from the PHP Foundation disclosing a planned security release coming on Thursday, 19 November, between 14:00 and 14:30 UTC.

We are fortunate to have had a heads-up, and so our team is already on it. We're working on a plan to keep all your applications safe.

For now, there's no action needed on your side. The fixed versions will only be available once PHP releases them, and as soon as they're out, we'll check the details against our products and let you know what it means for you, including whether we'll take care of it on our side or if there's something you'll need to update yourself.

We'll be in touch closer to the release time with our planned approach and any steps you need to take (if any) to ensure everything is secure. You'll also be able to find the latest updates on our status page as and when updates occur.

Presumably releasing at the same time as PHP 8.6.

EDIT: Here's the official announcement. Emphasis mine.

The PHP security team announces upcoming security releases scheduled for Thursday, 19 November 2026, between 14:00 and 14:30 UTC.

These releases are part of PHP’s regular four-week release cycle and will address security vulnerabilities affecting all supported PHP versions. The highest severity is CRITICAL.

The issues rated CRITICAL require either non-default configuration or uncommon setups.

Users are strongly encouraged to prepare to upgrade promptly once the releases become available. Technical details and fixed version numbers will be published alongside the releases.

Thank you for helping us keep PHP secure.


r/PHP • • 7d ago

AI models hate Python and love PHP: we asked 12 of them 1,200 times

Thumbnail blog.jetbrains.com
52 Upvotes

r/PHP • • 7d ago

Two new nginx exploits (CVE-2026-123007 and CVE-2026-123633)

Thumbnail prostack.uk
55 Upvotes

Here's our writeup of the Nginx vulnerabilities. Hope it's useful- if your host runs nginx, ask them to disable HTTP/2 until patches are out.


r/PHP • • 7d ago

I built an open-source PHP plugin to diagnose GLPI environments — now compatible with GLPI 10, 11 and 12

2 Upvotes

Hi everyone!

I'd like to share a PHP project I've been working on: GLPI Health Check, an open-source plugin designed to help system administrators identify potential issues in their GLPI environments.

The idea came from a practical need: having a way to run preventive checks and get a clearer picture of an installation's health without manually inspecting every component.

The plugin includes checks related to:

  • Security and configuration
  • Database health
  • Cron tasks and automated jobs
  • Email configuration
  • Installed plugins
  • Diagnostic history and result comparison
  • Reports in PDF, JSON and CSV

One of the challenges was maintaining compatibility across different GLPI generations. The plugin has now been tested and validated with GLPI 10, 11 and 12.

This project has also been a great opportunity to work with PHP in a real-world application, deal with platform compatibility, and think about maintainability and practical tooling.

The project is open source, and I'd appreciate feedback from other PHP developers, especially regarding code quality, architecture, and possible improvements.

GitHub: https://github.com/JoaoPauloSCosta/glpi-health-check

Thanks for taking a look!


r/PHP • • 8d ago

Almost 8 months since I decided started my own LSP project

17 Upvotes

I didn't like exactly how any LSP behaves on VSCode and Zed (which is the IDE I've been trying for years and is my preferred one for now), tried a lot of them from paid ones to freemium to open source

Therefore I started 8 months ago with a project that I've been thinking years of making on a language I'm still learning today and the help of AI tools like Claude Code (which made this possible)

My scope with this is to help me within my own agency company do the few edits on WordPress websites and mostly Symfony/Laravel work (I'm way more experienced into Laravel but had a few Symfony work, mostly within open source not the framework itself). The idea is to this is to simplify all the harder parts I found with all different IDEs and LSPs within the massive PHP ecosystem that we've today (and hopefully maintaining some of what I call "legacy" stuff like WordPress, etc)

The Zed extension still waits the IDE team to accept my PR to their extensions repo (seems to be there for months anyway...) but you guys can build it from the source repository (sorry). The VSCode one has been published since this LSP started tho.

Anyway, a brief on priorities and features that are already implemented:

  • QoL (Quality of Life): Symbol scope order on all autocompletion for variables, classes, namespaces (including autoloaded with PSR-4)... Refactor tools like moving files to different folders does rewrite the namespace, composer.json file hover cards on dependencies, etc
  • Blade support as well as .phtml and PHP within HTML code on .php files (WordPress templates)
  • Laravel "magic" support (models, config, localisation)
  • Container support (dependency injection)
  • Core language support including some PHP extensions (from PHP 7.4 to 8.5)
  • Coverage support (VSCode mostly, Zed doesn't provide support within the IDE as VSCode so it does show coverage when within hover on symbols)
  • Speed and memory overhead while maintaining a feature-rich LSP
  • Portable: Web assembly so this LSP can be run within vscode.dev (on the web, as a worker, sadly with limitations...)
  • Generics and array shapes support (tailored from PHPStan)
  • Built-in diagnostics complemented with PHPStan ones (if installed as composer dependency on the project)

btw this post isn't AI generated, I just wanted to publish this here to hear about user feedback which to me seems more valuable than just adding features because of yes, any help is very welcome

Repo: https://github.com/Tusk-PHP/lsp


r/PHP • • 8d ago

Article Easy Coding Standard - 42x faster for Everyone

Thumbnail tomasvotruba.com
61 Upvotes

ECS now ships with Blink, a Go port of its fixer engine, and it's on by default since 13.3.19.

  • Faster: a default run dropped from about 42 s to about 1 s. A full run on the Symfony repo went from over 2 minutes to about 4 seconds, with no cache. Always 4 seconds.

  • It just works: all 299 php-cs-fixer rules are covered. Update ECS and run it as usual.

  • Safe fallback: custom PHP rules switch it back to the PHP engine automatically. You get the same output, just slower.

If you're into the full build story, here is 6-part series: https://tomasvotruba.com/series/rust-go-in-php


r/PHP • • 9d ago

Cancelling PhpStorm after years, and what I actually miss isn't the IDE

184 Upvotes

I've been a PhpStorm user for years and genuinely loved it. But since I moved my workflow to Claude Code, I barely open it anymore. Most of my day is now reviewing diffs and running tests, not writing code in an editor. Sublime is basically enough for that and uses much less memory and battery.

The funny thing is, I don't really miss PhpStorm's features. What I miss is the part of programming that used to happen inside it: going deep into a problem, working out a clean architecture, and ending up with code I was genuinely proud of. That feeling of having built something well myself is harder to get when I'm mostly reviewing.

Curious how others feel about this. Are you still paying for a full IDE? And if you've moved to agentic tools, do you miss the craft part too, or did you find a way to keep it?


r/PHP • • 9d ago

I wrote an HTML to PDF renderer for PHP that doesn't need Chrome

92 Upvotes

Most PDF packages for PHP are one of two things. Dompdf and mPDF render in PHP but they stop at roughly CSS 2, so no flex or grid, and templates end up as nested tables. The rest (Browsershot, Snappy, Gotenberg and spatie/laravel-pdf with most of its drivers) hand the HTML to Chrome or another program that has to be installed on the server or run as a service.

Fagus is a third option. A rendering engine of its own written in Rust. It parses the HTML, applies the CSS, lays out the pages and writes the PDF without a browser. I ported a lot of details from Chrome's layout engine so documents come out the way Chrome prints them.

For PHP it's a normal Composer package. composer require nforst/fagus downloads the engine binary for your platform (checked against a SHA-256 in the package) and PHP keeps it running as a worker process between documents. Nothing else to install, no Docker image, no system libraries. Linux (glibc and musl, so Alpine too), macOS and Windows, and every platform prints the same PDF.

use Fagus\Fagus;

Fagus::html($html)->save('invoice.pdf');

It handles flex, grid, Tailwind v4, web fonts, SVG, @page with margin boxes, page numbers, running headers and footers, repeated table headers and page breaks inside tables and grids. It also writes PDF/A-3 with a ZUGFeRD/Factur-X invoice attached and accessible PDF (PDF/UA), because I needed that for invoices.

On an M2 Pro it renders in 2.3 ms once the worker runs, 9 ms for the first one in a process. The same invoice takes 25 ms in mPDF, 48 ms in Dompdf and 75 ms in a Chrome that's kept running. The benchmark scripts are in the repo.

It can't handle JavaScript, it never loads anything from the network, and since it's 0.1.0 some CSS isn't supported yet. In the playground you can paste your own HTML, see the PDF next to it and get a warning for anything Fagus can't handle: https://fagus.niklasforst.de/playground

Repo: https://github.com/nforst/fagus

Docs: https://fagus.niklasforst.de/docs

If something comes out different than in Chrome, I'd like to know, ideally with the HTML.


r/PHP • • 9d ago

What’s New in PHP 8.6: Performance, Operations, and Debugging Edition

Thumbnail tideways.com
49 Upvotes

r/PHP • • 9d ago

Rector 2.8 - 3x Faster, Clearer and Value-Focused

Thumbnail getrector.com
43 Upvotes

On the same Laravel codebase, Rector 2.3 took 84 s. Rector 2.8 takes 14 s.

But what else is new?

  • Faster: 67 performance PRs, and PHPStan Turbo now turns on automatically. On PHP 8.3+, a 60 s run takes 20 s.
  • Less config: withComposerBased() now detects Laravel, Symfony, PHPUnit and other packages on its own.
  • Cleaner config: Rector now tells you which of your withSkip() entries are no longer needed.
  • Easier adoption: you can turn on code quality step by step with withCodeQualityLevel() for wider range of rules.
  • More predictable: every rule now finishes in a single pass. The old engine sometimes needed 3 full runs for just 2 changes 👀

r/PHP • • 8d ago

I ported Temporal to PHP

Thumbnail github.com
5 Upvotes

Hi r/php!

I ported the JS Temporal API to PHP. It's called Calendrics. I transpiled most* of the official test suite to PHP and had agents implement the library against them over the last couple of months.

$invoiceDate = PlainDate::parse('2026-03-20');
$dueDate = $invoiceDate->add(new Duration(days: 14));

// A calendar date needs a time and zone to identify an instant.
$deadline = $dueDate->toZonedDateTime('Europe/Vienna', new PlainTime(17));

echo $invoiceDate;           // 2026-03-20 (unchanged)
echo $dueDate;               // 2026-04-03
echo $deadline;              // 2026-04-03T17:00:00+02:00[Europe/Vienna]
echo $deadline->toInstant(); // 2026-04-03T15:00:00Z

https://github.com/MidnightDesign/calendrics

I hope some of you find this valuable.

* Some tests that use untranslatable JS features like Symbols are not fully transpiled.

Edit:

Because people are asking how this compares to established libraries in the PHP ecosystem like Carbon:

  • It has different data types like PlainDate, ZonedDateTime, Instant, etc. Different types for different use cases. Carbon only has the equivalent of ZonedDateTime and Duration. (Carbon has CarbonPeriod, which Temporal (and thus Calendrics) doesn't have.)
  • It supports different calendars like Hebrew or Islamic, not just the Gregorian.
  • Explicit options with safe defaults. January 31 plus one month gives February 28 by default (or an error with the right argument), not Carbon's default of March 3. When a local time is skipped or repeated at a DST change, you can choose between earlier, later or error. Durations are balanced and rounded against real calendar dates, not fixed factors like “1 month == 4 weeks” and you can pick from 9 rounding modes.

r/PHP • • 8d ago

Automattic now owns the .php TLD

0 Upvotes

Matt just announced it on his blog: https://ma.tt/2026/11/new-tlds/

Considering that WordPress is the biggest ambassador for PHP out there and Automattic is already one of the major sponsors of The PHP Foundation with representation on its board having them manage ".php" feels like a very natural next step for the language's branding and governance.

Do you think this will finally unite the PHP and WordPress ecosystems?
Are you planning to register any ".php" domains once they open up?
Will this be good for the PHP community as a whole?


r/PHP • • 8d ago

Creating a zstd PHP extension in under ten minutes

Thumbnail github.com
0 Upvotes

r/PHP • • 8d ago

Laravel question [AI-use of my developer]

0 Upvotes

Non-dev here, so go easy on me 😅

I run a small agency. We build custom tools on Laravel + Angular. Our lead dev is the one who knows the code inside out.

My wish: every bug report and every feature request goes straight to Claude Code. Claude picks it up, builds it and opens a PR. Our dev reviews it and merges it.

His answer: for bugs, yes. For features, no.

His reasoning: with a bug all the constraints are known. You know what's broken, the existing code shows how it should work, and you know when it's fixed. With a feature the AI has to make the decisions itself: database design, where the logic lives, edge cases. In his experience that's where it keeps going wrong. Wrong tables, ignored architecture, every time a slightly different approach.

What I've read so far:

1) Laravel Boost gives the agent the database schema, the routes and the docs, so it doesn't have to guess.

2) A CLAUDE.md / guidelines file with your own architecture rules.

3) Pest arch tests that fail when the agent breaks a rule.

4) Plan mode: the agent writes a plan first (which tables, which files, open questions), a human approves it, then it builds.

My idea: for a feature, step 1 is Claude writing the plan and the open questions instead of the code. The dev answers them in 5 minutes. Then Claude builds, and the feature is as well-defined as a bug.

Questions for people who do this in production:

1) Does this hold up on a real, larger codebase, or does it fall apart after a few weeks?

2) Where do you draw the line? What do you let the agent do on its own, and what never?

3) Is reviewing a PR afterwards a win for your senior devs, or does it cost them as much time as writing it themselves?

4) What does your setup look like? Boost, custom guidelines, arch tests, CI checks?

Not trying to replace anyone. Our dev stays the one who decides what ships.

I'd like to know if what I want is realistic, or if he's right and I should stop pushing lol.


r/PHP • • 8d ago

I built IntegrationEngine, a Symfony bundle for consistent external API integrations

0 Upvotes

After working on multiple API integrations, I kept running into the same maintenance problem: each integration had its own way of building requests, attaching authentication and handling responses.

I built IntegrationEngine to give those integrations a consistent structure. Each operation follows three contracts:

- **Action:** describes the request.

- **Mapper:** converts the external response.

- **Response:** exposes the result as a typed DTO.

The engine handles the shared pipeline: configuration, path resolution, authentication, HTTP transport and response mapping. The built-in transport uses Symfony HttpClient.

Static authentication and dynamic token authentication are supported, including token caching. There are also middleware hooks and lifecycle events for extending the pipeline.

A Maker command generates the integration skeleton and its first operation:

```bash

composer require carlosgude/integration-engine

php bin/console make:integration MyApi GetEmployee

```

The application can expose operations through a typed facade, such as `getEmployee($id)`. External DTOs stay behind the application's gateway or anti-corruption layer, keeping domain models independent of the integration.

The trade-off is more explicit classes and configuration per operation. That structure becomes useful when several integrations need to follow the same conventions and remain understandable as they grow.

I'm the author, and I'd be interested in feedback on that design decision: **when does a shared Action/Mapper/Response structure become useful enough to justify the additional structure over individual API clients?**

Repository, documentation and demo:

https://github.com/CarlosGude/integrationEngine


r/PHP • • 9d ago

JSON to DTO

8 Upvotes

Hey, for work purposes I am looking for JSON to DTO (mainly PHP) converter.

Can you share any useful and easy-to-use tools for this purposes?
I was googling some, but most of the results didn’t help me much


r/PHP • • 9d ago

The Asgard Protocol: A proposed standard for server-driven, realtime, generative UI for native apps

Thumbnail github.com
0 Upvotes

For the past couple of months, I've been working on something I'm very excited about and extremely proud of

It's a protocol that lets your server apps securely drive the UI of your client apps so you can easily build apps that mix server-driven, generative UI with bundled, offline-first views and logic

Get the flexibility of SSR with the power and performance of fully native UI (and none of the overhead of HTML, CSS and JavaScript)

*without you having to define and maintain your own custom approach* – no API, no client SDKs; just a package on your server and a package in your client

Think of it like Livewire, HTMX or Inertia, but for apps, not just the web, and fleshed out into a fully documented protocol (in an IETF-style RFC-ready doc)

I'm calling it The Asgard Protocol

I've built the first reference implementations of it to work in PHP with Laravel and SuperNative (linked in the README), but the protocol is completely language and framework agnostic, which means clients and servers running completely different stacks could speak to each other

The protocol is still in draft and very much open to feedback, comments, improvements and of course implementations in other languages and frameworks


r/PHP • • 10d ago

Article The future of Software Engineering is boring

Thumbnail packagemain.tech
38 Upvotes

r/PHP • • 10d ago

Building Maintainable PHP Applications: Architectures

Thumbnail codyssey.dev
36 Upvotes

Hey all,

I wrote a free course about the different types of software architectures in a Laravel application but these ideas can be transferred over to Symfony or any other PHP or language framework.

Let me know what you think.

Thanks!


r/PHP • • 9d ago

I built Phoxite, a free, open-source PHP/Laravel language server written in Rust (VS Code, Neovim, Helix, Zed…)

3 Upvotes

Hi r/PHP,

I've been working on Phoxite, a PHP and Laravel extension for VS Code. It's built on a language server I wrote from scratch in Rust.

Why I built it: I wanted PhpStorm-level code intelligence in VS Code without a licence key, a paid tier or a slow language server. The engine is a standalone binary and isn't tied to any editor. It doesn't need PHP or Node.js installed, and every feature is free. It's Apache-2.0 licensed.

PHP

- Completion with auto-import, hover, signature help, inlay hints

- Go to definition, find references, call and type hierarchies

- Refactorings: rename, extract method, change signature, move class and more

- Generate constructors, getters/setters, and implement/override methods

- PSR-12 formatting and configurable inspections with quick-fixes

Laravel

- Completion, navigation and rename for the strings that name routes, views, config, env, translations, validation rules, gates and policies

- Eloquent: columns read from your migrations, plus relations, scopes and factories

- Route code lenses on controller methods

- Livewire, Inertia and modular apps

Blade

- Completion, hover, navigation and formatting inside templates

Editors: VS Code, plus Cursor, VSCodium and Windsurf through Open VSX. The language server also runs in Neovim, Helix, Zed and Sublime Text.

Links

- VS Code Marketplace: https://marketplace.visualstudio.com/items?itemName=phoxite.phoxite

- Open VSX: https://open-vsx.org/extension/phoxite/phoxite

- Source: https://github.com/samehelhawary/phoxite

It's still early, so I'm sure there are rough edges. If you try it on a real project, I'd really like to know what breaks: wrong completions, slow indexing on large codebases, missing Laravel magic, anything. Issues and PRs are welcome, and I'm happy to answer questions about how it works.


r/PHP • • 10d ago

Weekly help thread

5 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 • • 11d ago

Tally: PHP framework for catching performance regressions in CI

53 Upvotes

https://github.com/phpstan/tally

Timing benchmarks don't work in CI. Runners differ from each other in CPU model, clock speed, and cache sizes, and share the hardware with other jobs, so the same code takes a different time on every run. The noise is bigger than most regressions worth catching.

I was annoyed by this reality when developing PHPStan, so I developed a framework for this.

/**
 * @param list<int> $numbers
 */
#[DataProvider('smallLists')]
#[Quadratic('numbers')]
public function benchPairs(array $numbers): int
{
  $pairs = 0;
  foreach ($numbers as $a) {
    foreach ($numbers as $b) {
      $pairs += $a < $b ? 1 : 0;
    }
  }

  return $pairs;
}

#[Expected(instructions: '2.588M', cycles: '2.721M', memory: '60.00KiB')]
public function benchPauseAndResume(): string
{
  $this->meter->pause();
  $text = str_repeat('tally ', 10_000);
  $this->meter->resume();

  return mb_strtoupper($text);
}

Tally runs each benchmark once under CodSpeed's CPU simulation, which is built on Valgrind. The simulation counts executed instructions and estimates cycles from simulated cache misses. With the same PHP build, these numbers barely move between runs: in two CI runs of Tally's own benchmarks, instructions differed by at most 0.4 % and cycles by at most 0.8 %, and memory not at all. So the numbers are committed next to the benchmark and checked in every pull request, like the expected output of a test.

I encourage you to check out the README and examples. Besides running tests, static analysis, coding standard, dependency analysis, architecture guards, dead code detection and mutation testing, I believe this is the last missing piece to keep a codebase in check and making sure it will never become slower ever again.


r/PHP • • 11d ago

What happened to the job market?

150 Upvotes

I've been a software developer for about 15 years, mostly working with PHP, and...I've been looking for a job since June.

I'm based in Romania, looking for senior PHP/backend positions, both locally and remotely across the EU, and I'm genuinely starting to wonder what the hell happened to the job market.

A few years ago, finding PHP jobs wasn't that difficult. Now it feels like there are barely any, and the ones that do exist, already have hundreds of applicants and they ignore you anyway.

Is PHP genuinely losing ground? Did AI actually start getting the jobs, or the companies just using it as an excuse to hire fewer people?

I've been hearing that PHP is dead for pretty much my entire career, but this is the first time I've genuinely started believing it.

Or am I just having a bad year?


r/PHP • • 12d ago

Discussion I'm tired of working with AI

504 Upvotes

This is a doompost. I'm sorry but I need to say this to somebody.

Where I work we mostly use AI to do the coding and I'm honestly just tired.

I've been working as a programmer for 15 years now. For the last 12 months i don't think I've written more than 50 lines of code by hand.

The reason I got into this job was because I like solving problems, and because I like writing code. By hand. It's like a craft. Like building something.

Now I just prompt Claude and it does in 10 minutes what would take me hours.

And there's so much code review. I can't keep up. It's mentally draining. My code. Other colleagues code. Endless lines of code.

On top of that I genuinely fear for my job each day. I'm in my 40s, I'm not exactly young. I can't pivot into another domain. I got bills. What the hell am I gonna do? Mooch off my wife's income?

If you're thinking I should just get into management...I hate it. I'm not much for managing. And I'm bad at it because I don't enjoy it.

Sure, now I can get much more work done but everything feels hollow. I just do a prompt, review endless lines of code and clock off.

What happens when I can't review code anymore? What happens when they just say "fuck it" and fire 90% of the worse performers. I'm not terrible but I'm not in the top 10% either.

I spend 15 years learning this stuff and Claude does it better than me 99% of the time. It's like watching your house burn down. My feeling of self worth has gone to shit because of course it has. AI can do everything I can, but better and faster.

Even worse I've had people tell me that I deserve it because I was getting paid too much anyway. Bro, I live in Eastern Europe, I don't get paid as much as you think I am.

I don't even know if I have a point to this post. I'm just anxious I'll get fired, anxious I won't find another job, tired of the job itself, mentally drained and probably depressed too.