PHP Weekly - PHPWeekly November 14th 2024

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

Hi everyone,

We're one week before the release of PHP 8.4, and for those of you who want to know about the new features and updates on the upcoming release we have our archive issues that you can browse to check them out. You can also take the fourth PHP 8.4 release candidate for a test drive in our News section. This week we also have the latest Xdebug update from Derick Rethans, as well as new updates from PHPStan and Laravel Nightwatch. In Tutorials we have guides for understanding Shortcodes in WordPress, an effective caching strategies in Laravel with Redis, Best Practices and Techniques for optimising PHP performance for high-traffic websites, and a 5-star guide for securing your PHP, MySQL, cPanel & WHM Server Against Malware. Finally in our Reading section we have articles on the magic behind Laravel's new defer() helper, PHP Blunders You Can’t Afford to Make and what to do when you do, and, Cross-Process Lock Management in Laravel. We have all that and more, so we do hope you enjoy this week's newsletter.

We would like to give a shoutout to our sponsor, Sevalla for their support. If you want seamless scaling with Kubernetes, Cloudflare, and more, check out their link below.

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 sponsor:

Sponsor LogoSupercharge Your PHP Projects with Sevalla Cloud Platform!
Unleash your projects' potential! Scale seamlessly with Kubernetes and Cloudflare, and watch your apps, databases, and static sites thrive at Sevalla.

Articles


Securing Laravel Applications with Stephen Rees-Carter
Join us as Stephen Rees-Carter delves into Laravel security, discussing security consulting, the importance of penetration testing, and common vulnerabilities found in Laravel applications.

Implementing a DDD Use Case in PHP
This article explores a Domain-Driven Design (DDD) Use Case model in PHP, demonstrating how to utilize interfaces and domain-specific classes to manage data persistence. We'll examine the TaxPersistUseCase class, which uses a persistence manager (TaxManagerInterface) to save an entity of type Tax, representing a tax.

That Strange PHP Code in Frameworks and CMSs
This article discusses a PHP code snippet that you’ve likely seen at the top of your favorite CMS or framework. You've probably read that you should always include it at the beginning of every PHP file you develop, for security reasons, although without a very clear explanation of why.

Upgrade your PHP projects using these tools & tips
The PHP ecosystem is full of tools that can help you write better code and have a more robust project, use them!

Mastering Architectural Rules in PHP Projects with PHP Arkitect
How to Use PHP Arkitect to Define, Enforce, and Maintain Clean Code Structures.

Tutorials and Talks


Understanding Shortcodes in WordPress: A Beginner’s Guide
If you're just starting with WordPress development, this guide will help you understand what shortcodes are, how they work, and how to create your own!

Best Redis Caching Strategy in Laravel: A Guide to Fast and Efficient Caching
In this guide, we'll look at effective caching strategies in Laravel with Redis. We'll cover how to cache data, manage expiration times, and efficiently clear caches.

Working with multiple image select in Laravel Livewire
In this article, I am going to show you a simple idea to fix the loss of previously selected image/images whenever you want to select more images using livewire with laravel.

Monitoring Cache Operations in Laravel: Events Guide
Want to track what’s happening with your cache? Laravel’s cache events let you monitor every operation! Let’s explore how to leverage these powerful events.

How to implement a global transaction for all routes in laravel
Let’s say you have a Create Order API. The first thing you will do is store the order in the orders table in your database then store the products of that order in a separate table,order_products table for example.

Optimizing PHP Performance for High-Traffic Websites: Best Practices and Techniques
This guide will walk you through the most effective strategies to boost PHP performance for high-traffic websites.

How to Speed Up Bulk Email Sending in PHP with Queues, Workers, and Cron Jobs
In this post, we’ll explore how to handle bulk email sending efficiently using queues, workers, and cron jobs.

Manipulating Strings with PHP: A Comprehensive Guide
PHP offers a rich set of built-in functions and techniques for working with strings, enabling developers to process, transform, and extract information from textual data effectively.

5-Star Guide to Securing Your PHP, MySQL, cPanel & WHM Server Against Malware
Is your server truly protected against malware? With the increasing threats facing online platforms today, a single weak point can compromise your entire site, disrupt services, or open the door to unauthorized access. But where do you start with server security, and how do you prioritize each action?

News and Announcements


Xdebug Update: October 2024
In this monthly update I explain what happened with Xdebug development,

PHPStan 2.0 is Here
PHPStan just released v2.0.0 this week! This massive update is three years in the making, consisting of over 180 items in the release. Creator Ondřej Mirtes had this to say about the release of PHPStan 1.0 over three years ago and now releasing 2.0.

Laravel Nightwatch
Laracon AU has begun and with it comes exciting news from Taylor and the rest of the Laravel team. Announcing Laravel Nightwatch! First-class monitoring designed for Laravel.

PHP 8.4.0 RC4 available for testing
The PHP team is pleased to announce the release of PHP 8.4.0, RC4. This is the fourth release candidate, continuing the PHP 8.4 release cycle, the rough outline of which is specified in the PHP Wiki.

A Week of Symfony #932 (4-10 November 2024)
This week, Symfony 5.4.46, 6.4.14, and 7.1.7, maintenance versions were released. In addition, we released the second beta version of Symfony 7.2 ahead of its final release at the end of November 2024. Lastly, we published eight security advisories to fix some reported security issues in Symfony and Twig.

SymfonyCon Vienna 2024 | December 5 – 6, 2024 Vienna (Austria)
We are thrilled to welcome you at SymfonyCon Vienna 2024! We will meet you at the Austria Center Vienna for the annual international Symfony conference.

Podcasts and Vlogs


The Stack Overflow: One of the world’s biggest web scrapers has some thoughts on data ownership
Or Lenchner, CEO of Bright Data, joins Ben and Ryan for a deep-dive conversation about the evolving landscape of web data.

No Compromises Podcast: How to deal with things outside your control on a dev project
Have you ever struggled working with a third party on one of your developer projects? How do you handle that, keeping it professional and also still able to meet your commitments?

Maintainable Podcast: Justine Gehring: Refactoring Software at Scale with AI
Robby sits down with Justine Gehring, an AI Research Engineer at Moderne, to explore how AI tools are transforming code maintenance and scalability.

Software Engineering Radio: SE Radio 641: Catherine Nelson on Machine Learning in Data Science
Catherine Nelson, author of the new O’Reilly book, Software Engineering for Data Scientists, discusses the collaboration between data scientists and software engineers — an increasingly common pairing on machine learning and AI projects.

Developer Tea: Coaching Yourself: Career Coaching Personas for Everyday Engineers, Part Two - The Overoptimizer
In today's episode we discuss the concept of adopting self-coaching personas, and discuss the second persona, the over-optimizer.

Shoptalk Show: Passkey Usage, Writing Code with a Bot, and What’s Up With Java?
We've got a few leftovers from Halloween to process, what's been happening with Passkeys in late 2024, have you tried to write HTML faster than a bot can suggest it to you, CSS anchor positioning and popover polyfills, scroll driven animation thoughts, CSS nesting, and what's the reason for Java?

WP Builds: 397 – Ben Butler on turning WordPress static with Headless Hostman
In this episode of WP Builds, I’m joined by Ben Butler, who runs the Headless Hostman static WordPress hosting solution. Ben shares insights on their approach to enhancing security and performance for WordPress sites.

PHP Architect: The php[podcast] 2024.11.7
This week on the php podcast, Eric and John discuss PHP Event Sourcing with Laravel Verbs, CascadiaPHP, PHPTek 2025, whats new in the latest magazine release, potentially moving the podcast to another server for hosting, and more…

Frontmatter Podcast: Special Guest Leah Paulos, Founder of Press Shop PR and Book Publicity School
In this episode of the FrontMatter podcast, Len Epp interviews Leah Paulos, founder of Press Shop PR and Book Publicity School.

Mostly Technical: 58: The Multi-Select with Caleb Porzio
Ian is joined by Caleb Porzio and we talk about recent consumer product acquisitions, a dive deep into Flux's multi-select and more advanced components like charts, and we do a Business Dad corner about hiring.

Syntax: Talking EVs: Range Anxiety, Charging, and Tech
Wes Boss and Scott Tolinski have a casual conversation sharing their real-world experiences of owning and driving electric vehicles.

The Changelog: The democratization of spreadsheets
Changelog Merch is now on sale, IronCalc sets out to democratize spreadsheets, Grant Slatton writes about algorithms we develop software by, Mark Rainey gives respect to the ultimate in debugging, Gitpod is leaving Kubernetes & Johannes Kaufmann’s html-to-markdown converts entire websites into Markdown.

Reading and Viewing


The magic behind Laravel's new defer() helper
Laravel has recently been shipped with a new helper called defer() which can be used to defer the execution of a callback until after a successful response has been sent.

Unfair Advantage
Someone asked me: why Tempest? What areas do I expect Tempest to be better in than Laravel or Symfony? What gives me certainty that Laravel or Symfony won't just be able to copy what makes Tempest currently unique? What is Tempest's unfair advantage compared to existing PHP frameworks?

Cross-Process Lock Management in Laravel
Working with locks across different processes? Laravel’s Cache lock system lets you acquire, restore, and release locks seamlessly across requests and jobs! Let’s explore this powerful feature.

PHP Blunders You Can’t Afford to Make - Here’s What to Do Instead!
Working with PHP can feel like tiptoeing through a minefield sometimes. Its versatility is unmatched, but it has quirks that can trip you up in frustrating, time-sucking ways.

Laravel — New defer() Function
The game-changer you didn’t know you needed! Laravel 11 introduced an exited function called defer() that will probably change the way you perform time-consuming actions . Let’s understand what this function does and which problems it solves.

Drupal: Dynamic routes
We know that starting with Drupal 8 we have a good Routing system. But I am faced with one limitation, I cannot define the route with the parameter in the first position (“/{param_1}/some/path”). And in this article I want to share a solution for this case.

Interesting Projects, Tools and Libraries


moon/fakemiddleware
A small Laravel 5 package to disable a middleware in testing environment.

kaystrobach/visualsearch
Package to handle advanced facetted searches.

netinfluence/upload-bundle
Get a multiple file AJAX upload done in minutes.

mitsuru793/symfony-parallel-process
Simple wrapper to enable parallel processing using Symfony Process component.

fond-of-spryker/conditional-availability-cart-connector
Conditional availability cart connector module.

mane-olawale/superban
A Laravel package for for banning suspicious HTTP clients.

calebdw/larastan-livewire
A Larastan / PHPStan extension for Livewire.

elseyyid/laravel-json-mysql-locations-manager
Laravel Json Locations Manager. Import all app language strings from lang folder.

rmt/authorization-bundle
Bundle used for exporting access controls for entities and a custom voter to use with redis for accessing entities.

rakshitbharat/queuefy
This package will take care of Queue from Cron Job it self.

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 14. 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 newsletters

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 © 2024 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

PHPWeekly November 7th 2024

Thursday, November 7, 2024

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

PHPWeekly October 31st 2024

Thursday, October 31, 2024

Curated news all about PHP. Here's the latest edition Is this email not displaying correctly? View it in your browser. PHP Weekly 31st October 2024 Hi everyone, This week's newsletter falls on

PHPWeekly October 24th 2024

Thursday, October 24, 2024

Curated news all about PHP. Here's the latest edition Is this email not displaying correctly? View it in your browser. PHP Weekly 24th October 2024 Hi everyone, It's another stacked issue of

PHPWeekly October 17th 2024

Sunday, October 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 17th October 2024 Hi everyone, News, updates and articles on the

PHPWeekly October 3rd 2024

Thursday, October 3, 2024

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

You Might Also Like

Charted | Global Economic Confidence in 2025, by Country 🌎

Wednesday, December 25, 2024

While emerging markets in Asia have the strongest confidence in the global economy looking ahead, European countries are most pessimistic. View Online | Subscribe | Download Our App FEATURED STORY

Top Tech Deals 🎅 Sony Headphones, iPhone Cases, 4K Projector, and More!

Wednesday, December 25, 2024

The season of giving is upon us. How-To Geek Logo December 25, 2024 Top Tech Deals: Sony Headphones, iPhone Cases, 4K Projector, and More! The season of giving is upon us. Happy Holidays! If you're

Why the Race to AGI is Humanitys Defining Moment

Wednesday, December 25, 2024

Top Tech Content sent at Noon! Boost Your Article on HackerNoon for $159.99! Read this email in your browser How are you, @newsletterest1? 🪐 What's happening in tech today, December 25, 2024? The

Iran's Charming Kitten Deploys BellaCPP: A New C++ Variant of BellaCiao Malware

Wednesday, December 25, 2024

THN Daily Updates Newsletter cover The Data Science Handbook, 2nd Edition ($60.00 Value) FREE for a Limited Time Practical, accessible guide to becoming a data scientist, updated to include the latest

Software Testing Weekly - Issue 251

Wednesday, December 25, 2024

GitHub Copilot is free! 🤖 View on the Web Archives ISSUE 251 December 25th 2024 COMMENT Welcome to the 251st issue! In case you missed it — GitHub Copilot is free! The free version works with Visual

Daily Coding Problem: Problem #1647 [Medium]

Tuesday, December 24, 2024

Daily Coding Problem Good morning! Here's your coding interview problem for today. This problem was asked by Square. In front of you is a row of N coins, with values v 1 , v 1 , ..., v n . You are

Sentiment Analysis, Topological Sort, Web Security, and More

Tuesday, December 24, 2024

Exploring Modern Sentiment Analysis Approaches in Python #661 – DECEMBER 24, 2024 VIEW IN BROWSER The PyCoder's Weekly Logo Exploring Modern Sentiment Analysis Approaches in Python What are the

🤫 Do Not Disturb Mode Is My Secret to Sanity — 8 Gadgets I Want To See Nintendo Make

Tuesday, December 24, 2024

Also: The Best Christmas Movies to Watch on Netflix, and More! How-To Geek Logo December 24, 2024 Did You Know Their association with the Christmas season might make you think poinsettias hail from a

😱 AzureEdge.net DNS Retiring Jan. 2025, 🚀 Microsoft Phi-4 AI Outperforms, 🔒 Microsoft Secure Future Initiative

Tuesday, December 24, 2024

Blog | Advertise | View Online Your trusted source for Cloud, AI and DevOps guidance with industry expert Chris Pietschmann! Phi-4: Microsoft's New Small Language Model Outperforms Giants in AI

Mapped | The Top Health Insurance Companies by State 🏥

Tuesday, December 24, 2024

In 13 US states, a single company dominates the health insurance market, holding at least half of the total market share. View Online | Subscribe | Download Our App Presented by: Global X ETFs Power