PHP Weekly - February 20th 2025

Curated news all about PHP.  Here's the latest edition Is this email not displaying correctly?
View it in your browser.
PHP Weekly 20th February 2025

Hi everyone,

We are a few days away from the launch of Laravel 12, and if you want to review some of the upcoming features with its release, just head on to our archive section where you can find older editions of our newsletter. This week we have tutorials on Laravel's full-text search, validating image dimensions and building a secure API with Laravel. In Podcasts this week we have new episodes from Laravel News on Laravel 12, No Compromises talks about dealing with learning new technology, while Maintainable chats about the sustainability of open-source projects. Finally in our Reading section we have Mastering DTOs, Simple image testing and the 8 best PHP Web scraping libraries. 

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 articles@phpweekly.com.

All the best,
Adrian


Please help us by clicking to our sponsors:

Sponsor Logo

Get Reliable, Fast & Quality Proxies, Without the Tradeoffs
Scrape or crawl any amount of data, without having to worry, settle or break the bank. Buy HTTP, SOCKS & UDP proxies you can set and forget.


Articles


Cache Poisoning in Laravel: Preventing Common Vulnerabilities
This blog will walk you through what cache poisoning is, how it works in Laravel, and most importantly, how to prevent it with coding examples.

Preventing Destructive Commands from Running in Laravel
I recently stumbled upon a cool Laravel feature I hadn't come across before: the ability to prevent destructive commands from running in production.

Optimizing PHP Applications: Why Separate Read and Write Models Matter
Models are a great tool to communicate with a data storage. We can define how the data looks like, and that makes sure that it’s compatible with the data storage, typically a database. 

Solving Problems the Right Way: Leveraging Frameworks Over Quick Fixes
We have a feature that allows importing CSV files into a database. The CSV rows can contain date fields as well, so we implemented a date parser before inserting the data into the database. 

Why State of PHP 2024 is all about Laravel
The latest State of PHP post, was more, well, very Laravel-heavy. Let me explain why.

9 Tips for Building and Developing Secure PHP
Secure coding isn’t just about patching vulnerabilities. It’s a mindset: anticipating risks, designing safeguards, and ensuring your application remains robust under pressure. Below are actionable strategies to fortify your PHP projects against common threats.

Tutorials and Talks


Using Relative Date Helpers in Laravel's Query Builder
With the release of Laravel 11.42, we now have access to useful relative query builder methods for dates. While you don't need to refactor all your applications to use these methods, they add a nice, readable touch to relative date logic in your models. 

Harnessing Full-Text Search in Laravel
Laravel provides robust full-text search capabilities through the whereFullText and orWhereFullText methods, offering a more sophisticated approach to data queries compared to basic LIKE clauses.

Running Laravel Reverb in the Background Using systemd
In this post, I’ll show you how to configure and run the Reverb WebSocket server in the background using systemd. This approach ensures your WebSocket server starts with the system and restarts automatically in case of failure.

Deploying a Laravel Project on Forge with Reverb WebSockets | Real-Time Setup Tutorial
Want to deploy your Laravel project on Forge with real-time WebSockets using Reverb? In this step-by-step tutorial, we’ll walk you through setting up Laravel Forge, configuring your server, and integrating Reverb for real-time communication.

How to Create a Package in Laravel
In this guide, we will walk you through creating a Laravel package from scratch for user-management.

PHP Web Development Services: The Ultimate Guide
This comprehensive guide will explore the various aspects of PHP development, the advantages of hiring a PHP development agency, and why India is a leading destination for PHP development services.

Image Dimension Validation in Laravel
Need to validate image dimensions in your Laravel application? The dimensions validation rule provides a flexible way to ensure uploaded images meet your specific requirements.

How to Bulk Insert Data to database using Laravel
What if we had a csv file with millions of records to import to the database using Laravel. There are four approaches we can take.

Building a Secure API with Laravel: Role-Based Access Control using Spatie Permissions
In this tutorial, we’ll explore how to implement RBAC in a Laravel API using the powerful Spatie Permission package.

News and Announcements


PHP 8.3.17 & PHP 8.4.4 Released!
The PHP development team announces the immediate availability of PHP 8.3.17 & PHP 8.4.4. This is a bug fix release.

Introducing the Laravel Developers Report 2025
The Laravel Developers 2025 Report is here! Based on insights from Laravel developers across the world, this report uncovers key trends, challenges, and opportunities shaping the Laravel ecosystem in 2025.

Fusion Developer Preview is released: Write PHP inside your Vue and React components
Aaron Francis and Try Hard Studios just officially launched Fusion and you can find it on Github!

CakePHP 4.6.0-RC1 RELEASED
Updates include: RedisEngine now supports a tls option for connecting to redis via a TLS connection. Number::formatter() and currency()now support a roundingMode option to control how rounding is handled.

A Week of Symfony #946 (10-16 February 2025)
This week, development activity focused on the upcoming Symfony 7.3 version. We introduced a simpler way to configure DKIM and SMIME options, improved how to work with value objects in the container and added Markdown format support for tables in the console.

Laravel Live Denmark 2025
Laravel Live Denmark is back with the second edition. Join over 300 other Laravel and PHP enthusiasts from around the world for two days of learning, 16 speakers and more within the Laravel community.

ConFoo 2025 - February 26-28, 2025, Montreal, Canada
ConFoo is back for its 23rd edition, at Hotel Bonaventure in Montreal, with a full stack of incredible talks with the best speakers in tech.

Podcasts and Vlogs


Laravel News Podcast: Laravel 12, Skeletor, and integrating IMAP
Jake and Michael discuss all the latest Laravel releases, tutorials, and happenings in the community.

The Stack Overflow: Why is it so hard for companies to protect your privacy? 
Minh Nguyen, VP of Engineering at Transcend, joins Ryan for a conversation about the complexities of privacy and consent in tech, from the challenges organizations fac
In this episode, Joel and Aaron discuss the struggles of learning new technology on a late-night side project. They share tips for handling frustration and managing expectations.

Maintainable Podcast: Marty Haught: Rethinking Technical Debt—Is It Really Just Drift?
Marty Haught joins Robby to discuss the sustainability of open-source projects, the challenges of maintaining RubyGems, and why the metaphor of technical debt may not fully capture how software ages. 

Software Engineering Radio: SE Radio 655: Charles Humble on Professional Skills for Software Engineers
In this episode, Charles Humble speaks with host Brijesh Ammanath about skills that can provide developers a grounding in systems thinking.

Shoptalk Show: Talking to Bots, Building Browser Games, and Political LLMs
Remembering the old days before we had bots, teaching kids to talk to bots, how difficult is it to build games in the browser, are we seeing LLMs get more political, what does mainstream media really mean, and have you heard about PouchDB?

WP Builds: 409 – What just happened? Episode 3. Funding, acquisitions, legal and events 
In this episode of the WP Builds podcast, I’m joined by Rae Morey once again to discuss various updates in the WordPress community, including the launch of a new event called PressConf, the release of WordPress 6.7, and significant acquisitions like Group One acquiring GT Metrics. 

PHP Architect: The PHP Podcast: 2025.02.13 
This week on the PHP Podcast, Eric and John discuss PHPStan 2.0, Facebook blocking Linux, JetBrains The State of PHP 2024, what’s new in PhpStorm 2024.3, and more.

Mostly Technical: 70: Robber Baron Mentality
Ian and Aaron discuss why Aaron needs a hobby, HelpSpot's new logo & 20 year (!) revenue graph, microwave power settings, the release of Fusion, and so much more.

Syntax: Tailwind 4
Discussion of new features and improvements in Tailwind CSS 4 including better performance, CSS variable support, container queries and more modern CSS capabilities.

The Changelog: AI is stifling tech adoption
Declan Chidlow proposes that AI is stifling tech adoption, Ariel Salminen shares 17 pieces of advice she’s learned about leading successful product teams, Benj Edwards tells the story of WikiTok, the React team sunsets Create React App & Ruben Schade says boring tech is mature, not old.

Reading and Viewing


Laravel: The solution for third-party migrations and models
I’ve always had problems with how to approach third-party migrations — packages requiring a new table in your database so the included Eloquent Models can work. I know two ways to deal with this, when you’re a package author.

8 Best PHP Web Scraping Libraries in 2025
Here, I’ll take you through eight of the best PHP web scraping libraries available today. I’ll highlight their features, the pros and cons of each, and show you how to use them so you can get the data you need with ease. 

Mastering DTOs, Types, and Static Analysis in PHP: A Beginner’s Guide (2025)
In this comprehensive guide, we’ll explore these concepts using real-world examples you can apply today.

Simple Image Testing in Laravel with Pest
While PHPUnit is a solid choice, I’ve found Pest Test to be more enjoyable and productive, so we’ll be using it for these examples. 

Why Strategy and Chain of Responsibility are everywhere in Symfony Components
Design patterns are the backbone of maintainable and scalable software. In the Symfony ecosystem, two patterns stand out for their frequent and powerful collaboration.

Interesting Projects, Tools and Libraries


phillipjohnson/wordpress-eloquent-clone
A Laravel wrapper for wordpress which turns all Wordpress models into Laravel Eloquent Models.

yiiplus/yii2-storage
YiiPlus Storage.

sparkcentral/marshaller
Generic marshalling component. Provides functionality to transform data from one form to another and vice versa.

slick/orm
Slick ORM is a module that provides ORM support to a Slick application using doctrine/orm.

rdx/imap
Reads and parses e-mail from an IMAP/POP3 source.

nmure/encryptor-bundle
A Symfony Bundle for the nmure/encryptor library.

silpion/logger-extra-bundle
Extra logging features for Monolog in a Symfony2 bundle.

yiivgeny/yii-phpdoc-crontab
Simple and convenient installing console commands as cron jobs for Yii framework.

indatus/dispatcher
Schedule your artisan commands within your application's source code.

maherio/graceful-cache
A wrapper for Laravel's Cache Repository to allow for graceful caching.

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 articles@phpweekly.com

Please help us by clicking to our sponsor:

 encrypt php scriptsProtect your PHP Code
Why not try SourceGuardian 15. Click here to download a 14 Day Trial copy. Protect your code using Windows, Linux or Mac and run everywhere with our free Loaders.



Sponsor this newssletters

So, how did you like this issue?

Like us on FacebookFollow us on Twitter
We are still trying to grow our list. If you find PHP Weekly useful please tweet about us! Thanks
Also, if you have a site or blog related to PHP then please link through to our site.
unsubscribe from this list  
 

Protect your PHP code with SourceGuardian 15. Free trial.

Copyright © 2025 PHP Weekly, All rights reserved.
Because you signed for it!
Our mailing address is:
PHP Weekly
Rotterdam House
116 Quayside
Newcastle Upon Tyne, NE1 3DY
United Kingdom
 

 

Older messages

February 13th 2025

Friday, February 14, 2025

Curated news all about PHP. Here's the latest edition Is this email not displaying correctly? View it in your browser. PHP Weekly 13th February 2025 Hi everyone, We have less than two weeks from

January 9th 2025

Thursday, January 9, 2025

Curated news all about PHP. Here's the latest edition Is this email not displaying correctly? View it in your browser. PHP Weekly 9th January 2025 Hi everyone, It's back to the regular grind

January 2nd 2025

Friday, January 3, 2025

Curated news all about PHP. Here's the latest edition Is this email not displaying correctly? View it in your browser. PHP Weekly 3rd January 2025 Hi everyone, It's the first newsletter for the

December 26th 2024

Thursday, December 26, 2024

Curated news all about PHP. Here's the latest edition Is this email not displaying correctly? View it in your browser. PHP Weekly 26th December 2024 Hi everyone, It's boxing day in some parts

December 19th 2024

Friday, December 20, 2024

Curated news all about PHP. Here's the latest edition Is this email not displaying correctly? View it in your browser. PHP Weekly 20th December 2024 Hi everyone, The holiday season is upon us, and

You Might Also Like

Import AI 400: Distillation scaling laws; recursive GPU kernel improvement; and wafer-scale computation

Thursday, February 27, 2025

The hardest thing about seeing a portal is getting others to see it ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏

GCP Newsletter #438

Thursday, February 27, 2025

Welcome to issue #438 February 17th, 2025 News Gemini Official Blog Security Enhance Gemini model security with content filters and system instructions - Google Cloud's Gemini model offers enhanced

Mapped | How Much Each U.S. State Imports from the EU 📊

Thursday, February 27, 2025

Reciprocal tariffs mean European product prices will increase. Here's how much each state imports from the EU. View Online | Subscribe | Download Our App See new charts from hundreds of creators—

The Sequence Opinion #499: Reinforcement Learning was Dying and then Gen AI Came Along

Thursday, February 27, 2025

Some perspectives about how foundation models inspired a new era in reinforcement learning. ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏

Bybit Hack Traced to Safe{Wallet} Supply Chain Attack Exploited by North Korean Hackers

Thursday, February 27, 2025

THN Daily Updates Newsletter cover ⚡ LIVE WEBINAR ➟ The Anatomy of a Ransomware Attack Watch a Live Ransomware Attack Demo, Uncover Hacker Tactics and Learn to Defend Download Now Sponsored LATEST NEWS

Daily Coding Problem: Problem #1694 [Medium]

Thursday, February 27, 2025

Daily Coding Problem Good morning! Here's your coding interview problem for today. This problem was asked by Fitbit. Given a linked list, rearrange the node values such that they appear in

JSK Daily for Feb 17, 2025

Thursday, February 27, 2025

JSK Daily for Feb 17, 2025 View this email in your browser A community curated daily e-mail of JavaScript news Meet Harmony An open source library for composing consistent and highly performant

New Blogs on ThomasMaurer.ch for 02/18/2025

Thursday, February 27, 2025

View this email in your browser Thomas Maurer Cloud & Datacenter Update This is the update for blog posts on ThomasMaurer.ch. Arc Jumpstart Drops: Share your Scripts and Tools with the Community!

The USB That’s Wasn’t 🖱️

Thursday, February 27, 2025

A forgotten universal port standard that secretly survives. Here's a version for your browser. Hunting for the end of the long tail • February 17, 2025 Today in Tedium: If you know your tech

📧 Understanding Cursor Pagination and Why It's So Fast (Deep Dive)

Thursday, February 27, 2025

​ Understanding Cursor Pagination and Why It's So Fast (Deep Dive) Read on: m​y website / Read time: 11 minutes The .NET Weekly is brought to you by: Build better with AWS, using tips and tools