PHP Weekly - January 2nd 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 year. We hope you all had the opportunity to get some time off to recharge yourself. Thia week we've gathered some of the best articles from last year. We hope you enjoy reading them while we're all slowly getting back to our usual grind. May this year be better and pleasant for all of you out there. We're all grateful for your support and glad that you're here to stay. 

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


PHP 8.4: Breaking Down the Big Updates (With Examples)
In this blog, we’ll explore PHP 8.4’s most exciting features, provide examples to help you understand how to use them, and highlight performance improvements. 

Comprehensive Methods to Display Arrays in PHP and Laravel
Here are several methods for displaying an array in PHP and Laravel, along with their examples and usage. Each method serves different purposes based on your requirements.

10 PHP Code Snippets Every Developer Should Keep Handy
This article presents 10 essential PHP code snippets that every developer should keep in their toolkit.

19 Essential Laravel Performance Optimization Tips
In this article, we will explore 19 tips that can significantly enhance the performance of your Laravel application. Below are detailed explanations of each tip.

Value Objects in PHP can protect you from bad data
One of the things that we need to care about when working with object oriented programming is that the data we are working with is valid at every moment. 

Tutorials and Talks


Converting Laravel Models to JSON for API Responses
Laravel provides several methods for transforming Eloquent models into JSON, with toJson() being one of the most straightforward approaches. 

Streamlining Route Parameters in Laravel Using URL Defaults
Managing URL parameters in Laravel applications, particularly those with multiple languages or complex routing patterns, can become repetitive. Laravel provides an elegant solution through URL defaults, allowing you to set application-wide default values for URL parameters. Let's explore this powerful feature's implementation.

Symfony Through a Fan’s Eyes: A Simple Guide
So, let’s explain Symfony clearly and highlight its strengths without overwhelming them or making it seem complicated.

Mastering Laravel Configuration: An In-Depth Guide
In this post, we’ll explore Laravel’s most important configuration files and how to effectively manage them using the .env file to optimize your application’s performance. 

Pagination in Laravel
In this post, we’ll dive into the various methods Laravel offers for paginating data and how you can leverage them in your applications.

Get Xdebug Working With Docker and PHP 8.4 in One Minute
Xdebug has a history of having a steep setup learning curve. I am here to show you that setting up Xdebug doesn't have to be painful. In fact, I am confident that you can start using Xdebug with Docker in about a minute.

Mastering Laravel: Form Handling and Validation
This article explores how to handle forms, validate user input, and work with requests and responses in Laravel.

News and Announcements


Introducing the new Twig Playground
I'm very excited to announce the launch of Twig Playground, a new tool that allows you to test and experiment with Twig templates in a sandbox environment. It is entirely web-based, with no backend.

Ghostty Is a Fast, Feature-Rich, Cross-Platform Terminal
Ghostty is a fast, feature-rich, cross-platform terminal emulator that uses platform-native UI and GPU acceleration. 

Happy Holidays from The PHP Foundation!
As 2024 comes to a close, we at the PHP Foundation want to take a moment to thank everyone who has supported us this year. It’s been an incredible journey, and we couldn’t have done it without the amazing PHP community and our generous sponsors.

A Week of Symfony #939 (23-29 December 2024)
This week, we launched the new Twig playground, a tool that lets you test and experiment with Twig features in a safe, sandboxed environment. While Symfony development activity was lighter than usual due to the year-end holidays, we introduced a new is_granted_for_user() function to check authorization for a given user directly in Twig templates.

phpday 2025 - Call For Papers
The call for papers is open until January 11, 2025 23:59. Propose a talk! Take the chance to share your experience, test yourself on topics you know well and learn something new while preparing your presentation. You will also make yourself known in the community.

Podcasts and Vlogs


Laravel News Podcast: More backed enums, explaining MySQL, and session deep-dives
Jake and Michael discuss all the latest Laravel releases, tutorials, and happenings in the community.

The Stack Overflow: Even high-quality code can lead to tech debt
Ben and Eran talk about the intersection of software development and AI, the evolution of program synthesis, and Eran’s path from IBM research to startup CTO. 

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?

North Meets South Podcast: Fake drivers with Jason Beggs 
In this episode, Jake and Michael are joined by Jason Beggs from the Laravel team to discuss the approaches they're taking to fake interaction with third-party services during development of their upcoming product, Laravel Cloud.

Software Engineering Radio: SE Radio 643: Ganesh Datta on Production Readiness
Ganesh Datta, co-founder of Cortex.io, joins host Robert Blumen for a conversation about production readiness. 

Developer Tea: Prioritization is the Ultimate Skill
Learn to prioritize, and everything else falls into place. This is clarity through perspective and purpose.

Shoptalk Show: Navigating the Pros and Cons of Web Components
Riffing off a Dave Rupert blog post, Chris and Dave talk through the pros and cons of web components, when to use them, when it's a bad idea to use them, what would it take to make the Next.js of web components, and how long until we don't need anymore frameworks?

WP Builds: 393 – Streamlining digital sales with Mindspun 
Matt Laue, founder of Mindspun, discusses how his company aims to revolutionise digital purchases by enabling users to buy products online in seconds using seamless tools like digital wallets and fingerprint scans.

Laracast Snippet: The Stories We Tell Ourselves 
Tell me what you think of this. We all have certain stories about ourselves that we repeat, like mantras. "I am the type of person who is X, therefore..." But, for all the reps, I'm not sure these are doing us any good at all.

Laravel Podcast: Listener Q&A with Taylor Otwell After Accel Investment Announcement
In this episode of the Laravel podcast, we address some listener-submitted questions regarding the recent investment in Laravel and the announcement of Laravel Cloud. 

PHP Architect: 2024.11.21 
This week on the php podcast, Eric and John discuss PHP 8.4 and its new features, Pie, PHPStorm, PHPTek, Yazi for file management in the terminal, and more. 

The PHP Roundtable: 091: PHPRoundtable July 2024 
In this episode on PHPRoundtable, the panel discusses the adoption and current state of PHP in the industry. We also share out thoughts on what we feel could be some potential improvements for the development experience. 

Frontmatter Podcast: Eric Elliott, Author of The Art of Effortless Programming: Unleashing the Power of AI Driven Development
In this interview, Leanpub co-founder Len Epp talks with Eric about his early fascination with AI, starting from when he was six years old, writing text-based adventure games, and developing his first neural network in the late 90s.

Mostly Technical: Idea About Ideas
Ian and Aaron talk about Ian's new idea that's got him frazzled and on tilt, Aaron's sales milestone, the game Factorio, and a lot more.

Over Engineered: The Art of Pairing with Strangers w/ Ben Holmen
Ben Holmen started his Pair-amid scheme as an experiment in meeting new people and experiencing new code. He shared his calendar with the world, and booked pairing sessions with 15 complete strangers. The outcome? A bunch of new friends and new experiences.

Syntax: Preventing Spam and Fraud
Wes and Scott discuss various techniques to prevent spam and fraud when developing web apps, including CAPTCHAs, third-party verification services, rate limiting, and manual review.

The Changelog: Working from home is powering productivity
Nicholas Bloom finds WFH is powering a productivity boom, Matt Mullenweg has decided that WP Engine’s beatings will continue until morale improves, Levels.fyi has added a salary heat map

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.

Why You Should Consider Upgrading to PHP 8.4?
In this article, we’ll explore the key reasons why you might want to upgrade your PHP projects to version 8.4.

How to Prevent Session Hijacking: Secure PHP Session Management
This article will explore the mechanics of session hijacking, how weak session management compromises user data in PHP applications, and best practices to secure session handling and protect user data.

Why I Like the Strategy Pattern
As a developer, one of the most powerful tools is the ability to write clean, maintainable, and extensible code. Design patterns play an important role in accomplishing this goal; among them, the Strategy pattern is particularly notable. 

Laravel Advanced: Lesser-Known, Yet Useful Composer Commands
Composer also offers some commands that are lesser-known but helpful while working on your Laravel app.

Interesting Projects, Tools and Libraries


nathandentzau/drupal-saml
SAML 2.0 integration for Drupal.

stekel/laravel-url
A personal way of handling url management on Laravel models.

inquid/yii2-vue
Vue for yii2 web application.

tmsolution/formtype-bundle
Symfony2 bundle for formtype.

sonsofphp/pager
Allows you to easily paginate results.

enm/external-layout
Load, modify and store html layouts from remote locally.

appertly/hcollection
Adds support for PhpRedis to Laravel and Lumen 4.x/5.x

magenable/module-captcha-bypass
A Magento 2 captcha bypass module for testing purposes.

elegasoft/mailbox-router
A Boilerplate for registering and managing Mailboxes with beyondcode/laravel-mailbox.

tangwei666/php-excel-templator
PHP Spreadsheet extension for generating excel files from template.

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

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

PHPWeekly December 12th 2024

Thursday, December 19, 2024

Curated news all about PHP. Here's the latest edition Is this email not displaying correctly? View it in your browser. PHP Weekly 12th December 2024 Hi everyone, Wherever you are in the world, we

PHPWeekly December 5th 2024

Tuesday, December 10, 2024

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

PHPWeekly November 28th 2024

Thursday, November 28, 2024

Curated news all about PHP. Here's the latest edition Is this email not displaying correctly? View it in your browser. PHP Weekly 28th November 2024 Hi everyone, It's Thanksgiving and Black

You Might Also Like

Ghostly Terminal, toJson, Laravel 2024 recap, and more! №546

Sunday, January 5, 2025

Your Laravel week in review ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏

Retro Recomendo: Destinations

Sunday, January 5, 2025

Recomendo - issue #444 ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏

JSK Daily for Jan 4, 2025

Saturday, January 4, 2025

JSK Daily for Jan 4, 2025 View this email in your browser A community curated daily e-mail of JavaScript news Optimizing Productivity: Integrate Salesforce with JavaScript Scheduler Syncfusion

Daily Coding Problem: Problem #1658 [Easy]

Saturday, January 4, 2025

Daily Coding Problem Good morning! Here's your coding interview problem for today. This problem was asked by Google. You are given an array of arrays of integers, where each array corresponds to a

📱 Why You Should Buy an iPhone 15 in 2025 — This Is My Favorite AI Image Upscaler, and It’s Free

Saturday, January 4, 2025

Also: The Best Laptop Docking Stations in 2025, and More! How-To Geek Logo January 4, 2025 Did You Know There are only three live-action animals enshrined on the Hollywood Walk of Fame. All three are

Ranked | The Most Viewed Wikipedia Pages in 2024 📊

Saturday, January 4, 2025

From Kamala Harris to India's general election, politics dominated readers interests in 2024 as a historic number of people went to the polls. View Online | Subscribe | Download Our App FEATURED

Weekend Reading — DOOM x 2

Saturday, January 4, 2025

Andy P “But it is public domain” Tech Stuff Fish 4.0b1 I'm giving Fish a try. So far it's really amazing and a step up from ZSH, which itself was a step up from Bash. 4.0b1 is out, noted as “

🐍 New Python tutorials on Real Python

Saturday, January 4, 2025

Hey there, There's always something going on over at Real Python as far as Python tutorials go. Here's what you may have missed this past week: Building HTTP APIs With Django REST Framework

Smash Your New Years Goals With the Informant 5 App

Saturday, January 4, 2025

Informant 5 is a complete planner in your pocket. Manage Calendars, Tasks, Projects, and Tags in a single app. This app is one of the few that combines both your calendar AND your tasks into a singe

U.S. Sanctions Chinese Cybersecurity Firm for State-Backed Hacking Campaigns

Saturday, January 4, 2025

THN Daily Updates Newsletter cover JavaScript: Mastering JavaScript from Basics to Advanced Topics ($54.99 Value) FREE for a Limited Time This book provides a comprehensive introduction to JavaScript