Hi everyone,
It's php news and so much more here at PhpWeekly. This week we have tutorials on Querying relationships in Laravel, a step-by-step guide to implementing Multi Auth in Laravel 12, and cleaning up conditonal logic using one of the most powerful design patters. In Podcasts we have new episodes from The North Meets South guys on Laracon, controller middleware, and permissions. Syntax recaps the the current state of web authentication, and Laravel Podcast sits down with David Hill, the Head of Design at Laravel and shares his journey from industrial design to digital product design. Finally in the Reading section we have articles on Mastering the Factory Pattern in PHP, Simplifying Your Eloquent Queries, and Mastering the Singleton Pattern in PHP.
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:
|
Articles
PHP Fatal Error Backtraces in PHP 8.5
With PHP 8.5, a new fatal_error_backtraces setting can control whether a backtrace is shown for fatal errors. Fatal errors without backtraces in today's stable PHP versions (i.e., PHP 8.4) might include parse errors (syntax errors), duplicate functions or classes, infinite loops with a max execution time, etc.
PHP 8.5 Introduces an INI Diff Option
PHP 8.5 introduces a diff option for the php --ini flag that makes it easy to identify changed INI values in your configuration. The --ini flag is helpful to show the loaded php.ini configuration file, as well as additional .ini files parsed.
From Chaos to Clean: Implementing Hexagonal Architecture in PHP
Have you ever inherited a PHP project where changing one small feature breaks three other seemingly unrelated parts? Or struggled to write tests because everything is tightly coupled to the database? Welcome to the world of architectural chaos!
FrankenPHP vs PHP-FPM: Benchmarks, Surprises, and One Clear Winner
I’ve always been cautious about jumping on new technology trends — especially when it comes to something as foundational as how PHP is served.
Microservices with Laravel 11: Best Practices for Scaling Applications
Hello, laravel web developers! In this article, we’ll see how to create microservices with laravel 11.
|
Tutorials and Talks
Laravel's toUri() Method for Dynamic URL Construction
Laravel's toUri() method transforms string-based URL extraction into fluent URI manipulation, enabling dynamic parameter addition and modification through method chaining.
Laravel's Rule::contains() for Fluent Array Validation
Laravel's Rule::contains() method brings array validation into the fluent interface ecosystem, providing consistent syntax that matches other validation rules while improving code readability.
Querying Relationships in Laravel with whereRelation
Laravel's query builder provides the whereRelation method, which is very useful for querying relationships.
How to Call Protected Methods from Plugin Classes (PHP, Java, C#, Python)
In Object-Oriented Programming, protected methods are only accessible from within the class or its subclasses.
Laravel 12 Multi Auth - User & Admin Panel with GitHub Copilot (Login, Register, CRUD & Template Integration)
Here’s a step-by-step guide to implementing Multi Auth (User & Admin) in Laravel 12 using GitHub Copilot in VS Code.
Laravel Zero-Downtime Migration with Double Write and Backfill
Imagine this: You need to update your database schema, but your Laravel app is serving thousands of users every minute. Running a normal migration might cause table locks, errors, and possibly downtime. Worst-case scenario? Users leave and never come back.
Clean Up Conditional Logic with the Strategy Pattern in PHP
How to transform your rigid, hard-to-maintain code into flexible, extensible solutions using one of the most powerful design patterns. |
News and Announcements
NativePHP for Mobile v1.1: Smaller, Smarter, and Ready to Scale
Since launching NativePHP for Mobile in May, we’ve been building fast and quiet — refining the core, tightening the tools, and expanding what’s possible.
Conditionally Fail Queue Jobs While Throttling Exceptions in Laravel 12.20
The Laravel team released v12.20.0 with the ability to fail while throttling queue exceptions, a Queue Facade fakeFor method, a Context::remember() method, the ability to customize Collection pluck() with a callback, and more.
July 7–13, 2025: A Week of Symfony #967
This week, Symfony unveiled the Symfony AI initiative, a set of components and bundles designed to bring powerful AI capabilities directly into your PHP applications. In addition, we published travel and lodging tips for the SymfonyCon Amsterdam 2025 conference.
PHP 8.5 Adds Pipe Operator: What it means
PHP 8.5, due out November of this year, will bring with it another long-sought-after feature: the pipe operator (|>). It's a small feature with huge potential, yet it still took years to happen.
Laravel Live Denmark, Copenhagen August 21-22, 2025
Join us and 300 other Laravel and PHP enthusiasts from around the world got for two days of learning, 16 speakers and more within the Laravel community.
|
Podcasts and Vlogs
The Stack Overflow: Where we’re going, we don’t need fossil fuels
Ryan is joined by Kieran Furlong, CEO of Realta Fusion, to talk about the future of fusion as a safe and sustainable energy source, the computation and scientific advancements that have made fusion possible, and how fusion technology innovations will address data and AI’s rising energy demands.
North Meets South Podcast: Laracon, controller middleware, and permissions
In this episode, Michael and Jake kick things off with some Laracon travel talk, sharing their hotel plans, coffee quests, and even jokes about pillow fights at the conference hotel.
Software Engineering Radio: SE Radio 676: Samuel Colvin on the Pydantic Ecosystem
Samuel Colvin, the CEO and founder of Pydantic, speaks with host Gregory M. Kapfhammer about the ecosystem of Pydantic’s Python frameworks, including Pydantic, Pydantic AI, and Pydantic Logfire.
Developer Tea: Perfection Is Fragile, and You Should Avoid It
This episode discusses why perfection is a dangerous and fragile goal, explaining how striving for 100% leads to unsustainable outlier states.
Shoptalk Show: Live-streaming Demos, CSS Animation Composition, and Anchor Position
Chris and Dave chat about whether you should wing it or script your videos, unplanned demos versus the safety net of edited videos, streaming software with Ecamm Live vs OBS vs Streamlabs, new CSS animation composition, and anchor positioning thoughts.
WP Builds: 428 – Bulk editing WooCommerce products faster with Setary: Katie Keith shares insights and benefits
In this episode of WP Builds, Nathan Wrigley talks with Katie Keith, founder and CEO of Barn2 Plugins, about their new partnership with Setary, a SaaS bulk editing tool for WooCommerce products.
Laravel Podcast: Design at Laravel & Terminal with David Hill
In this episode, Matt Stauffer sits down with David Hill, the Head of Design at Laravel. David shares his journey from industrial design to digital product design, discussing the challenges and opportunities he encounters in his role.
PHP Architect: The PHP Podcast: 2025.07.10
This week on the PHP Podcast, Eric and John discuss PHP 8.5’s new INI Diff feature, Exploiting Public APP_KEY Leaks, Does Theo listen to the podcast? Spoiler: NO, and more.
Mostly Technical: 91: Up & To The Right
Ian and Aaron discuss haters on the internet, doing more with AI, why Aaron is automating as much as possible with Telegram, and so much more.
Syntax: Better Auth with Better Auth
Scott and Wes recap the current state of web authentication and explore how Better Auth simplifies the whole process.
The Changelog: An app can be a home-cooked meal
Researchers in Japan achieve a world record in data transmission speeds, Robin Sloan explains how an app can be a home-cooked meal, Windsurf founders Varun Mohan & Douglas Chen are headed to Google, new Intel CEO Lip-Bu Tan says it’s too late for the incumbent, Anton Zaides says stop forcing AI tools on your engineers, and Adrien Friggeri visualized his ten-year running streak.
|
Set up an AI-powered Laravel Development Environment with Claude Code and MCP Servers
The Laravel Claude Code Setup repo is a one-command setup for AI-powered Laravel development with Claude Code and MCP servers. Automatically configure all MCP servers for the ultimate AI-powered Laravel development experience with Figma integration.
Mastering the Singleton Pattern in PHP: From Bad Code to Best Practices
Transform your PHP applications with proper resource management and global access control.
Laravel 12 Local Scope: Simplify Your Eloquent Queries Like a Pro
Laravel’s Eloquent ORM continues to evolve, and with Laravel 12, local scopes remain one of the most powerful yet underutilized features for writing clean, maintainable database queries.
Banned Users with Force Auto-Logout in Laravel
In this article, we’ll fix that by creating an auto-logout system that instantly kicks out banned users.
Mastering the Factory Pattern in PHP: Build Cleaner and Scalable Code
Learn how to eliminate complex conditional logic and create maintainable, extensible PHP applications.
Understanding Context in Laravel 12
The Context class is a centralized, request-scoped storage system that enables developers to share data between different parts, including HTTP requests, queued jobs, and Artisan commands.
|
Interesting Projects, Tools and Libraries
mannikj/laravel-wallet
Easy to use virtual wallet for your app.
sbsedv/request-id-bundle
A Symfony bundle that adds a unique Request-ID.
northwestern-sysdev/er-diagram-tool
Automatically generate entity relationship diagrams for a Laravel application.
jplarar/sns-bundle
A simple Symfony2 bundle for the API for AWS SNS.
tempest/cache
The PHP framework that gets out of your way.
feature-browser/feature-browser
Feature Browser takes your Behat .feature files and turns them alchemy-like into an interactive user manual.
heimrichhannot/contao-exporter-bundle
A backend module for exporting any contao entity to file.
libriciel/cakephp-postgres
Plugin CakePHP 2.x pour le SGBD PostgreSQL.
laravel-json-api/hashids
Encode model IDs to JSON:API resource IDs.
ganyicz/nova-temporary-fields
Make Laravel Nova fields temporary.
|
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 16. 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?
|
|
|
|