Hi everyone,
Straight to your inbox weekly, news and updates on the world of PHP. This week we have articles on Auditing PHP Code for Hidden Security Flaws, Symfony performance tips, and Why "deactivate all plugins" is bad advice for WooCommerce stores. In Tutorials we have guides for Building AI-Powered Web Applications with Laravel and PHP, Prevent Identity Spoofing in React Telegram Mini Apps by Exchanging initData for JWT in PHP, and How to Integrate Gemini AI into a Laravel Application for Smart Web Features. Finally in our Reading section, we have articles on Another Day, Another Bot Attack: The Reality of Running an Indie Site, Tech debt is not dead. It chose the format of our referral codes, and Not a DDoS but an OPcache bug: 600 MB PHP-FPM workers on a server with 5,500 WordPress sites.
We have all that and more, so we do hope you enjoy this week's newsletter. If you have an article, tutorial or podcast that you would like to be featured in our newsletter, feel free to reach out to us at [email protected].
All the best,
Adrian
|
Please help us by clicking to our sponsors:
Give Your Unused Startup a Second Chance
List your unfinished SaaS, app, or project for free. Sell it, find a co-founder, or let someone else bring it to life. No fees, no hassle - just new opportunities!
|
Articles
Login, roles and permissions in Laravel, the setup I reuse on every project
Every admin panel I build reaches the same week. The owner starts as the only user, then staff need accounts: a receptionist who books appointments, a manager who sees reports, and someone who must never open the settings page.
We reported an exposed file to 17 online shops. A week later, 13 are still serving it
While scanning the home pages of small Polish online shops we kept finding files that should never be public: phpinfo() pages, PHP error logs, a database admin panel. We sent 17 shops one short e-mail each: which file, at which URL, and how to close it. Today we re-checked every URL. Result: 4 closed, 13 still open, 0 replies.
Updated 12 WordPress plugins and something broke: bisect the batch instead of rolling back everything
You click "Update all" on twelve plugins. Five minutes later a client tells you the checkout button does nothing.
Why "deactivate all plugins" is bad advice for WooCommerce stores
Post a "my WooCommerce checkout is broken" question anywhere and the first reply is almost always the same: "Deactivate all plugins, switch to a default theme, then turn them back on one by one."
Symfony performance tips
Let's look at three basic techniques for optimizing services in Symfony while keeping the code clean.
Auditing PHP Code for Hidden Security Flaws
Spotting vulnerabilities in a PHP codebase requires understanding how the engine handles data types, superglobals, and input streams.
PHP 8.6 for Laravel Developers: 5 Features Worth Using
PHP 8.6 ships on November 19, 2026. It’s already at the release candidate stage, so the feature list is locked. Most “what’s new” posts list every RFC. This one doesn’t. It picks the five features that will actually change how you write Laravel code, and shows each one in a Laravel context: collections, form requests, queued jobs and the query builder.
Stop Paying for Idle Tenants: Database-per-Tenant Symfony 8.1 on One Shared Deployment
Database-per-tenant is the safe way to build a B2B SaaS on Symfony. Every workspace gets its own PostgreSQL database, its own queue and its own bucket, so a missing WHERE tenant_id = ? cannot leak anything and a big customer can be moved to a bigger server by changing a DSN.
|
Tutorials and Talks
Laravel Read Replicas: Check if a Replica Has Caught Up
A Laravel application with a read/write database connection writes to a primary server and reads from one or more replicas. Each replica copies changes from the primary, but it can fall behind. A user who saves a form and lands on the next page can see the old data, because that page read from a replica that has not received the write yet.
Building AI-Powered Web Applications with Laravel and PHP
If you are a PHP and Laravel developer wondering how to integrate AI into your backend ecosystem, this guide is for you. Let's explore how PHP developers can harness AI to build next-generation applications.
Prevent Identity Spoofing in React Telegram Mini Apps by Exchanging initData for JWT in PHP
Building a customized e-commerce store, booking engine, or SaaS portal inside Telegram's WebApp container with React provides a crisp, native-feeling user experience.
How to Integrate Gemini AI into a Laravel Application for Smart Web Features
Artificial Intelligence is transforming modern web applications. In this quick guide, we will look at how to easily integrate "Gemini AI" into a "Laravel" application to build smart, automated features like text generation, chatbots, and content assistants.
Symfony for Beginners: PHP's Most Serious Framework
Symfony is built from reusable components: routing, HTTP handling, templating, forms, security, and more. You assemble only what you need, and every piece follows the same conventions. The framework also has a strong emphasis on explicit configuration and long-term stability, so code written today keeps working for years.
Why Arabic breaks in your PDF (and how to fix it)
This is one of the most asked PDF questions on Stack Overflow; the dompdf question alone has been viewed almost 19,000 times. All four symptoms come from two steps that browsers do and most PDF libraries skip, so once you know the two steps, the fix is a choice between three approaches.
How to inventory every origin a Moodle page actually loads before you write a CSP
A generic Content-Security-Policy copied from a hardening blog will break a Moodle™ course page. H5P, TinyMCE, LTI tools, MathJax, CDN fonts and a YouTube embed all load origins that a "scripts from self only" policy never lists.
How to Update PHP Version in WordPress Without Breaking It
To update the PHP version in WordPress safely, first check which PHP version your site runs and which version your WordPress core, theme and plugins support, then make the switch on a staging copy, test the pages that earn you money, and only then change the live site from your hosting panel.
How to Hide PHP Source Code in 2026 (From a Developer Who's Been Doing It Since 2018)
Back in 2018, when we started building PHPDEFENDER, the PHP protection market was basically a two-horse race. If you wanted to hide your source code, you used IonCube or SourceGuardian.
How to Detect and Fix PHP Memory Leaks
This article shows how to confirm that you have a leak, the four causes I would check first (each reproduced and measured), how to find the guilty objects, and how to contain a leak you cannot fix immediately. |
News and Announcements
PhpStorm Light: Experimenting With a Lighter Version of PhpStorm
You may have never heard of PhpStorm Light, or you may be using it and wondering if this Early Access build is ever going to make its way into a major release.
Laravel AI SDK 1.4 Lets Agents Recover From Tool Failures
Laravel AI SDK v1.4.0 changes what happens when a tool throws an exception. The model now receives the failure as a tool result and the run continues, so the agent can explain the problem or try something else.
UUID Request Input and Migration Failure Events in Laravel 13.42
The Laravel team released v13.42.0 with uuid() and ulid() methods for request input, a MigrationFailed event, a reason on skipped scheduled tasks, a closure hook for detecting lost database connections, and more.
PHP 8.6.0RC7 available for testing
The PHP team is pleased to announce the fifth release candidate of PHP 8.6.0, RC7. This continues the PHP 8.6 release cycle, whose rough outline is specified in the PHP Wiki.
Symfony 8.2.0-BETA2 released
This is a pre-release version of Symfony 8.2. If you want to test it in your own applications before its final release.
November 9–15, 2026- A Week of Symfony #1037
This week, we published the second beta of Symfony 8.2 so you can keep testing it before its final release. Meanwhile, we kept publishing articles about Symfony 8.2 features, such as Messenger flows, AssetMapper improvements, form improvements, validator improvements, and link sets and link templates. In addition, around 50 teams joined the Symfony AI & MCP Hackathon, and we announced that SymfonyLive Paris 2027 will take place at Espace 42 on March 26 and 27.
This Week In PHP Internals | Nov 12, 2026
PECL, the old home of PHP extensions, now has a proposed shutdown date: December 31, 2027. The first draft ran to the end of 2029, until Derick Rethans suggested shortening it "by a year" and James Titcumb cut it "to a year". Derick is okay with that. Also this week: Larry Garfield calls the Scope RFC's empty new scopes a landmine, context managers come back as a generator, Kévin Dunglas's request hooks become an RFC, the Io\Terminal vote is postponed, the CSV extension spells out its types, OPcache dedup and a Linux exec-check proposal, PHP 8.6.0 due November 19, and more.
|
Podcasts and Vlogs
Laravel News: Scheduled Garbage Collection, Composer Security, and Deferred Schema Loading
Jake and Michael discuss all the latest Laravel releases, tutorials, and happenings in the community.
The Stack Overflow: The pioneering coding tricks that built Doom and Quake
Ryan chats with John Romero, creator of the WAD file and the video game Doom, about the self-modifying code and blitting techniques that made Wolfenstein run so fast on early PCs, the mod-friendly architecture that turned Doom into a cultural phenomenon, and why the raw creative problem-solving of Quake proves that human ideas will always beat AI coding agents.
Software Engineering Radio: SE Radio 746: Marian Kamenistak on Product Management for Software Engineers
Marian Kamenistak, founder of the Engineering Leaders Community and former VP of Engineering at Mews, joins host Priyanka Raghavan to discuss product management for software engineers.
Shoptalk Show: 741: Pseudo-pseudo-classes and Rainy Day Projects
Mouth blogging pseudo-pseudo-classes for maximum interactive demos, exporting tweets to WordPress, rainy day AI projects, is the web more useful now for everyone, and how are WordPress plugins still on Subversion?
WP Builds: #489 – Rethinking WordPress, open source, SaaS, and AI for 2027
This episode dives into Aaron Reimann’s firsthand experience as an agency owner navigating the wild ride of AI’s impact on WordPress and web development. Building tools, pivoting services, and open-sourcing projects have all become the norm as AI shakes up everything from pricing and productivity to security and job prospects.
Laravel Podcast: Caleb Porzio Unveils Paraframe: AI Design for Developers
In this episode, Matt Stauffer sits down with Caleb Porzio, creator of Livewire, Alpine.js, and Flux, for the first public look at Paraframe, his new AI-powered design tool for developers.
Mostly Technical: 158: Oops!...Ian Did It Again
Ian and Aaron discuss the all new aaronfrancis.com, why Ian wants Aaron to become photography guy, and yes, why Ian Laravel New'd once again - but this time, not for Outro.
Syntax: What the hell is going on with GitHub?
GitHub COO Kyle Daigle (Daglan in the transcript) gets grilled on the downtime, explains why AI agents are breaking everything with 7-8 billion commits a month, and walks through the massive Git infrastructure overhaul. Plus: are pull requests dead, and what the heck is Copilot Fusion?
The Changelog: All your packages are belong to us
AI agents can write the code, choose the packages, and run the install. Who’s checking what they just invited onto your machine? This week I’m joined by Ahmad Nassri, CTO of Socket and former CTO of npm. We get into the trust built into a package install, the new ways attackers are using agents, and what it takes to keep building without handing over the keys or your wallet.
|
|
Another Day, Another Bot Attack: The Reality of Running an Indie Site
Today was one of those days every indie site owner dreads. For three straight hours, SiteToolsBox.com was hammered by a bot wave. Fake submissions, spam comments, and automated tool flooding — the works. From the moment I opened the analytics dashboard, the numbers looked wrong: traffic spiked from nowhere, submission forms were filling themselves, and comment sections were being flooded with garbage.
A Contact Page Is a Trust Signal: Why Reviewers Look for a Human Behind the Tool
When I first built ramrom.io, the contact page was the last thing on my mind. The downloader worked, the pages looked tidy, and I honestly thought nobody would ever need to reach me. Then I applied for AdSense, and the review came back with the words every small site owner dreads: low value content.
39 of the top 100 WordPress plugins still use something PHP 8.6 deprecates. In three weeks, one fixed it.
HP 8.6 is due on 19 November 2026. On 28 October I took the 100 most popular plugins on WordPress.org (55,760 PHP files) and checked them against the official PHP 8.6.0RC4 build in three ways
Not a DDoS but an OPcache bug: 600 MB PHP-FPM workers on a server with 5,500 WordPress sites
The client wrote: the sites are down, looks like a DDoS. The server runs about 5,500 WordPress sites on nginx, PHP-FPM 8.4 and MariaDB, with 125 GB of RAM on Debian 13. I found a scanner, blocked it in nginx, and the sites came back. Two days later the client wrote again: now everything falls over every five minutes.
PHP2Shell was probed before the patch
PHP fixed two unauthenticated remote code execution bugs on October 21. Amazon saw an exploit attempt on October 17. Most companies run PHP inside software they buy, so the work is a vendor inventory, not only a patch.
Tech debt is not dead. It chose the format of our referral codes
"What happens if I create a voucher called P66666666 by hand?" I asked that on October 23, the morning of the day our referral program went to production. The answer started with: it can't exist. The voucher code is a char(8). PostgreSQL refuses a ninth character, and our admin form stops typing at eight.
|
Interesting Projects, Tools and Libraries
makinacorpus/db-tools-bundle
A set of Symfony commands to dump/restore/anonymize database.
northwestern-sysdev/er-diagram-tool
Automatically generate entity relationship diagrams for a Laravel application.
cerbero/command-validator
Laravel package to validate the input of console commands.
cboxdk/laravel-health
Health checks, Kubernetes probes, Prometheus metrics, and system monitoring for Laravel.
jobiqo/composer-patches-install
Composer plugin that detects patches.lock.json changes and triggers re-patching of affected packages.
webapix/dot-net-json-date-formatter
Convert .net json date format to PHP DateTime object and vica versa.
lorenzo/audit-stash
Flexible and rock solid audit log tracking plugin for cakephp.
spatie/sheets
Store & retrieve your static content in plain text files.
spaze/phpstan-disallowed-calls-symfony
Symfony-specific configuration for Disallowed method and function calls extension for PHPStan.
simonbackx/slack-php-webhook
Post messages to your Slack channels with this easy to use library.
|
Jobs
------
Do you have a position that you would like to fill? PHP Weekly is ideal for targeting developers and the cost is only $75/week for an advert. Please let me know if you are interested by emailing me at [email protected] |
Please help us by clicking to our sponsor:
Protect your PHP Code
Why not try SourceGuardian 17. Click here to download a 14 Day Trial copy. Protect your code using Windows, Linux or Mac and run everywhere with our free Loaders. |
So, how did you like this issue?
|
|
|
|