Hi everyone,
With people being so busy these days you wish most things are conveniently organised and easily accessed. When it comes to PHP news and updates, you have it all here in a neatly packed newsletter. This week we have articles on using Laravel event listeners, a handy way to handle API validation, and 10 benefits to using enums instead of constants in PHP. In tutorials we have guides on fixing php link issues with dynamic URLs, zero downtime deployment for Laravel with GitHub actions, and effective error handling strategies for large scale php projects. Finally in our Podcast section we have new episodes from Laravel News on memorised caches, HTTP fixtures, while the folks at PHP Architect talk about PHP Tek, DIY digital calendars and digging into Digg.
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
Understanding Laravel's Arr::dot() Method
In this article, we’ll explore what Arr::dot() does, how it works, and when you might want to use it.
Using Laravel Event Listeners for Cleaner, Decoupled Code
As your application grows, it's common to see controllers doing too much — saving data, sending emails, updating reports… all in the same place. That makes your code harder to maintain and reuse.
Custom ValidaCtion Rules in Laravel 12
In this article, we’ll explore how to create and use custom validation rules in Laravel 12.
10 Essential Laravel Helpers You Should Be Using
Laravel offers many global helper functions that make your code cleaner and easier to write. In this post, I’ll show you 10 helper functions I often use in real projects — they can help you write better and more readable code.
A Handy Way to Handle API Validation in Laravel
We all want our code to be clean, maintainable, and high-quality. As someone who really values good architecture, I want to share an idea on how to avoid creating tons of repetitive Form Request classes in Laravel - you know, those like CreateUserRequest, UpdateUserRequest, and so on.
The Untapped Power of Value Objects in Modern PHP
In modern PHP development, we often chase bigger frameworks and fancy libraries — yet sometimes, real breakthroughs come from small, fundamental shifts in how we model our code.
10 Benefits of Using Enums Instead of Constants in PHP
Let me start off by saying this: if you’ve been coding in PHP for a while, you know the pain of juggling constants all over your codebase.
|
Tutorials and Talks
URI Path Components Using Laravel's pathSegments() Method
Laravel introduces the pathSegments() method for the Uri class, providing a more elegant approach to accessing and manipulating URI path components. This addition streamlines path segment operations with a clean, collection-based interface.
Build a Smart AI Task Manager with Laravel, Livewire & PrismPHP
Laravel makes it easy to build powerful applications—but what if you could take things a step further by adding real AI capabilities into your workflow?
How to Handle HTTP Responses with the Stream+JSON Content Type Using PHP Generators
In this article, I'll discuss: What Content-Type: stream+json is, How to handle stream+json responses with PHP.
Building a Laravel Filament Multi-Tenant Panel
In this guide, we will set up a multi-tenancy panel with Filament named Member. The tenant model will be Entity, and it will include a name field.
How to Fix PHP Link Issues with Dynamic URLs
In this article, we'll explore the reasons this may happen and provide clear solutions to ensure your links work as expected.
Timezone setup for Forms, Tables, and Filters in Filament
This article demonstrates how to configure timezone management for forms, tables, and filters, ensuring your users see dates in their preferred timezone.
Zero Downtime Deployment for Laravel with GitHub Actions
Zero downtime deployment means updating your app without users noticing any interruption — the site stays online and responsive while the new version is being deployed.
Effective Error Handling Strategies for Large-Scale PHP Projects
In this guide, we dive into professional strategies for designing robust error handling systems that make big applications reliable, maintainable, and scalable. |
News and Announcements
CakePHP 4.6.1 RELEASED
Improvements: Cake\Cache\Engine\NullEngine::getMultiple() now returns all keys like other cache engines. MemcachedEngine::getMultiple() now handles null values correctly + more.
A first look at Laravel Nightwatch
Laravel Nightwatch is a new product from the Laravel team that will give you awesome insights into your application's performance. It delivers the intelligence only a system obsessively optimized for Laravel can deliver.
Celebrate 30 years of PHP at PHPverse
JetBrains is hosting PHPverse 2025, a free virtual event commemorating 30 years of PHP.
Typed Arr Getters Added in Laravel 12.11
The Laravel team released v12.11.0, which includes typed Arr getter methods, job payload additions, the FakeJob class now implements the Job contract, and more.
All About the Filament v4 Beta Release
In this post, we're going to drop some exciting details about the v4 Beta that will be released in the near future. Get excited, because it's almost time!
April 28 – May 4, 2025 - A Week of Symfony #957
This week, Symfony 6.4.21 and 7.2.6 maintenance versions were released. In addition, we published the first beta of Symfony 7.3 so you can test it in your own apps before its final release at the end of May 2025. Lastly, we shared more details about some of the talks at the upcoming SymfonyOnline June 2025 conference.
phpday 2025
Now in its 22nd year, phpday has been held continuously since 2003. The 2025 edition will be hosted in Verona on May 15-16.
|
Podcasts and Vlogs
Laravel News Podcast: Memoized caches, mobile Laravel, and HTTP fixtures
Jake and Michael discuss all the latest Laravel releases, tutorials, and happenings in the community.
The Stack Overflow: Improving on a 30-year-old hardware architecture
At HumanX 2025, Ryan chatted with Rodrigo Liang, cofounder and CEO of SambaNova, about reimagining 30-year-old hardware architecture for the AI era.
Software Engineering Radio: SE Radio 666: Eran Yahav on the Tabnine AI Coding Assistant
Eran Yahav, Professor of Computer Science at Technion, Israel, and CTO of Tabnine, speaks with host Gregory M. Kapfhammer about the Tabnine AI coding assistant.
Shoptalk Show: 663: HBD Dave, Silly Web Fun, Color-Mix Tips
Do we sound drunk on Shorts? What speed do you listen to your podcasts at? Happy Birthday to Dave, Roblox scams, having silly fun on the web, Crashlands 2 released, a Balatro moment, non-standard browser use testing, and color-mix follow up.
WP Builds: 420 – Simplifying WordPress data exports and imports with WPSyncSheets
In this episode, Nathan Wrigley chats with Arpit G Shah, founder of Creative Work Designs, about WPSyncSheets plugins. Arpit shares how his tools enable bi-directional syncing of WordPress and WooCommerce data with Google Sheets, making tasks like import/export, inventory management, and bulk edits easier.
PHP Architect: The PHP Podcast: 2025.05.01
This week on the PHP Podcast, Eric and John talk about PHP Tek 2025, Dead Tech, DIY Digital Calendars, Digging into Digg, Meetups, and more…
Mostly Technical: 81: Nothing Ever Happens
Ian and Aaron give updates on the Mostly Technical Party & what's new with Try Hard Studios before talking a little bit about politics (tariffs!), using AI, and more.
Syntax: GSAP: Killer Web Animations With Cassie Evans
Cassie Evans from GreenSock explains what GSAP is, why developers use it for animation, how it works, techniques for smooth performant animations, and new developments like GSAP becoming free and open source.
The Changelog: Firefox could be doomed
The DOJ’s beef with Google might spell doom for Mozilla, Clayton Ramsey makes a plea for not using ChatGPT for writing, Tim Cook loses a big gamble, Brandon Reinhart migrates his game dev away from Rust and Bevy, and Ibrahim Diallo throws zip bombs at malicious bots.
|
Mastering Middleware Execution Order in Laravel 12
From authentication to CSRF protection, middleware acts as the guardians of your app, ensuring requests meet specific criteria before reaching your business logic.
Mastering PHP's Type Hints: A Comprehensive Guide to Writing Robust Code
In this extensive blog post, we’ll explore the power of PHP’s type hints, why they matter, and how to use them effectively.
Debugging MongoDB PHP Extension Errors in Docker: The Silent Cost of Upgrading
Recently, while maintaining a Laravel application using the jenssegers/laravel-mongodb package, I encountered multiple unexpected runtime errors after upgrading our Docker base image since mid April 2025.
Laravel: Forced to deal with Time Zones
The golden rule for handling timestamps in Laravel is always treat them in UTC, and this is for a simple reason: it’s the ground truth for time.
Laravel Facades vs Dependency Injection: What’s the Difference and When to Use Each
Laravel provides two primary methods for accessing services and functionality within your application: Facades and Dependency Injection. Each approach has its strengths and appropriate use cases.
Interesting Details About Polymorphism In Php (That You Might Not Have Expected)
After so many years with PHP, changes in syntax, and the language’s approach to the OOP paradigm, I’ve encountered some limitations, many nuances… and practical solutions worth knowing. Here, I explain it the way I wish I had read it when I started.
5 tricky questions in a PHP interview
This article is to help candidates better prepare for a technical interview. I don’t think those questions are the hardest, but they may surprise you.
Symfony Controller Request Data Mapping: A Modern Approach
In modern web applications, controllers often need to process data URL parameters (query strings) or Request body. Handling this data efficiently while ensuring it’s properly validated is a critical but often tedious task.
|
Interesting Projects, Tools and Libraries
grandt/phpzipmerge
Merge and stream multiple Zip files on the fly.
hirethunk/verbs-commands
An event sourcing package that feels nice.
jmf/twig-currency
Twig extension for handling currency in Twig templates.
jobmetric/laravel-barcode
This is a barcode management package for Laravel that you can use in your projects.
hiraeth/doctrine
Doctrine integration for the Hiraeth Nano Framework.
conedevelopment/bazar
Bazar is a drop-in package for e-commerce Laravel applications.
wsdltophp/phpgenerator
Generate php source file.
latitudefinancial/payment
Latitude Payment Plugin offering 3-in-1 integration with Interest Free, LatitudePay, and Genoapay.
sohaibilyas/facebook-php-sdk
Easy to use PHP SDK to interact with Facebook API.
inphinit/teeny
A ready-to-use route system.
|
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?
|
|
|
|