Subscribe! Enter your email address below:

NO SPAM: We absolutely hate spam. We will not share, rent, or give away your email address to anyone.You can unsubscribe at any time. Easily!

May 9, 2024

Hi everyone,

Stacked and packed is this week's latest issue of PHPWeekly. After months of no updates we finally have the latest Xdebug update from Derick Rethans in our News section. We also have a statement from the PHP team regarding the glibc/iconv vulnerability issue, so do check them out. In our Articles section we have a video from Brent on a look at the most impactful features from PHP from 2014 up to the present. We also have an article on the 10 PHP functions to avoid for better code quality, as well as how to optimise your Eloquent queries using AI. Finally in Podcasts we have a new episode from the team at North Meets South about onboarding junior developers right out of university, while over at the Changelog we learn why they say your web framework doesn't matter. We have all that and more, so we do hope you enjoy this week's newsletter. If you're a student or developer on the move and want the latest PHP news and updates in one place, then subscribe to PHPWeekly.

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].

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 scriptsGet 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.


A deeper dive into optimal PHP-FPM settings
In most cases, PHP-FPM settings aren't something an average developer would be in a position to examine more closely. That's ok; not everyone wants or has to spend time dealing with that kind of adjustment on the server.

PHP from 2014 to 2024
PHP has come a long way, let's highlight some of the most impactful features.

Optimize Your Eloquent Queries with AI
The Laravel Slower package is designed for Laravel developers who want to enhance the performance of their applications. This package identifies slow queries and suggests optimizations such as indexing and other improvements.

Simplifying Data Transfer in PHP: The Power of DTOs
Think of DTOs as digital couriers that safely deliver information from one place to another within your app. Let’s dive into what DTOs are and why they’re so handy for PHP developers.

Mastering Standalone Jobs in Laravel 11: Organize Large Codebases with Ease
With the release of Laravel 11, one notable addition is the support for standalone jobs. This allows developers to define job classes outside app/Jobs directory.

10 PHP Functions to Avoid for Better Code Quality
We’ll learn all about PHP functions together, so you can feel confident and skilled in your coding journey.

Hexagonal Architechure (Ports and Adapters) with PHP
Do I not need to think about architecture for simple projects? In my opinion, the answer is: You should always think about architecture because your application may grow, and likely will grow, requiring maintenance.


Web Scraping Specialists Wanted
If you're a skilled Web Scraping Specialist with a knack for creative problem-solving, join our remote team to gather data from e-commerce websites and enhance our data-driven solutions. Embrace challenging projects, overcome blocking technologies, and collaborate with a diverse global team in a flexible, fast-paced environment.

Junior PHP/Python Developer - Remote
We're looking for Full-Stack Developers to join our dynamic remote international team. As a developer, you'll work on a range of projects, including Business Intelligence systems, Legal SaaS, and cutting-edge online projects. You'll be responsible for improving legacy systems, monitoring technical systems, and delivering high-quality solutions. You should be proficient in front-end and back-end development, have strong problem-solving skills, and experience with Python, PHP, Postgres, MongoDB, and Linux servers. If you're a self-motivated team player, apply now.

Technical Support Manager - Remote
Are you interested in programming but don't have the experience yet to be a skilled developer? Join our team as a Technical Support Manager and be part of our SaaS company's success. You'll work closely with our customers to provide timely solutions, troubleshoot technical issues, and contribute to feature development. Using your skills, you'll quickly identify and resolve issues, while also working closely with our team to deliver an exceptional customer experience. You don't need to have programming experience to succeed in this role, but you should have a passion for technology and a desire to learn. You will help us enhance our products and deliver an outstanding customer experience.

Tutorials and Talks

How to Refactor a Method With Optional Params
While refactoring and optimising legacy code I’ve ran into a method signature (optional parameters) inconsistency which caused performance issues as part of the expensive operation was being done without developer intention.

Laravel Image Management with Cloudinary: A Step-by-Step Guide to Uploading, Updating, and Deleting Images
In this tutorial, we'll walk through the process of building a form in Laravel 11 to add products to your application, complete with image upload functionality.

2816. Double a Number Represented as a Linked List
You are given the head of a non-empty linked list representing a non-negative integer without leading zeroes.

Database referential integrity with Doctrine
Here could be extensive AI-generated introduction about Database referential integrity, but not today. Suppose you know what is it. The subject of this article is how you can deal with it using Doctrine.

Using Symfony Messenger to Manage Message Queues in Symfony
Symfony, the famous PHP framework, offers a wide range of powerful tools and components for developers of all levels. One of these tools is Symfony Messenger, a bundle that greatly simplifies message handling within Symfony applications.

Mastering Enum Tricks in PHP
Let’s start with the basics. This is a special data type that allows you to define a set of named constants. Each constant represents a possible value of a variable, which makes your code more readable and less prone to errors.

POS (Point of Sale) System in PHP with Free Source Code and UML Diagrams
This Point of Sale System (POS) using PHP with Source Code is designed to help in the management of your business’ inventory.

How to Scan Files for Malicious Code in PHP
If we aren’t extra careful, malicious code stashed in an innocuous file can bypass traditional antivirus detection policies more easily than we might think.

News and Announcements

Xdebug Update: May 2024
I have not written an update like this for a while. I am sorry. In the last months I have not spent a lot of time on Xdebug due to a set of other commitments. Since my last update in November a few things have happened though.

NativePHP Windows Builds are Here
Windows support for NativePHP was announced, which means that you can now build applications for the Windows platform. Windows builds are working, and with that, all platforms will get new versions of PHP to work with.

Statement on glibc/iconv Vulnerability
This specific buffer overflow in glibc is exploitable through PHP, which exposes the iconv functionality of glibc to do character set conversions via the iconv extension. Although the bug is exploitable in the context of the PHP Engine, the bug is not in PHP. It is also not directly exploitable remotely.

Symfony 7.1.0-BETA1 released
Symfony 7.1.0-BETA1 has just been released. Here is the list of the most important changes since 7.0.

A Week of Symfony #905 (29 April - 5 May 2024)
This week, Symfony 5.4.39, 6.4.7 and 7.0.7 maintenance versions were released. In addition, Symfony published the first beta of Symfony 7.1 so you can test it in your own applications before the final release at the end of May 2024.

Podcasts and Vlogs

PHP Ugly: 381: Tek and Friends
This week on the podcast, Eric and John talk about php[tek] 2024 wrap up, glibc/iconv Vulnerability impact on PHP, Property Hooks, release cycle update, and more...

The Stack Overflow: Reshaping the future of API platforms
Marco Palladino, CTO and cofounder of cloud-native API gateway Kong, talks with Ryan about the complexities of multi-cloud Kubernetes architecture, how AI has the potential to improve infrastructure management, and how Kong’s large action model will reshape the future of API platforms.

North Meets South Podcast: The one about onboarding junior developers
Jake and Michael discuss bowling, onboarding new junior developers right out of college, and the mindset required to be able to teach people the very basics of programming (and reading).

Maintainable Podcast: Staffan Nöteberg - On the Power of Monotasking in Software Development
In this insightful episode, we dive deep into the essence of software maintainability with Agile Coach and author Staffan Nöteberg. Unpacking the layers of what it takes for software to be considered well-maintained.

Software Engineering Radio: SE Radio 614: Wouter Groeneveld on Creative Problem Solving for Software Development
Wouter Groeneveld, author of The Creative Programmer and PhD researcher at KU Leuven, discusses his research related to programming education with host Jeremy Jung.

Developer Tea: Talking To Yourself for Better One-On-Ones
In today's episode we discuss a preparation step for your next one-on-one. Don't just wing it - do your homework... and talk to yourself a little bit.

Shoptalk Show: 614: CSS Grid Level 3 aka Masonry with Adam Argyle
Adam Argyle stops by to chat about the conversation that's happening around CSS Grid / Masonry. What do we want? What might Apple's response to Google be? And nitpicking the spec just for fun.

WP Builds: 371 – No Script Show, Episode 9 – Does Baseline solve our browser support problems?
Back in the day, all the browsers were enemies. They all went off and decided how they would do things with no regard for what their ‘rivals’ were doing.

Mostly Technical: 33: The Secret
Ian & Aaron discuss cheese boards, Aaron's lunch adventure, high performance database consulting, and the Drake vs. Kendrick Lamar beef with special guest Dave Hicking aka Producer Dave.

Software Unscripted: Season 1 Episode 90 Native UIs without Electron - with Nathan Sobo
Richard talks with Nathan Sobo, founder of Zed Industries (which creates the high-performance Zed code editor) about his time as an early developer on the Atom code editor, including how that project led to Electron.

Syntax: JS Promises Fundamentals - Part 1
A 3-part series on JavaScript promises. Part 1 covers the basics of what promises are, creating promises, and waiting on promises to resolve.

The Changelog: Why your framework doesn't matter
Bahaa Zidan says your web framework doesn’t matter, DHH writes about magic machines, Dylan Huang reviews thousands of opinions on HTMX, Tim Ottinger says programming is thinking & Tim Spann says small language models (SLM) for the win.

Reading and Viewing

Working with DynamoDB in Laravel
Learn about how to use DynamoDB in Laravel for caching and storing Laravel models.

Exploring Map, Reduce, and Filter Functions in PHP
The map, reduce, and filter functions are fundamental tools for efficient data manipulation. These functions allow developers to write more readable, maintainable, and concise code. Let’s delve deeper into each of these functions and explore how they can optimize data processing tasks.

Advanced Database Query Monitoring in Laravel
In our previous post, we discussed a straightforward method to log database queries during development in Laravel. While effective, sometimes you need more advanced tools for comprehensive query monitoring. In this post, we'll explore some advanced options to take your database query monitoring to the next level.

A Deep Dive into the Performance Features of Laravel Herd and ServBay: The Ultimate PHP Development Environment Showdown
Laravel Herd and the increasingly popular ServBay stand out as exceptional tools for web developers, offering robust PHP development environment with a keen focus on streamlining the development process and bolstering efficiency. But what sets their performance features apart?

Property Hooks RFC for PHP 8.4
Property Hooks RFC passed the vote and will likely get added to PHP 8.4. With an overwhelming 34 to 1 “yes” — which is clearly above the required 2/3 majority — Property Hooks will likely be part of the upcoming version for this winter.

Level Up Your Laravel App: Unleashing the Power of Queues
Users expect applications to react instantaneously, and sluggish performance can lead to frustration and cart abandonment. This is where Laravel queues come in — a potent tool for keeping your app speedy and users happy.

Interesting Projects, Tools and Libraries

A PHP library to access the audio service Auphonic through its API.

Validate http requests, input-data and method arguments at runtime using self-documenting code.

FPDI is a collection of PHP classes facilitating developers to read pages from existing PDF documents and use them as templates in FPDF.

Keep track of developer logs. Provides automatic email notification about important errors.

Add popup notification messages to a Silverstripe site.

The official PHP SDK Wrapper for the Eversign API.

This package lets you run Smarty3 on Laravel5 elegantly.

Advanced jQuery File Upload & Manager.

RESTful PHP API server for PowerDNS.

A simple library for generating pagination, updated fork.

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.

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 | update subscription preferences 

Subscribe! Enter your email address below:

NO SPAM: We absolutely hate spam. We will not share, rent, or give away your email address to anyone.You can unsubscribe at any time. Easily!

Talk to us!

If you have some news, want to share a link with us or chat with us feel free to email us.

And we also have an RSS feed that you can use.

Like us on FacebookFollow us on Twitter

Copyright ©