PHP Weekly - PHPWeekly March 9th 2023

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

Hi everyone,

This week's newsletter covers the various stages in a coder's process. In the podcast section we have the latest episode from No Compromises discussing having an open mind with other languages and tool. How to Code Well, poses the question: What to do when you've finished all your tickets and have time to spare? For those executing their tests, we have a tutorial on setting XDebug's coverage mode and in the Reading section we have a blog about being mindful of the next person reading your code with a list of tips for better code commenting. If you want to boost PHP performance, Generators might provide the answer when handling large data sets. Finally we have an article from Freek Van der Herten about strategies for making Laravel packages customisable. We have all that and more for your weekly fix of PHP news and updates, so we do hope you enjoy this one.   

We would like to thank those who sent over articles to us. 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

Do follow us on our social media channels on Twitter and Facebook

All the best,

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.


Strategies For Making Laravel Packages Customizable
While attending Laracon India, many people approached me to ask how we handle the maintenance of all our Spatie packages. In this blog post, I'd like to cover some of our best tips to make a Laravel package easy…

Common Function Comparisons in PHP
How do you decide between two functions that, at a glance, seem to do the same thing? Let's pick apart the differences to try and make it easier.

Cross Platform Mobile App Development 2023: The Ultimate Guide
Let’s explore the best tools for creating multi-platform solutions and the advantages and drawbacks of cross platform app development.

Correct Way Of Adding Filter To Laravel 10
If you are working with Laravel, you probably know how powerful and expressive its Eloquent ORM is.

10 PHP Array Functions And How To Use Them
Learning about these functions is essential for any PHP developer who works with arrays regularly, as they can simplify complex array operations and save time when dealing with large datasets.

Single Responsibility Principle(SRP) example using PHP
Do you want to know why it’s good for a class to have one and only one reason to change? if yes this short and well-articulated article will use a real-world example to explain one of the object-oriented design principles by Robert C. Martin.

Feature Flag and Strategy pattern with the Symfony Framework
In this article, we will use the magic of Symfony to make a Feature Flag extendable as you want.

Tutorials and Talks

Sharing PHPCS Rules Across Projects and Teams
At the end of this tutorial, you'll know how to create an organization ruleset you can use to quickly lint all your PHP projects.

Returning Native Types From The Laravel Request Class
A few days ago, while working on a project where I wanted to use strict types and also have Larastan on the highest level, I needed to pass parameters from within the Laravel Request class into methods that expect a specific type...

Upload Files On Laravel 10
Uploading files is one common feature that most of the applications use, and yet is one of the things that I see many people struggling with.

Token-Based Authentication in Laravel 9 Using Laravel Sanctum
Authentication is a fundamental aspect of building any web application, as it ensures that only authorized users can access sensitive data and perform actions within the application.

Test Coverage: Did You set Xdebug's Coverage Mode?
If you are using PestPHP and during the execution of your tests with the coverage option, you are receiving the message.

Mirroring Composer dependencies with Packeton
Mirroring dependencies can be useful for several scenarios.

How To Deploy A Laravel Project To DigitalOcean Droplet Using Github Action
In this article, I will walk you through the step-by-step process of how you can deploy your Laravel application on the digital-ocean droplet.

News and Announcements

PhpStorm 2023.1 Beta: Debugger With Data Flow Analysis
In this build, you can find additions to the PHP debugger that allow you to see conditional values ahead of time and dim out runtime-unreachable code.

Announcing the First Release Candidate of HydePHP: A Laravel-Based Static Site Generator
We're excited to announce the first release candidate of HydePHP, a Laravel-based static site generator! HydePHP is a powerful and flexible tool that allows you to build static websites with ease, using the familiar syntax and functionality of the Laravel framework.

A Week of Symfony #844 (27 February - 5 March 2023)
This week, Symfony 5.4.21 and 6.2.7 maintenance versions were released. Meanwhile, the upcoming Symfony 6.3 version added support for managing command exit code while handling signals. Lastly, the SymfonyOnline June 2023 conference announced that you can submit your papers until March 6.

CakeFest: Call For Speakers Is Open
Don't miss your chance to speak at the one and only CakePHP conference.

Laravel Live UK 2023
Laravel Live UK 2023, the official Laravel conference for the UK, is coming to London for a two-day conference on June 22nd and 23rd 2023. Join hundreds of Laravel and PHP enthusiasts for inspirational talks, engaging networking, and amazing learning opportunities.

php[tek] 2023 - Chicago, IL
Join us for the 15th Annual Web Developer Conference, php[tek] 2023, May 16-18 2023.

Podcasts and Vlogs

How To Code Well: 192 - What To Do When You've Completed Your Work
What do you do when you have finished all your tickets and you have two days remaining in the sprint?

PHP Ugly: 325: Air Cutz
This week on the podcast, Eric, John, and Thomas talk about Lastpass, 2 Factor, Release Manager for PHP 8.3, PHP Tek, and more...

The Stack Overflow: From Writing Code To Teaching Code (Ep. 545)
Writing code that runs without errors—and without all the bugs that only show up when the program runs—is hard enough. But teaching others to write code and understand the underlying concepts takes a deeper understanding. Now imagine doing that for 37 courses.

No Compromises Podcast: Keeping An Open Mind With Other Languages And Tools
Before you vent some frustration on another tool or programming community, take a deep breath and think about why you're irritated? We talk about our own reactions to ...

Maintainable Podcast: Henrik Warne - There is No Software Maintenance
Robby has a chat with Henrik Warne (he/him/his), the Senior Software Engineer at Talos, about the importance of code having structure early on, the importance of engineers being able to read, run, and test code when they join a project.

Software Engineering Radio: Episode 553: Luca Casonato on Deno
Luca Casonato joins SE Radio’s Jeremy Jung for a conversation about Deno and Deno Deploy.

Developer Tea: What Defines a Senior Developer? - Difficult Does Not Equate To Valuable
The traits that define a senior engineer are not catalogued perfectly in one spot. But, nevertheless, we'll try to cover some of the most important traits and habits of a senior engineer.

Shoptalk Show: 555: React Documentary, Front of the Front End, Fast Fallacy, and Best Practices
Reacting to the React.js documentary, is there still jobs for front of the front end anymore? The fast fallacy in frameworks, best practices, dealing with too much or too little isolation, and AI test generation.

WP Builds: 316 – Kevin Geary talks about Automatic CSS
Some of us love working with CSS. It’s fun, pretty easy to learn, and gets the job done. Others… not so much. It’s boring, hard to master, and you end up doing things incorrectly all the time!

Reading and Viewing

Preemptive Pluralization is (Probably) Not Evil
Before you write any code — ask if you could ever possibly want multiple kinds of the thing you are coding. If yes, just do it. Now, not later.

Token-Based Authentication in Laravel 9 Using Laravel Sanctum
In this article, we will explore the Laravel Sanctum package and how it can be used to implement a simple token-based authentication system.

Creating Custom Web Applications with Symfony 6 and Php 8: A Step-by-Step Guide
In this step-by-step guide, we’ll show you how to create a custom web application using Symfony.

Simple Tips for Better Code Commenting
Please, think of the next person who has to read your code.

Boost Your PHP Performance with Generators
With generators, you can generate a sequence of values on-the-fly using the yield keyword.

Unlocking the Power of PHP with the Abstract Syntax Tree (AST)
The PHP Abstract Syntax Tree (AST) is a data structure that represents the syntax of a PHP script.

Interesting Projects, Tools and Libraries

A mirco & powerful router library for PHP.

PSR-7 middleware and helpers for working with base URL.

A Laravel wrapper of jumbojett's OpenID Connect Client.

Magento 2 Share Cart GraphQL Extension.

Edit rich text content in Craft CMS using CKEditor.

A Puppeteer bridge for PHP, supporting the entire API.

The Laravel Bridge use on Slim framework.

PHP implementation of a Fine granularity Diff engine.

A laravel package for pin confirmation and validation before processing requests to a specified route.

Handle intermittent failures caused by unreliable third parties.


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 help us by clicking to our sponsor

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 14. Free trial.

Copyright © 2023 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


Key phrases

Older messages

PHPWeekly March 2nd 2023

Thursday, March 2, 2023

Curated news all about PHP. Here's the latest edition Is this email not displaying correctly? View it in your browser. PHP Weekly 2nd March 2023 Hi everyone, For our first newsletter for the month

PHPWeekly February 9th 2023

Thursday, February 9, 2023

Curated news all about PHP. Here's the latest edition Is this email not displaying correctly? View it in your browser. PHP Weekly 9th February 2023 Hi everyone, We're a week away from the

PHPWeekly February 2nd 2023

Thursday, February 2, 2023

Curated news all about PHP. Here's the latest edition Is this email not displaying correctly? View it in your browser. PHP Weekly 2nd February 2023 Hi everyone, It's the first newsletter of the

PHPWeekly January 26th 2023

Thursday, January 26, 2023

Curated news all about PHP. Here's the latest edition Is this email not displaying correctly? View it in your browser. PHP Weekly 26th January 2023 Hi everyone, This week we have some firsts for

PHPWeekly January 12th 2023

Friday, January 20, 2023

Curated news all about PHP. Here's the latest edition Is this email not displaying correctly? View it in your browser. PHP Weekly 12th January 2023 Hi everyone, This week we have a newsletter

DotLeap 117 - Polkadot x Aventus x Beatport

Saturday, March 25, 2023

New runtime release, Bitcoin DeFi hub, Public Pressure x KILT, and more. ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌

MNW #030: How To Publish MediatR Notifications In Parallel

Saturday, March 25, 2023

Find out how one simple change can give you a 10x performance boost ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ View In ​​The Browser MNW #

We updated our RSA SSH host key — and Transformer architecture optimized for Apple Silicon

Friday, March 24, 2023

Issue #1081 — Top 20 stories of March 25, 2023 Issue #1081 — March 25, 2023 You receive this email because you are subscribed to Hacker News Digest. You can open it in the browser if you prefer. 1 We

Binance reopens after bug forces platform to suspend spot trading, deposits and withdrawals

Friday, March 24, 2023

TechCrunch Newsletter TechCrunch logo The Daily Crunch logo By Christine Hall and Haje Jan Kamps Friday, March 24, 2023 Friday Crunch is here! Friday Crunch is here! We are ready to go sit by the

Charted | Which Countries Hold the Most U.S. Debt? 💸

Friday, March 24, 2023

Foreign investors hold $7.3 trillion of the national US debt. These holdings declined 6% in 2022 amid a strong US dollar and rising rates. View Online | Subscribe FEATURED STORY Which Countries Hold

SWLW #539: Navigating the unpredictability of everything, The Ambiguous Zone, and more.

Friday, March 24, 2023

Weekly articles & videos about people, culture and leadership: everything you need to design the org that makes the product. A weekly newsletter by Oren Ellenbogen with the best content I found

Spring is here and so are our updates

Friday, March 24, 2023

New season, new features New season, new features: Spring is here and so are our updates! Read the Full Product Update Here 💚 Hey there, Hackers 👋 Last couple of months have been filled with new

Two new tips: DevTools and VS Code

Friday, March 24, 2023

Some handy tips to use in with DevTools and VS Code Two fresh video tips Hey everyone! Here are two new tips for you - you can watch the videos or read the text posts. VS Code: Automatically convert

😓 Challenges of product leadership

Friday, March 24, 2023

Challenges of Being a Product Leader When you get that promotion into product leadership there's a lot of excitement about the opportunity to have a bigger impact in your company and your

Daily Coding Problem: Problem #1054 [Medium]

Friday, March 24, 2023

Daily Coding Problem Good morning! Here's your coding interview problem for today. This problem was asked by Microsoft. Implement the singleton pattern with a twist. First, instead of storing one