PHP Weekly - PHPWeekly August 8th 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 Olympics week we hope everyone's enjoying the summer. This week in our newsletter we have bug fix updates from PHP 8.2, 8.4 and Laravel 11. In Podcasts we have new episodes from Laravel news on the state of Laravel creator spotlights and building SSH apps. Over at No Compromises they talk about what it means when someone says your app is slow and how to get more information from that initial feedback. Developer Tea focuses on Outcomes by resetting your base, while over at the Changelog they chat about the latest Slack overflow survey and its concerning results on the percentage of unhappy programmers. Finally in the Reading section we have guides in Mastering interactive UIs and SOLID principles in Laravel. 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


PHP Creational Patterns: Factory
Today I will share with you one of most used design patterns specially inside PHP applications and frameworks, this pattern is called factory and is widely used.

PHP 8.4: Release Date and Features, August 2024
A few months before the final release — I want to give a second overview to PHP 8.4. The following blog post will address changes to PHP 8.4 that are not addressed in the first blog and Property Hooks.

Understanding Policies in Laravel
This post will focus more on Laravel Policies, their setup, how they are used, and when to use them for what type of situation.

Unlocking the Foreign Function Interface (FFI) in PHP
FFI opens the door for PHP to utilize existing C libraries, make system calls, and perform high-performance tasks that were previously unavailable.

Enhancing User Experience with Livewire’s wire:transition.scale
In this post, we’ll explore how to use this directive to add smooth scaling transitions to your Livewire components.

Efficiently Handling Large Data Retrievals in PHP: Solving Memory Limit Issues
In specific cases, retrieving and processing large datasets from a source can present significant challenges. The volume of data can be so large that handling it efficiently becomes crucial to maintaining the application’s performance.

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


Build SSH Apps with PHP and Laravel Prompts
The ssh-php project by Sam Carré is a ridiculously simple starting point for building Text-based User Interfaces (TUIs) in PHP over SSH.

PHP Iterators for walking through data structures – FastTips
In this tutorial, we will explore PHP iterators and how to use them for walking through various data structures.

How to Solve 'Class NumberFormatter not found' in Laravel
The error Class 'NumberFormatter' not found in Laravel typically occurs when the intl extension is not installed or enabled in your PHP environment. The NumberFormatter class is part of the intl (Internationalization) extension.

How to Hide Out-of-Stock Products on Your WordPress Website
In this article, we'll walk you through a simple method to hide out-of-stock products using a custom code snippet added to your functions.php file.

LAMP docker installation automation script in bash
In order to automate the process of installing all web applications required to run a LAMP server, the following script is writing for that exact purpose.

How to Create a Test Case in Laravel Using Pest
In this blog post, we'll walk through creating a test case in Laravel using Pest, focusing on an example where we test the creation of an Employer record, including uploading a logo.

Setting Up Authentication in Laravel
This guide will walk you through setting up authentication in a Laravel application.

Laravel 11 Find Nearest Location By Latitude and Longitude
Here, we’ll learn to get the nearest location using latitude and longitude in laravel 11. You can give latitude and longitude and find the location in laravel 11.

News and Announcements


PHP 8.4.0 Alpha 4 available for testing
The PHP team is pleased to announce the second testing release of PHP 8.4.0, Alpha 4. This continues the PHP 8.4 release cycle, the rough outline of which is specified in the PHP Wiki.

PHP 8.2.22 & PHP 8.3.10 Released!
The PHP development team announces the immediate availability of PHP 8.3.10and PHP 8.2.22. This is a bug fix release.

Use Laravel's Built-in SetUp Hooks for Application Test Traits
When writing feature tests in Laravel, the base TestCase class inherits the framework's TestCase class. In this class, is the base setUp template is called in PHPUnit.

Assert the Exact JSON Structure of a Response in Laravel 11.19
The Laravel team released v11.19 this week, including asserting the exact JSON structure, a whereNone query builder method, a Number::trim() method, HTML assertion convenience methods, and more.

Maska is a Simple Zero-dependency Input Mask Library
Maska is a simple, zero-dependency input mask for JS, Vue, Svelete, and Alpine.js. Let's say you want to mask a phone number format; you could use the following HTML to format the phone number according to the format +1 ### ###-####

A Week of Symfony #918 (29 July - 4 August 2024)
This week, Symfony development activity was calmer than usual because of the summer holidays. In addition to some fixes and tweaks in existing features, the community proposed new features for upcoming Symfony versions such as a Week number constraint and improvements in AssetMapper code, and in the HtmlDumper links.

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


Laravel News Podcast: State of Laravel, creator spotlights, and building SSH apps with PHP
Jake and Michael discuss all the latest Laravel releases, tutorials, and happenings in the community.

The Stack Overflow: Unpacking the 2024 Developer Survey results
Ryan and Eira talk with Stack Overflow senior research analyst Erin Yepis about the results of our 2024 Developer Survey, which polled more than 65,000 developers about the tools they use, the technologies they want to learn, their experiences at work, and much more.

No Compromises Podcast: What does it mean if someone says your app is slow?
The dreaded bug report: this app is slow. Ok, but what is slow? I have so many questions! In today's episode, we discuss our approach to getting more information out of that initial bug report, and a methodical approach to locate and quantify the slowness.

Software Engineering Radio: SE Radio 627: Chuck Weindorf on Leaders and Software Engineers
Chuck Weindorf, a retired IT director and chief engineer with nearly 40 years’ experience in software engineering, joins host Jeff Doolittle for a conversation about the concepts in Chuck’s book, Leaders & Software Engineers.

Developer Tea: Focus On Outcomes By Resetting Your Base
In this episode we talk about the concept of "resetting your base" - moving in a direction you don't necessarily want to go in order to achieve better outcomes in the long run.

Shoptalk Show: Getting Comfortable with the Struggle and Vibe Driven Development
Chris brings some blog posts to talk about including being comfortable with the struggle of developer life, Cloudflare Workers + monorepos, vibe driven development, and questions about database migrations, and whether we think AI free blogs are going to be a rarity in the future?

WP Builds: 383 – No Script Show, Episode 14 – The Frontend Divide: UX Designers vs JavaScript Specialists
In episode 14 of “The No Script Show,” Nathan Wrigley and David Waumsley discuss the division between UX designers and JavaScript specialists, focusing on Chris Coyier’s article “The Great Divide.”

The PHP Roundtable: 092: PHPRoundtable August 2024 - Event Sourcing
Daniel Coilbourne, Chris Morrell, and Shawn McCool will be joining forces with our regular panelists, Eric Van Johnson, TJ Miller, Sara Golemon, and Joe Ferguson. Discover the ins and outs of Event Sourcing: what it is, why it matters, and how to master its implementation in your projects.

Syntax: Should Your Website Work Without JavaScript?
Scott and Wes discuss whether websites should work without JavaScript enabled. They cover reasons pages may fail, progressive enhancement, and ways to improve the experience when JavaScript is not available.

The Changelog: 80% of professional programmers are unhappy
The latest Stack Overflow Developer Survey has some concerning results, Joeri Sebrechts helps you do plain vanilla web dev, MIT’s “missing semester” course looks pretty amazing, a dive into the fascinating history of CSV & a tool to get request analytics from the nginx access logs.

Reading and Viewing


Mastering Interactive UIs with Livewire’s wire:click.prevent
In this post, we’ll explore how to use this directive to create smooth, JavaScript-free interactivity in your Laravel applications.

Boost your app’s speed with Laravel Caching
In this blog post, we’ll explore how to use Laravel’s Cache::remember() method to store and retrieve data efficiently, helping you reduce database load and improve performance.

What’s New in Laravel 11: A Comprehensive Guide for Developers
In this guide, we will delve into every major update and feature in Laravel 11, ensuring that your development practices are up-to-date and optimized for performance.

Mastering Laravel Macros and Keep Your Code Clean
Learn How to Extend Laravel’s Core Classes with Custom Methods for Cleaner, More Maintainable Code.

Extended Symfony project structure.
While frameworks usually provide you with a prebuilt folder setup to make your life easier so you can start developing immediately, a real project architecture requires a more flexible and sufficient structure, with clear responsibility segregation for better control.

Mastering SOLID Principles in Laravel
Step-by-Step Guide to Writing Cleaner and More Efficient Code.

Understanding Relationships in Salesforce and working with SOQL in Laravel Eloquent
In Salesforce Object Query Language (SOQL), joins are handled differently compared to traditional SQL. SOQL does not support SQL-like joins directly; instead, it uses a concept known as relationship queries.

Interesting Projects, Tools and Libraries


romanzipp/laravel-model-doc
Laravel Model PHPDoc Generator.

jeffersonsimaogoncalves/cakephp-notifier
Notifier plugin for CakePHP.

shakaran/admin-theme-bundle
Admin Theme based on the AdminLTE Template for easy integration into symfony.

nativephp/electron
Electron wrapper for the NativePHP framework.

orchestra/canvas
Code Generators for Laravel Applications and Packages.

designmynight/laravel-oauth-introspect-middleware
Laravel package for letting a resource owner verify OAuth2 access tokens with a remote authorization server.

mikestecker/craft-videoembedder
Craft plugin to generate an embed URL from a YouTube or Vimeo URL.

chrisullyott/php-log
A dead-simple logger, storing data in JSON.

dwnload/wp-settings-api
A PHP class abstraction that removes all the headaches of the WordPress settings API under the hood and builds a nice options panel on the fly.

sinri/smallphpmailer
PHPMailer is a full-featured email creation and transfer class for PHP. This is a thinned version.

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

PHPWeekly July 11th 2024

Thursday, July 11, 2024

Curated news all about PHP. Here's the latest edition Is this email not displaying correctly? View it in your browser. PHP Weekly 11th July 2024 Hi everyone, Halfway through the year and also

PHPWeekly July 4th 2024

Thursday, July 4, 2024

Curated news all about PHP. Here's the latest edition Is this email not displaying correctly? View it in your browser. PHP Weekly 4th July 2024 Hi everyone, This week's newsletter contains

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