PHP Weekly - PHPWeekly August 22nd 2024

Curated news all about PHP.  Here's the latest edition Is this email not displaying correctly?
View it in your browser.
PHP Weekly 22nd August 2024

Hi everyone,

In this week's newsletter we have guides that will help you create custom Facades in Laravel. We also have a tutorial on how and when to use event listeners in Laravel 11 with practical code examples. If you want to master component flow, we also have a tutorial on Lifecycle hooks in Laravel Livewire. In Podcasts we have new episodes from Laravel News on deduplicating strings, adding swagger and workflows, while the guys at No Compromises asks the question of where do you go when you need help and a discussion on different approaches when you find yourself in need of assistance. Mostly Technical is joined this week by Caleb Porzio and Daniel Coulbourne for a deep dive into prepping for Laracon and other topics. Finally in our Reading section we have a blog post on mastering Laravel Artisan commands, using Observers in Laravel to simplify event handling in your application, and a post on Laravel stubs, how to use them and how they can be customised to fit your needs. We have all that and more, so we do 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.

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


How Laravel's TrimStrings Middleware Can Cause Issues
PHP opcode caching improves speed by storing compiled PHP code in memory. This eliminates the need for PHP to recompile the code each time it is requested. The code runs precompiled.

PHP 8.4 Introduces array_find Function: Innovation or Gimmick?
The release of PHP 8.4 has brought many exciting new features, one of which is the array_find function. As a PHP developer, I’ve delved into this new feature and would like to share my insights, while also inviting everyone to join the discussion.

Git Hooks Made Easy: How Whisky Helps Developers with Len Woodward
In this episode of the Laravel Creator Spotlight, we are joined by Len Woodward, the creator of Whisky, to talk about the project.

Is PHP’s DateTime Class Really That Bad?
This article will delve into the pros and cons of the DateTime class, the importance of immutability, and how to effectively use the DateTime class, analyzing the reasons and impacts behind these issues.

PHP Secure Coding: Don't Let the Code Get Loose
I was having a casual chat with a friend the other day who is a tech lead on a successful startup, and while we were watching the Olympics final of women's water polo, we started talking about a PHP fail I found in the wild.

From Chaos to Control: Why Automated Tests Are Essential
The pressure to fit into the client’s budget, to deliver MVPs quickly and later to release new features and updates can sometimes lead to corners being cut — especially when it comes to testing.

You’re Not a Laravel Developer If You Don’t Know These 10 Things
Don’t Call Yourself a Laravel Developer Until You’ve Mastered These 10 Concepts.

Jobs

 

Web Scraping Specialists Wanted
If you're a skilled Web Scraping Specialist with a knack for creative problem-solving, join our remote team to gather data from e-commerce websites and enhance our data-driven solutions. Embrace challenging projects, overcome blocking technologies, and collaborate with a diverse global team in a flexible, fast-paced environment.

Junior PHP/Python Developer - Remote
We're looking for Full-Stack Developers to join our dynamic remote international team. As a developer, you'll work on a range of projects, including Business Intelligence systems, Legal SaaS, and cutting-edge online projects. You'll be responsible for improving legacy systems, monitoring technical systems, and delivering high-quality solutions. You should be proficient in front-end and back-end development, have strong problem-solving skills, and experience with Python, PHP, Postgres, MongoDB, and Linux servers. If you're a self-motivated team player, apply now.



Technical Support Manager - Remote
Are you interested in programming but don't have the experience yet to be a skilled developer? Join our team as a Technical Support Manager and be part of our SaaS company's success. You'll work closely with our customers to provide timely solutions, troubleshoot technical issues, and contribute to feature development. Using your skills, you'll quickly identify and resolve issues, while also working closely with our team to deliver an exceptional customer experience. You don't need to have programming experience to succeed in this role, but you should have a passion for technology and a desire to learn. You will help us enhance our products and deliver an outstanding customer experience.

Tutorials and Talks


Learn how to create custom Facades in Laravel
Laravel Facades are a fantastic feature of the Laravel framework, providing convenient access to services via a simple interface. One thing that confused me when I was first learning Laravel was the facade accessor method.

Send email from WordPress the right way
Let's explore the best practices for sending both plaintext and HTML emails within WordPress.

Eloquent Trick: Laravel Model from Subquery
This technique allows us to encapsulate complex queries within the application layer, much like creating a database view, but with the added flexibility of Eloquent operations.

How & When To Use Event Listeners in Laravel 11? Practical Code Examples
This guide tells extremely detailed points on implementation and utilization of event listening especially in 2024, providing a fresh perspective with the most expansive content and detailed code examples event listeners in Laravel 11.

Leveraging Lifecycle Hooks in Laravel Livewire: Mastering Component Flow
Livewire’s lifecycle hooks provide developers with fine-grained control over component behavior at various stages of its lifecycle. Let’s explore these hooks and how they can be used effectively.

Base entities and behaviors for Doctrine — how I do it.
If you work with Symfony, then you probably work with Doctrine as well. How do you create new entities? I try to make it easy.

Automating Report Generation and Distribution with Laravel’s Task Scheduler
Laravel’s Task Scheduler provides a powerful way to automate recurring tasks, including the generation and distribution of reports. Let’s explore how to set up automated reporting in your Laravel application.

Creating a Blog Platform with PHP: A Step-by-Step Guide
By the end of this tutorial, you’ll have a fully functional blog platform where users can create, read, update, and delete blog posts.

News and Announcements


PHP 8.4.0 Beta 3 now available for testing
The PHP team is pleased to announce the release of PHP 8.4.0, Beta 3. This is the first beta release, continuing the PHP 8.4 release cycle, the rough outline of which is specified in the PHP Wiki.

Some of the announcements coming to Laracon US
On the recent Laravel Podcast, Taylor and Matt discussed some of the announcements coming out at Laracon US.

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

The August 2024 Laravel Worldwide Meetup
The next Laravel Worldwide Meetup is Tuesday, August 20th, at 16:00 UTC, and it will feature Yaz Jallad and Drishti Jain.

A Week of Symfony #920 (12-18 August 2024)
This week, Symfony optimized dumped resources for tracking in Config and DependencyInjection components, deprecated !tagged tag in favor of the !tagged_iterator tag and fixed handling NO_COLOR env var while adding support for FORCE_COLOR env var. In addition, we published more details about some talks of the SymfonyCon Vienna 2024 conference.

SymfonyLive Berlin 2025: Save the date!
The next SymfonyLive Berlin 2025 will take place on April 3 - 4! Enjoy now the early bird registration ticket & the call for papers.

Podcasts and Vlogs


PHP Ugly: 393: Query All The Things
This week on the podcast, Eric and John talk about Launch PHPTek.io, New Mastodon Clients and People to Folow, PHP 8.4, Tailwind, and more...

Laravel News Podcast: Deduplicating strings, adding Swagger, and workflows
Jake and Michael discuss all the latest Laravel releases, tutorials, and happenings in the community.

The Stack Overflow: Battling ticket bots and untangling taxes at the frontiers of e-commerce
On today's episode we chat with Ilya Grigorik, a Distinguished Engineer and Technical Advisor to the CEO at Shopify.

No Compromises Podcast: Where do you go when you need help?
We can't know everything, so throughout each day we inevitably have questions. On today's episode, we discuss different approaches we have used when we need a little help.

Maintainable Podcast: Obie Fernandez: Pioneering AI in Ruby on Rails Development
The importance of test coverage and readable code in maintaining software over time.

Software Engineering Radio: SE Radio 629: Emily Bache on Katas and the Importance of Practice
Emily Bache, founder of the Samman Technical Coaching Society and author of several books about technical agile coaching, talks with SE Radio host Sam Taggart about katas and the importance of practice.

Shoptalk Show: The Great Divide, Global Design + Web Components, and Job Titles
A bit of follow-up on vibe driven development and JavaScript not causing The Great Divide, writing testing automation, global design systems and web components, could PHP be used for web components, what if view transitions are going to be everywhere, and frontend engineer vs design systems engineer job titles and descriptions.

WP Builds: 385 – Revolutionising newsletters: Xaver Birsak’s journey with his Mailster plugin
In this episode of the WP Builds podcast, I chat wih Xaver Birsak, the creator of Mailster, an email marketing plugin for WordPress. Xaver, who has over 20 years of experience in the tech industry, shares his journey from working with Flash, HTML, and JavaScript to developing Mailster, which initially launched in 2012 and recently updated to version 4.0.

Frontmatter Podcast: Gojko Adzic, Author of Lizard Optimization: Unlock Product Growth by Engaging Long-Tail Users
In Leanpub's Frontmatter podcast, we interview authors and special guests about their lives & careers, their areas of expertise and the issues of the moment, and their experiences as writers.

Mostly Technical: 48: Mostly NPTM with Caleb Porzio & Daniel Coulbourne
Aaron is joined this week by Caleb Porzio (back-to-back weeks!) and Daniel Coulbourne (first-time guest!) to dive deep into prep for Laracon, text editors, something called the "side eye verify", Aaron's recent blog post, and a whole lot more.

Syntax: Effortless Light and Dark Mode × Theme Styling
Discussion on using CSS theming properties like color scheme, light/dark functions, accent color, selection styling, relative color syntax, and future style queries to control themes and light/dark modes.

The Changelog: Practices of reliable software design
Chris Stjernlöf got nerd-sniped and ended up writing down his practices of reliable software design, Ben Visness has had enough with the npm community’s propensity to pull in micro-libraries to suit every need, “Stay SaaSy” makes three metaphors for problem solving categories.

Reading and Viewing


Automated API documentation generation for Laravel with static code analysis using Scramble
Documenting an API in Laravel often involves using packages that rely on manual PHPDoc annotations. While this method works, it is time-consuming, error-prone, and often leads to documentation becoming outdated as the codebase evolves.

Mastering Laravel Artisan Commands: Optimize, Tinker, and More
In this blog post, we’ll explore several essential Artisan commands and their use cases, including clearing and optimizing caches, interacting with your application using Tinker, listing available commands, and creating custom commands.

Php: Concurrency With Processes. Pt. 2: Interprocess Communication With Shmop
In this installment, we're going to solve that issue by using shmop, php's "shared memory operations".

To Double Quote Or Not, That's The Question!
It is in this spirit that I am writing an article about the same topic Nikita Popov did already 12 years ago.

Observers in Laravel: Your Secret Weapon for Efficient Model Management
Today’s topic is Observers in Laravel — a tool that can significantly simplify event handling in your application. But as with most things, the devil is in the details, and Observers have their advantages as well as pitfalls that you should be aware of.

Unlock the Magic of Laravel Stubs: Supercharge Your Code Generation
In this post, we’ll explore what Laravel stubs are, how to use them, and how they can be customized to fit your needs.

What is PHP Fibers?
PHP Fibers is a relatively new feature introduced in PHP 8.1, designed to provide a lightweight and efficient way to handle asynchronous programming and concurrency.

Interesting Projects, Tools and Libraries


nurikabe/star-rating-bundle
Symfony form type and Twig extension for quick integration of FyneWorks' Star Rating widget.

helsingborg-stad/municipio
A bootstrap theme for creating municipality sites.

laragrad/laravel-money-engine
Transfers money between entities.

conclusivesystems/advisor-integration
Advisor Integration Library.

rgriss/mallard
A utility to backup and restore database for a laravel project.

luminee/esun
Make ElasticSearch operation like SQL, build ORM for ElasticSearch.

jimchen/php-dfa-sensitive
To achieve the filtering of sensitive words, based on the determination of finite automata (DFA) algorithm.

litermi/cache-query-builder
it is a package provider cache from query generate and purge cache when used methods specifics.

brosua/form-search
Add search functionality to the TYPO3 backend form manager.

latrell/proxy-curl
Laravel extension for CURL requests using a third-party HTTP proxy service.

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 © 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 August 15th 2024

Tuesday, August 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 15th August 2024 Hi everyone, We live in a world where things seem

PHPWeekly August 8th 2024

Thursday, August 8, 2024

Curated news all about PHP. Here's the latest edition Is this email not displaying correctly? View it in your browser. PHP Weekly 8th August 2024 Hi everyone, It's the final stretch of the

PHPWeekly August 1st 2024

Thursday, August 1, 2024

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

PHPWeekly July 25th 2024

Thursday, July 25, 2024

Curated news all about PHP. Here's the latest edition Is this email not displaying correctly? View it in your browser. PHP Weekly 25th July 2024 Hi everyone, Last week we had an article about

PHPWeekly July 18th 2024

Thursday, July 18, 2024

Curated news all about PHP. Here's the latest edition Is this email not displaying correctly? View it in your browser. PHP Weekly 18th July 2024 Hi everyone, If you don't feel like reading this

You Might Also Like

Exclusive: Top SaaS Security Threats of 2025—And How to Eliminate Them

Wednesday, September 18, 2024

Learn how 39% of companies are stepping up their defenses. ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌

📳 Your Smart Home Needs Vibration Sensors — 7 Ways to Change How iOS 18 Looks

Wednesday, September 18, 2024

Also: Should You Use AI Photo Editors? How-To Geek Logo September 18, 2024 Did You Know The safety lever on a hand grenade, the lever the soldier holds down after removing the pin, but before throwing

JSK Daily for Sep 18, 2024

Wednesday, September 18, 2024

JSK Daily for Sep 18, 2024 View this email in your browser A community curated daily e-mail of JavaScript news Top 8 React Libraries for Building Beautiful and Functional UIs This article will look at

Daily Coding Problem: Problem #1560 [Medium]

Wednesday, September 18, 2024

Daily Coding Problem Good morning! Here's your coding interview problem for today. This problem was asked by Google. Given a set of closed intervals, find the smallest set of numbers that covers

Nature is Healing

Wednesday, September 18, 2024

Over-Optimized Apple, John Wick AI, Snap's New Reality Nature is Healing Over-Optimized Apple, John Wick AI, Snap's New Reality By MG Siegler • 18 Sept 2024 View in browser View in browser

We tested every iPhone 16 model - buy this one

Wednesday, September 18, 2024

What I love about Pixel 9 Pro; October Prime Day; Best fitness rings -- ZDNET ZDNET Tech Today - US September 18, 2024 placeholder We've used every iPhone 16 model and here's our best buying

Charted | Visualizing S&P 500 Returns After Interest Rate Cuts 📈

Wednesday, September 18, 2024

In the past 50 years, S&P 500 returns following interest rate cuts have varied widely, from +36.5% to -36% a year later. View Online | Subscribe | Download Our App Presented by: The economy is

Top Tech Deals 👀 Garmin Smartwatch, $20 Fire TV Stick, Power Banks, and More!

Wednesday, September 18, 2024

Get a discounted mechanical RGB keyboard, Sony FE lens, portable chargers, and other must-haves. How-To Geek Logo September 18, 2024 Top Tech Deals: Garmin Smartwatch, $20 Fire TV Stick, Power Banks,

⚙️ Intel is trying to make a comeback

Wednesday, September 18, 2024

Plus: Microsoft is launching new AI centers in the Middle East ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌

Whiskey: The Tangible Asset for Your Portfolio

Wednesday, September 18, 2024

Most people fail to diversify their investments. They invest all their money in intangible assets like stocks, bonds, and crypto. The solution - fine whiskey. ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏