PHP Weekly - PHPWeekly February 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 February 2023

Hi everyone,

We're a week away from the release of Laravel 10, and in this week's newsletter we have a couple of articles covering what's in store in next week's release, including a profile option to spot slow tests and Process facade. We also have the latest PHP 8.1 release and this month's XDebug update. In the podcast section we have an upcoming PHPRoundtable episode scheduled on the 17th, and if you would like to join the live discussion you can head on to their Discord link in the post below. Finally in the Reading section you can find some interesting articles on Wordpress debugging and 9 software life lessons you must experience yourself to truly understand. Let s know if you've stumbled upon some of them.  

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

encrypt php scriptsProtect your PHP Code
Why not try SourceGuardian 13. Click here to download a 14 Day Trial copy. Protect your code using Windows, Linux or Mac and run everywhere with our free Loaders.

Articles


Local Environment Seeders in Laravel
Database Seeders are a feature of Laravel you don't read much about.

I'm A Code Folder
I know it looks strange the first time you see it, but hear me out for a minute: I am a code folder.

Utilizing The Laravel Validator After Hook
The validation API is rich and powerful that can cover almost any validation problem you might have.

Design Patterns in PHP 8: State
State design pattern is a behavioral design pattern that enables an object to change its behavior when its internal state changes.

Should You Upgrade to Laravel 9? An Overview of Its New Features and Benefits
In this blog post, we will explore the latest updates and new features of Laravel 9, and discuss whether it’s worth upgrading from Laravel 8 to Laravel 9.

Mastering Traits in Laravel: The Ultimate Guide to Code Reusability
In this article, we will cover how to create and use traits in Laravel.

Not All Exceptions Are The Same
There is lots to talk about Exceptions: what are they, when should you throw them, how should you create them and so on and so forth.

PHP 8.2+ Boosts Memory Beasts On MacOS
The Sun shines bright for the MacOS servers hosting memory intense PHP apps and everyone else.

Laravel 10 Will Include A Profile Option To Find Slow Tests
Having a slow test suite can be frustrating. Sitting around for 30 seconds or more every time you want to run your tests is not fun.

Tutorials and Talks


Learn How To Impersonate Users In Your Laravel App
One of the neat features of Laravel Nova is the ability to impersonate users right from the control panel.

CakePHP 4 Tutorial 2023 - Logging (Part 15)
In this part we are going to learn the basics of what logging is and how you can utilize it in CakePHP.

How To Use Mod_Rewrite To Remove Your (.PHP) Extension From Your Work
There was a time I wanted to remove my (.PHP) extension from my project URL it became an extreme challenge for me, and I was bored cause I wished my .php not to show, then I stumbled into mod_rewrite.

Add WebSockets to Laravel in 10 mins
This tutorial will provide a brief guide on how to incorporate WebSockets into your Laravel application.

How To Create A Middleware In Laravel
How to create a middleware in Laravel to prevent non-admin users from accessing the dashboard.

News and Announcements


PHP 8.1.15 Released!
The PHP development team announces the immediate availability of PHP 8.1.15. This is a bug fix release. All PHP 8.1 users are encouraged to upgrade to this version.

Xdebug Update: January 2023
In this monthly update I explain what happened with Xdebug development in this past month. These are normally published on the first Tuesday on or after the 5th of each month.

Laravel 9.51 Released
The Laravel team released 9.51 this week with a new database query count expectation, relationship builder for one/many through, HTTP URI templates, and more.

PhpStorm 2023.1 EAP #3: New Inspections
In this build, we’ve added the ability to create custom Regexp-based inspections, and there is a pack of new, built-in inspections available.

Process Facade Coming to Laravel 10
Laravel 10, due out next week, will introduce a Process layer for Laravel. Like the HTTP facade makes working with APIs a cinch, the Process service will make working with, testing, and running CLI processes a dream to work with.

A Week of Symfony #840 (30 January - 5 February 2023)
This week, Symfony 4.4.50, 5.4.20, 6.0.20, 6.1.12, and 6.2.6 were released to address some security issues related to CSRF tokens and cookie headers in HTTP Cache. Moreover, we celebrated the companies that back Symfony 6.2 development and announced the SymfonyLive Paris 2023 conference workshops.

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

Podcasts and Vlogs


The PHP Roundtable: 086: Education of Development
In this episode of PHPRoundtable, we have a panel of instructor, students, and professional to talk about the Education of Development and Coding. We discuss formal, structure programs to self taught. What is the best was to learn to code? You can join us live in our Discord Channel https://discord.gg/wmD3sGnMMe

PHP Ugly: 321: All In The PHPamily
This week on the podcast, Eric, John, and Thomas talk about PHPRoundtable new show, ethics in coding, Mastodon crossposting solutions, and more...

The Stack Overflow: Why developer experience is the key to better software, straight from the OCTO’s mouth (Ep. 534)
A seven-point manifesto for driving lasting innovation.

No Compromises Podcast: Blogging versus tweeting
Laravel has a vibrant community of people teaching and sharing what they've learned. What makes a good tip? Should you tweet or blog or both?

North Meets South Podcast: The One About Line Feeds And Carriage Returns
Jake and Michael discuss the perils of line feeds (and sometimes carriage returns), snapshot testing, and dealing with false-positives when processing API requests.

Maintainable Podcast: Andy Croll - Keep the Weird Stuff Weird
Robby has a chat with Andy Croll (he/him/his), the CTO at CoverageBook, about why the maintainability of software can only be ensured if there is a core focus on the readability of code, the rationale for why weird things in our code should stay weird until we find a better way to express it.

Software Engineering Radio: Episode 549: William Falcon on Optimizing Deep Learning Models
William Falcon of Lighting AI discusses how to optimize deep learning models using the Lightning platform, optimization is a necessary step towards creating a production application.

Developer Tea: Golden Advice - Always Leave Margin For Extra
Sometimes I hear advice that is worth its weight in gold. In today's episode I share one piece of advice that is almost universally applicable across life and career efforts.

Shoptalk Show: 551: PlanetScale with Iheanyi Ekechukwu and Mike Coutermarsh
Iheanyi Ekechukwu and Mike Coutermarsh talk about PlanetScale, what Vitess is, if PlanetScale is for both side and big projects, what read only regions are, what schema changes are, and how PlanetScale compares to other projects.

WP Builds: 313 – Thinking the unthinkable (TTUT). Episode 1: Certified
Here we challenge ourselves to answer (or at least rationalise) provocative statements or critical opinions of WordPress and our glorious website building profession.

Reading and Viewing


Disabling Composer's Script Process Timeout
For repetitive processes in my projects, I typically use Composer's script functionality to make running scripts and executing binaries simpler for myself and my team.

Locality of Behavior
The LoB principle dictates that the behavior of a unit of code should be as obvious as possible by looking only at that unit of code. But I think something is missing from this discussion.

WordPress Debugging: Disable Heartbeats
Heartbeats can be disabled with a PHP code or by using a special WordPress plugin.

The Most Efficient Way To Debug Problems With PHPUnit Mocks
PHPUnit can be overwhelming to those who are just learning the basics of programming and/or unit testing in PHP.

9 Software Life Lessons You Must Experience Yourself to Truly Understand
In software, there are many lessons to be learned from experience. I had to learn the following nine lessons the hard way!

Introduction to Pest Testing in PHP
Introduction to Pest Testing in PHP.

Interesting Projects, Tools and Libraries


wobblecode/rest-bundle
A bundle that creates REST Apis based on your current controllers actions.

truesocialmetrics/2checkout-api-legacy
2checkout Legacy API based on Avangate.

respek-nature/magento-respek-module
A Magento 2 module that adds extra a Respek Carbon Offset at checkout.

fhsnando/laravel-share
Optional package for Laravel to generate social share links with new options.

googleshokry/no-captcha
No CAPTCHA reCAPTCHA For Laravel.

qerim/laravel-searchy
Laravel Searchy makes user driven searching easy with fuzzy search, basic string matching, Levenshtein Distance and more.

lopezlean/cakephp-gourmet-email
Gourmet Email Plugin for rapid CakePHP application development.

cronfy/tree
PHP tree implementation.

cocur/background-process
Start processes in the background that continue running when the PHP process exists.

raoul2000/yii2-jcrop-widget
This extension is a wrapper for the jQuery Image Cropping Plugin (jcrop).

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

PHPWeekly January 19th 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 19th January 2023 Hi everyone, We've gathered all the latest

PHPWeekly January 5th 2023

Thursday, January 5, 2023

Curated news all about PHP. Here's the latest edition Is this email not displaying correctly? View it in your browser. PHP Weekly 5th January 2023 Hi everyone, Welcome to the new year. Hope you all

You Might Also Like

📧 Introduction to Distributed Tracing With OpenTelemetry in .NET

Saturday, April 20, 2024

​ Introduction to Distributed Tracing With OpenTelemetry in .NET Read on: m​y website / Read time: 5 minutes BROUGHT TO YOU BY ​ Shesha: The .NET Open-Source Low-Code Framework ​ Introducing Shesha, a

a16z’s Infrastructure team gets a new general partner

Friday, April 19, 2024

Post News is shutting down and Wall Street isn't feeling a Salesforce-Informatica pairing View this email online in your browser By Christine Hall Friday, April 19, 2024 Image Credits: Andreessen

New Roundtable! Additive for Mass Production Applications

Friday, April 19, 2024

The Outlook for the Future View this email in your browser engineering.com Roundtable - Additive for Mass Production Applications: The Outlook for the Future 6 Considerations for Choosing the Right

📷 What to Know About Macro Photography — Why You Should Buy a Budget Motherboard

Friday, April 19, 2024

Also: How to Automatically Highlight Values in Excel, and More! How-To Geek Logo April 19, 2024 📩 Get expert reviews, the hottest deals, how-to's, breaking news, and more delivered directly to your

Is the wind going out of the AI sails?

Friday, April 19, 2024

Rippling vacuums up venture capital and Ramp bags more millions View this email online in your browser By Haje Jan Kamps Friday, April 19, 2024 Image Credits: Getty Images / Carol Yepes Welcome to

Llama 3 is out - Weekly News Roundup - Issue #463

Friday, April 19, 2024

Plus: brand-new, all-electric Atlas; AI Index Report 2024; Microsoft pitched GenAI tools to US military; Humane AI Pin reviews are in; debunking Devin; and more! ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏

Daily Coding Problem: Problem #1417 [Easy]

Friday, April 19, 2024

Daily Coding Problem Good morning! Here's your coding interview problem for today. This problem was asked by Wayfair. You are given a 2 x N board, and instructed to completely cover the board with

Charted | How Hard Is It to Get Into an Ivy League School? 🎓

Friday, April 19, 2024

We detail the admission rates and average annual cost for Ivy League schools, as well as the median SAT scores required to be accepted. View Online | Subscribe Presented by: Discover the motivations

Dark Matter & Tortured Poets

Friday, April 19, 2024

New music releases aren't what they used to be -- for good and bad. Dark Matter & Tortured Poets By MG Siegler • 19 Apr 2024 View in browser View in browser New music releases in 2024 are a

Impact of AI on Product Management

Friday, April 19, 2024

​ Impact of AI on Product Management The rise of the AI Product Manager. Product managers have always championed customer's needs. However, with AI, the job requires new technical and ethical