PHP Weekly - PHPWeekly October 24th 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, so let's start off with Tutorials where we have a deep dive into sessions in Laravel, as well as an in-depth guide on mastering Laravel configurations. We have fast tips on Laravel Custom helper functions and the first part odf deploying PHP applications to Amazon ECS. In our Reading section we have articles on Understanding PHP core concepts, an interview with Laracon creator, Michael Dyrynda and a comprehensive cheat sheet on date and time format options in PHP. Finally in Podcasts we have new episodes from Laravel News on Inertia.js v2, pledging to open source and more, while on the Changelog they talk about naming conventions that need to die. We have all that and more, so we 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. 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.

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

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


A Case For Custom Collections
I recently submitted a pull request to the Laravel framework to add a new Eloquent attribute called CollectedBy. In short, it allows you to use an attribute to configure your Eloquent model to use a specific Collection class, rather than the default (which is Illuminate\Database\Eloquent\Collection).

Laravel custom helper functions – Fast Tips
Helper functions are quite popular among Laravel developers. They provide access to some clever algorithms ready to be used in your code using a single statement.

Clean Code Architecture in Laravel: A Practical Guide
If you’ve been developing with Laravel for a while, you’ve probably heard the phrase "clean code" tossed around. But what does it actually mean in the context of Laravel development? More importantly, why should you care?

Laravel performance optimization strategy: from source code analysis to actual practice
This article will comprehensively explore performance optimization strategies for Laravel from both source code analysis and practical application perspectives.

Sharing encrypted Laravel cookies with Next.js
I recently found myself needing to crack open the values of cookies coming from a Laravel application, read them, update them, and then patch them back up in a way the Laravel application wouldn’t even notice.

Naming best practices in PHP
I’m going to dispel some naming myths and I hope you can find here usefull tips to use not only in production code but in tests as well.

PHP Null Safety
Imagine, You need bill type of a particular payment and you will get from Payment class like below.

Tutorials and Talks


A Deep Dive into Sessions in Laravel
When building Laravel applications, it's almost guaranteed you'll need to deal with sessions at some point. They are a fundamental part of web development.

Part 1 - Deploying a PHP (Laravel) application to Amazon ECS
In this first part of our tutorial series, we'll walk through the steps to deploy a PHP (Laravel) application to Amazon ECS. We'll start by creating a Docker image, pushing it to Amazon ECR, creating an ECS Task Definition, an ECS Cluster, an ECS Service and connecting a domain name to the service.

1593. Split a String Into the Max Number of Unique Substrings
Given a string s, return the maximum number of unique substrings that the given string can be split into.

MySQL Create Tables in PHP with MySQLi and PDO
In this tutorial about How to Create Table in MySQL database. We’re going to focus on the application of MySQL create table in the database. This is Part two of our MySQL tutorial for Beginners in 7 days.

Always Render API Exceptions as JSON in Laravel
Have you ever enforced returning JSON on API requests for exceptions using a custom middleware like the following.

Laravel custom helper functions — Fast Tips
Helper functions are quite popular among Laravel developers. They provide access to some clever algorithms ready to be used in your code using a single statement.

Using Firebase Cloud Messaging(FCM) for Push Notifications in PHP: A Complete Guide
In this guide, we’ll use the lkaybob/php-fcm-v1 package to set up FCM and send push notifications with PHP.

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.

Simplifying Form Validation with Laravel Form Requests
Let’s dive into how Laravel Form Requests can simplify your validation workflow and help you maintain cleaner, more efficient code.

Mastering Laravel’s Terminable Middleware: Post-Response Magic
Enter Laravel’s terminable middleware — a powerful feature that allows you to execute code after the HTTP response has been dispatched. Let’s dive into how you can leverage this feature to optimize your Laravel applications.

News and Announcements


Laravel 11.28 Adds a Composer Dev Command
This week, the Laravel team released v11.28, with a composer run dev command, Tailwind default config, a "CollectedBy" attribute to define a custom Collection class for a model, interactive encrypt/decrypt commands, and more.

Property Hooks Are Coming To PHP 8.4!
One of the most widely discussed features coming to PHP 8.4 is Property Hooks. Property hooks allow us to add behavior that is specific to a single property while allowing that behavior to not interfere with existing aspects of PHP.

Bridging the Gap Between the Classic and New UIs
Any significant update to the UI and UX of a professional tool is likely to pose challenges for its users. We recognize that the new UI of JetBrains IDEs represents a major change and understand how unsettling it can be when the software you rely on for productivity is significantly reworked.

A Week of Symfony #929 (14-20 October 2024)
This week, Symfony development activity focused on various bug fixes across all supported branches. Meanwhile, we published more blog posts about the new Symfony 7.2 features. Lastly, we shared more details about some of the talks from the SymfonyCon Vienna 2024 conference.

CascadiaPHP | The Official2024 Php Conference Of The Pacific Northwest
Join us in Portland, Oregon fon Thursday-Saturday, October 24-26 in Portland, Oregon for the third (and first since 2019) edition of CascadiaPHP!

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


Laravel News Podcast: Inertia.js v2, pledging to Open source, and Pans
Jake and Michael discuss all the latest Laravel releases, tutorials, and happenings in the Laravel community.

The Stack Overflow: The new pair programming: an AI agent that cleans your code as you write
Ben welcomes Sonar CEO Tariq Shaukat for a conversation about AI coding tools’ potential to boost developer productivity—and how to balance those potential gains against code quality and security concerns.

Maintainable Podcast: Moriel Schottlender: The Challenges of Modernizing MediaWiki's Monolith
Welcome to another engaging episode of the Maintainable Software Podcast! In this episode, Robby sits down with Moriel Schottlender, Principal Software Engineer at the Wikimedia Foundation, to explore the complex journey of modernizing MediaWiki, the software behind Wikipedia.

Software Engineering Radio: SE Radio 638: Nick Tune and Jean-Georges Perrin on Architecture Modernization
Nick Tune and Jean-Georges Perrin join host Giovanni Asproni to talk about their proposed approach to modernizing legacy systems.

Developer Tea: The Highest Leverage Work You Do - Footing the Ladder
High-leverage work often comes in the simplest form of helping another person with their efforts.

Shoptalk Show: Q&A About Copyright, Jekyll, Joomla, Statamic, and More!
Dave's designing a new tshirt, questions for lawyers about copyrights for code projects, what does the copyright in the footer actually do, what do Dave and Chris require for personal web projects, does Jekyll get updated anymore, the Bob from Hell UX pattern, viewing ads on CNN, what about Joomla or Statamic, and how do paid fonts on the web work?

WP Builds: 394 – New show “Get it optimised” with Remkus de Vries. Episode 1.
So, here we are with yet another WP Builds show. Shiny! In this episode, Remkus de Vries discusses building a high-performance WordPress website, emphasising a solid foundation with good hosting and theme selection.

PHP Architect: Battlesnake With Brad Van Vugt
In this episode, Scott talks to Brad Van Vugt about Battlesnake.com a competitive online game where your code is the controller.

Mostly Technical: 55: Try Hard Empire
Ian and Aaron discuss updates on Aaron's house, the Try Hard Factory, his course launch, and so much more.

Over Engineered: Design Patterns w/ Mary Perry
Design patterns can be very useful, but can also be weaponized as a way to "prove" that someone is doing something the "wrong" way. Mary has been thinking a lot about the good side of knowing design patterns, so we sat down to chat about them.

Syntax: You Should Drop Express and Try Hono
CJ talks about Hono, a modern JavaScript framework for building web APIs, showing why you should use it over Express. He covers Hono's familiar Express-like API, wide platform support, built-in helpers, JSX support, routing, validation, RPC client, testing, and more.

The Changelog: Naming conventions that need to die
Will Crichton wishes some naming conventions would die already, GitHub user brjsp noticed that Bitwarden’s new SDK dependency isn’t open source, Joaquim Rocha details his forking best practices, Sophie Koonin explains why you should go to conferences & Mike Hoye puts WordPress on SQLite.

Reading and Viewing


Mastering Form Input Persistence in Laravel with Flash Methods
When building web applications, preserving form input across requests is a common requirement, especially when dealing with validation errors or multi-step forms.

Laracon AU with Michael Dyrynda
In this episode of Laravel News Creator Spotlight, Eric Barnes interviews Michael Dyrynda, the creator of Laracon AU. They discuss the importance of networking at conferences, Michael's journey in creating Laracon AU, and the enhancements made for social events this year.

Why I Use the empty() Language Construct More than isset() in PHP and You Should Too
When developing in PHP, handling variable checks effectively is crucial to ensure robust and error-free code. Two frequently used language constructs for this purpose are empty() and isset().

Comprehensive Cheat Sheet for Date and Time Format Options in PHP
Here’s a comprehensive cheat sheet for date and time format options in PHP, which are commonly used in many programming contexts for formatting dates and times.

TDD is a good exercise. That’s all.
I would like to share the experience I have gained from several years of practicing TDD in PHP. It’s simple: TDD structures your mind and code to be testable from start.

Understanding PHP Core Concepts: A Comprehensive Guide
To become proficient in PHP, it’s essential to understand its core concepts, including syntax, data types, error handling, exceptions, namespaces, and autoloading. This detailed guide will explore each of these topics.

Does PHP support Single Thread or Multi Threading? What does that even mean?!
First of all, this post is for my junior friends, as I won’t be offering a setup guide here, but rather a chat about the topic. So, if you’re a Senior and you see this post, I’m waiting for your feedback.

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.

Interesting Projects, Tools and Libraries


asantibanez/livewire-status-board
Livewire component to show models/data according to its current status.

remorhaz/php-json-pointer
JSON Pointer (RFC-6901) PHP implementation.

graham-campbell/bitbucket
Bitbucket Is A Bitbucket Bridge For Laravel.

trungnq/api-key
Authorize requests to your Laravel application with API keys.

utopia-php/http
A simple, light and advanced PHP HTTP framework.

redivo/bootstrap-colorpicker
Bootstrap Colorpicker is a modular color picker plugin for Bootstrap 4 (forked from itsjavi).

yawave-sdks/yawave
typo3 extension that extends the news extension and add record from the yawave.

nicoaudy/impersonate
Laravel impersonate middleware, simply traits for impersonating other user.

thefold/wordpress-dispatcher
Create URL endpoints within WordPress.

soutlink/wideimage
An open-source PHP library for image manipulation. (With namespaces, PHP 5.3+).

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 newsletter

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

PHPWeekly September 26th 2024

Friday, September 27, 2024

Curated news all about PHP. Here's the latest edition Is this email not displaying correctly? View it in your browser. PHP Weekly 27th September 2024 Hi everyone, Summer is officially over and we

PHPWeekly September 19th 2024

Friday, September 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 September 2024 Hi everyone, We hope you're all doing well.

PHPWeekly September 12th 2024

Thursday, September 12, 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 September 2024 Hi everyone, It's a great week for Laravel.

You Might Also Like

Say Goodbye to Navigation Nightmares

Thursday, November 7, 2024

View in browser 🔖 Articles Organizing Navigation with the Decompose Library Explore a practical guide to organizing complex app navigation using the Decompose library and Jetpack Compose. Learn how

Did Notion Slide Leak? (+ New FREE Time Tracker Inside)

Thursday, November 7, 2024

1 free template, 1 feature leak, 2 Notion updates, just for you 🔥 ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏

The most lovable Mac ever

Thursday, November 7, 2024

How ChatGPT replaces Google; Anker's new USB-C cables; Tech stocking stuffers -- ZDNET ZDNET Tech Today - US November 7, 2024 Mac Mini M4 Pro in hand The new M4 Mac Mini might be the most lovable

wpmail.me issue#692

Thursday, November 7, 2024

wpMail.me wpmail.me issue#692 - The weekly WordPress newsletter. No spam, no nonsense. - November 7, 2024 Is this email not displaying correctly? View it in your browser. News & Articles WordPress

⚙️ Interview: How to bake ethics into AI

Thursday, November 7, 2024

Plus: Is deep learning hitting a wall? ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌

Post from Syncfusion Blogs on 11/07/2024

Thursday, November 7, 2024

New blogs from Syncfusion Easily Create Dynamic Charts in Excel Using C# By Kurmitha Manickhaperumal This blog explains how to create and customize dynamic charts using C# in the Syncfusion .NET Excel

Top Tech 🏆 ASUS ROG Ally X Review — Finally, a Comfortable Pair of Over-The-Ear Open Earbuds

Thursday, November 7, 2024

Also: A Quality Speaker Half the Price of the Beats Pill, and More! How-To Geek Logo November 7, 2024 🎧 Play That Funky Music As we head into the holiday shopping season, you're likely looking for

Cisco Releases Patch for Critical URWB Vulnerability in Industrial Wireless Systems

Thursday, November 7, 2024

THN Daily Updates Newsletter cover [Watch LIVE] Storytime with Huntress Managed Security Awareness Training Tired of traditional security training? Supercharge your security culture with Huntress SAT.

Edge 446: Can AI Build AI Systems? Inside OpenAI's MLE-Bench

Thursday, November 7, 2024

A new benchmark that evaluates machine learning engineering workflows in LLMs ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏

Get Unbiased News for Free

Thursday, November 7, 2024

iPhoneLife Logo Sponsored email sent by iPhone Life News with just the facts. Find unbiased reporting at 1440. Check out 1440—the fastest way to an impartial point-of-view. The team at 1440 scours over