sticker

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!

January 23, 2025

Hi everyone,

If you want to get the latest news and updates on the PHP community, then you've come to the right place. This week we have articles on PHP memory optimisation, a breakdown on the difference between seeders and factories, and mastering conditional logic in Laravel. We have new bug fix releases for PHP 8.4.3 & PHP 8.3.16, and the latest update for CakePhp. Finally in our Reading section we have articles on Base64 encoding in PHP, finding and cleaning malicious trojan files, and PHP security best practices.

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:

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

PHP Memory Optimization Tips
Optimizing memory usage in PHP is essential for building efficient and scalable applications. Here are some key tips for optimizing memory usage in PHP.

Converting Fluent Values to Arrays in Laravel
Need to consistently handle values as arrays in your Fluent instances? Laravel’s new array() method provides a clean way to convert values without manual casting.

Seeder vs Factory: Populating Test Data in Laravel
This article breaks down the differences between seeders and factories, shares real-world examples of when to use each, and offers tips to help you decide the best approach for your project.

AI Image Workflows with PHP and Cloudinary – From Upload to Delivery
Do you work with images in your PHP apps? Check out this must-read article on streamlining and scaling your image workflow with AI. The article walks you through a complete image workflow—from client-side upload and user-specified metadata to auto-generating alt text, dynamic transformations, and optimized delivery.

Mastering Conditional Logic in Laravel with `when()` and `unless()` Methods: Real-Life Examples
In this article, we’ll explore how to use these methods in real-life scenarios, demonstrating how they can streamline complex conditional logic in Laravel applications.

Tutorials and Talks

Simplified Stream Response Handling in Laravel
Working with HTTP streams in Laravel has traditionally involved multiple steps and conversions, especially when dealing with file downloads or transfers. Laravel's new resource() method streamlines this process, reducing complex stream handling to a single method call.

Interactive Console Commands in Laravel
When building command-line tools in Laravel, one of the common challenges is handling missing or incorrect user input gracefully. 

Permanent Record Deletion with Laravel's forceDestroy
Laravel's soft deletes feature helps maintain data integrity by keeping deleted records in your database. However, there are times when you need to permanently remove these records. 

How to Fix Weak TLS/SSL Configuration in Laravel
In this blog, we’ll explain what weak TLS/SSL configurations are, their risks, and how you can fix them in your Laravel project. 

How to generate fake data using factory tinker in laravel 11 Example
In this article, I will show you How to generate fake data using factory tinker in laravel 11 application. 

How to Resolve the 'Permission Denied' Error in PHP File Handling
When working with file handling in PHP, encountering the dreaded Permission Denied error can be frustrating, especially when dealing with file creation or writing operations.

How To Create Dynamic Apexcharts Using Larapex Charts Package in Laravel 11
In this tutorial, I will show you how to create dynamic apexcharts using larapex charts package in laravel 11 application.

Understanding and Applying Real-World OOP Principles in Laravel Framework : A Practical Guide
OOP Examples with like “book,” “animal,” or “car” are often oversimplified and can feel disconnected from real-world backend development. To bridge this gap, let’s focus on practical, real-world OOP principles in the context of a Laravel framework.

News and Announcements

CakePHP 5.1.5 RELEASED
Improvements: Streamline composer dependencies. lib-ICU is already an implicit dependency through intl. Minor optimizations, by removing redundant assignments, empty() and isset()checks + more.

Support for .env Files: Now Built into PhpStorm
.env files are widely used to configure applications by storing configuration settings, environment variables, and sensitive information. This eliminates the need to hardcode these values into the application code.

A Fluent Email Validation Rule Added in Laravel 11.38
This week, the Laravel team released v11.38, which includes a fluent Email validation rule, the ability to retrieve a form request or fluent value as an array, a finally() pipeline method, and more.

Television is a Multi-purpose Fuzy Finder TUI
Television is a blazing-fast general-purpose fuzzy finder TUI. It is highly configurable and allows you to quickly search through all kinds of data sources, such as files, Git history, environment variables, etc.

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

A Week of Symfony #942 (13-19 January 2025)
This week, Symfony celebrated the SymfonyOnline January 2025 conference. In addition, it announced the new Symfony UX Core Team. Lastly, the upcoming Symfony 7.3 version simplified the configuration of the web debug toolbar replacement on Ajax requests and introduced a JsonEncodable attribute.

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.

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

The Stack Overflow: The developer skill you might be neglecting 
Ben and Ryan talk with Geoffrey (Jef) Huck, a software developer turned public speaking coach, about the importance of soft skills in the tech industry—in particular, speaking and communication skills. 

No Compromises Podcast: Examining test layering in multi-tenant requests
Joel and Aaron debate how to structure multi-tenant API requests and tests. They explore the interplay between authentication, tenant headers, and different levels of validation. In the end, they reminisce about old infomercial freebies and wonder if they still exist.

North Meets South Podcast: Old packages, Laravel upgrades, and breaking changes 
Jake and Michael recap their Christmas and New Year break, talk through lingering packages, Laravel 11 upgrades, and breaking changes in PHPUnit.

Maintainable Podcast: Carola Lilienthal: Tackling Technical Debt with Patterns and Domain Knowledge
In this episode of Maintainable, Robby sits down with Carola Lilienthal, Software Architect and Managing Director at WPS. 

Software Engineering Radio: SE Radio 651: Paul Frazee on Bluesky and the AT Protocol
Paul Frazee, CTO of Bluesky, speaks with SE Radio’s Jeremy Jung about the Authenticated Transfer Protocol (ATProto) used by the Bluesky decentralized social network. 

Shoptalk Show: 648: Speculating on Funding Open Source
Hard hitting investigative journalism episode warning: Chris and Dave speculate on the ways a project like void(0) could make money.

WP Builds: 405 – New Show “The Nice Show” with Mark Westguard. Episode 1. 
In this episode of the WP Builds podcast, “The ‘Nice Show’ with Mark Westguard – Ep 1”, I’m joined by… erm… Mark Westguard to introduce a new, lighthearted show focused on positivity, and silliness. 

PHP Architect: PHP Podcast 2025.01.16 
This week on the PHP Podcast, Eric and John talk about PHP Tek 2025, Community Corner Podcast, Convince Your Boss to attend PHP Tek, and more.

Mostly Technical: 66: Zombification
Ian and Aaron discuss the importance of seeing your friends in person, why Blade needs to be as fast as possible, weapons grade social media, conferences, and a lot more.

Syntax: Node + TypeScript in 2025
Discussion on running TypeScript code in Node.js without needing compilation, now that Node supports type stripping. Covers limitations, tools like TSX and Deno, and the much smoother developer experience working with TypeScript.

The Changelog: Make computing personal again
Benj Edwards wants to put the “personal” back in “personal computer”, the answer.ai folks took Devin for a month-long spin, Asaf Zamir explains why senior engineers can remain ICs and still have a fulfilling career

Reading and Viewing

Demystifying WordPress setup methods for web devs
Explore three popular WordPress setup methods: Vanilla WordPress, Composer, and the Bedrock framework. Learn the pros and cons of each to find the best fit for your projects.

Supervisor Guide for PHP Developers
This post will explain how to set up Supervisor, use it for PHP applications, and configure it with all available options for maximum efficiency.

Php Base64 encode/decode – best practices and use cases
Base64 encoding in PHP is a simple yet powerful tool for transmitting binary data as text. Here's what you need to know.

Enhance Your Laravel Applications with Automated Browser Testing!
Whether you’re a newcomer to Laravel or an experienced developer, understanding and utilizing Dusk can significantly enhance your testing workflow.

Finding and Cleaning OJS (Open Journal System) Malicious Trojan Files
I encountered some small attacks on my ojs web site (version 3.3.0–20) that is just about changing some files adding some other web site links.

PHP Security Best Practices
With the advent of digitization, the scope of security breaches seems to have increased to a great extent. So even if you are willing to survive in this digital era, you just don’t have to develop a website based on PHP but also ensure that security is pretty much paramount. 

Interesting Projects, Tools and Libraries

sxule/composer-api
Simple interface for running Composer commands via PHP.

zawntech/wp-admin-options
A library of custom WordPress admin option classes.

k8s/api
Kubernetes API models and services generated from the OpenAPI spec.

juanmiguelbesada/user-bundle
Provides user management for your Symfony project.

tinypixel/tiny-highlighter
Inline highlighting plugin for WordPress 5 block editor.

icanboogie/prototype
Implements the Prototype design pattern; getters/setters.

walkboy/yii2-basic-access
Base auth behavior for yii2.

incraigulous/objection
Wrap nested arrays in DTO objects and collections.

chaplean/monolog-extra-bundle
Provides support for extra fields in request header.

njhyuk/laravel-encryptable
Laravel eloquent automatic encryption and decryption using mysql AES function.

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:


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.

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 © PHPWeekly.com