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
 

 

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

Weekend Reading — More time to write

Sunday, November 24, 2024

More Time to Write A fully functional clock that ticks backwards, giving you more time to write. Tech Stuff Martijn Faassen (FWIW I don't know how to use any debugger other than console.log) People

🕹️ Retro Consoles Worth Collecting While You Still Can — Is Last Year's Flagship Phone Worth Your Money?

Saturday, November 23, 2024

Also: Best Outdoor Smart Plugs, and More! How-To Geek Logo November 23, 2024 Did You Know After the "flair" that servers wore—buttons and other adornments—was made the butt of a joke in the

JSK Daily for Nov 23, 2024

Saturday, November 23, 2024

JSK Daily for Nov 23, 2024 View this email in your browser A community curated daily e-mail of JavaScript news React E-Commerce App for Digital Products: Part 4 (Creating the Home Page) This component

Not Ready For The Camera 📸

Saturday, November 23, 2024

What (and who) video-based social media leaves out. Here's a version for your browser. Hunting for the end of the long tail • November 23, 2024 Not Ready For The Camera Why hasn't video

Daily Coding Problem: Problem #1617 [Easy]

Saturday, November 23, 2024

Daily Coding Problem Good morning! Here's your coding interview problem for today. This problem was asked by Microsoft. You are given an string representing the initial conditions of some dominoes.

Ranked | The Tallest and Shortest Countries, by Average Height 📏

Saturday, November 23, 2024

These two maps compare the world's tallest countries, and the world's shortest countries, by average height. View Online | Subscribe | Download Our App TIME IS RUNNING OUT There's just 3

⚙️ Your own Personal AI Agent, for Everything

Saturday, November 23, 2024

November 23, 2024 | Read Online Subscribe | Advertise Good Morning. Welcome to this special edition of The Deep View, brought to you in collaboration with Convergence. Imagine if you had a digital

Educational Byte: Are Privacy Coins Like Monero and Zcash Legal?

Saturday, November 23, 2024

Top Tech Content sent at Noon! How the world collects web data Read this email in your browser How are you, @newsletterest1? 🪐 What's happening in tech today, November 23, 2024? The HackerNoon

🐍 New Python tutorials on Real Python

Saturday, November 23, 2024

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: Black Friday Giveaway @ Real Python This Black

Re: Hackers may have stolen everyone's SSN!

Saturday, November 23, 2024

I wanted to make sure you saw Incogni's Black Friday deal, which is exclusively available for iPhone Life readers. Use coupon code IPHONELIFE to save 58%. Here's why we recommend Incogni for