#laravel #php #tips #webdev
When building your PHP web applications, it's important to keep your dependencies up-to-date and also to prevent installing Composer dependencies with known security vulnerabilities. This helps you to ensure that your application is secure and that you're benefiting from the latest features and bug fixes.
But it's really easy to fall behind on your dependency updates between general day-to-day development tasks. Thankfully, Composer provides us with a handy tool that you can use to get an overview of which packages you're using that have available updates.
In this Quickfire article, we're going to take a quick look at the composer outdated command to help you find outdated packages in your PHP project.
👉 Read article
@webdev_trends
When building your PHP web applications, it's important to keep your dependencies up-to-date and also to prevent installing Composer dependencies with known security vulnerabilities. This helps you to ensure that your application is secure and that you're benefiting from the latest features and bug fixes.
But it's really easy to fall behind on your dependency updates between general day-to-day development tasks. Thankfully, Composer provides us with a handy tool that you can use to get an overview of which packages you're using that have available updates.
In this Quickfire article, we're going to take a quick look at the composer outdated command to help you find outdated packages in your PHP project.
👉 Read article
@webdev_trends
#webdev #php #feature #tips #php84
New Array Functions in PHP 8.4
PHP 8.4 is set to be released in November 2024 and will introduce some handy new array functions:
✅
✅
✅
✅
In this article, we're going to take a quick look at these new functions and how you'll be able to use them in your projects running PHP 8.4.
👉 Read article
@webdev_trends
New Array Functions in PHP 8.4
PHP 8.4 is set to be released in November 2024 and will introduce some handy new array functions:
✅
array_find✅
array_find_key✅
array_any✅
array_allIn this article, we're going to take a quick look at these new functions and how you'll be able to use them in your projects running PHP 8.4.
👉 Read article
@webdev_trends
#webdev #php #feature #tips #php84
PHP 8.4 Property Hooks
PHP 8.4 will be released in November 2024 and will be bringing a cool new feature: property hooks.
In this article, we're going to take a look at what property hooks are and how you might use them in your PHP 8.4 projects.
As a side note, you might also be interested in checking out my other article which shows you the new array functions which are being added in PHP 8.4.
👉 Read article
@webdev_trends
PHP 8.4 Property Hooks
PHP 8.4 will be released in November 2024 and will be bringing a cool new feature: property hooks.
In this article, we're going to take a look at what property hooks are and how you might use them in your PHP 8.4 projects.
As a side note, you might also be interested in checking out my other article which shows you the new array functions which are being added in PHP 8.4.
👉 Read article
@webdev_trends
#webdev #php #security #tips
Security Tip: Intercepting dump() Could Expose Production!
[Tip #89] dump() interceptors in dev tools like Herd and Telescope are very helpful, but be careful you don't accidently send dump() to production!
Laravel Herd Pro and Telescope are incredibly useful dev and debugging tools, with a variety of features. One of their more useful features is the Dump Watcher, which allows you to inject
👉 Read article
@webdev_trends
Security Tip: Intercepting dump() Could Expose Production!
[Tip #89] dump() interceptors in dev tools like Herd and Telescope are very helpful, but be careful you don't accidently send dump() to production!
Laravel Herd Pro and Telescope are incredibly useful dev and debugging tools, with a variety of features. One of their more useful features is the Dump Watcher, which allows you to inject
dump(...) anywhere in your code and then see the output within their own dump viewer - rather than on the page or in the terminal.👉 Read article
@webdev_trends
#webdev #laravel #ddd #php #restapi
"domain-driven laravel" build great systems that are scalable and powerful
In the ever-expanding universe of software development, creating scalable, maintainable, and powerful systems is no small feat. With so many frameworks, tools, and patterns vying for your attention, it's easy to feel like a lost space traveler, orbiting without direction. But fear not, fellow developer! 🌌 The Domain-Driven Laravel repository is here to guide you through the cosmos of RESTful API development, using the Domain-Driven Design (DDD) methodology.
👉 Read article
@webdev_trends
"domain-driven laravel" build great systems that are scalable and powerful
In the ever-expanding universe of software development, creating scalable, maintainable, and powerful systems is no small feat. With so many frameworks, tools, and patterns vying for your attention, it's easy to feel like a lost space traveler, orbiting without direction. But fear not, fellow developer! 🌌 The Domain-Driven Laravel repository is here to guide you through the cosmos of RESTful API development, using the Domain-Driven Design (DDD) methodology.
👉 Read article
@webdev_trends
#webdev #symfony #php
Using Symfony LoginFormAuthenticator to Solve Null Email
When integrating the ‘remember me’ feature in a Symfony 6 application, developers may encounter a critical issue where the ‘email’ field in
The problem may be traced back to various configuration settings or the way the form data is handled and submitted. Properly diagnosing this issue involves checking the Symfony security configurations and ensuring the form inputs are correctly managed. This introduction sets the stage for a deeper exploration into the common pitfalls and solutions related to Symfony’s security mechanisms.
👉 Read article
@webdev_trends
Using Symfony LoginFormAuthenticator to Solve Null Email
When integrating the ‘remember me’ feature in a Symfony 6 application, developers may encounter a critical issue where the ‘email’ field in
LoginFormAuthenticator is unexpectedly null. This can lead to failures during user authentication, regardless of whether the ‘remember me’ checkbox is checked or not. The error specifically arises during the construction of the UserBadge object.The problem may be traced back to various configuration settings or the way the form data is handled and submitted. Properly diagnosing this issue involves checking the Symfony security configurations and ensuring the form inputs are correctly managed. This introduction sets the stage for a deeper exploration into the common pitfalls and solutions related to Symfony’s security mechanisms.
👉 Read article
@webdev_trends
#webdev #symfony #php
Symfony AutowireIterator
I will demonstrate how to automatically and easily inject services with the same interface into your Symfony projects, without even needing to use
For this example, I’ll use an SMS sending scenario. Keep in mind that the following code is just a sample.
Let’s start by setting up the interface.
👉 Read article
@webdev_trends
Symfony AutowireIterator
I will demonstrate how to automatically and easily inject services with the same interface into your Symfony projects, without even needing to use
services.yaml.For this example, I’ll use an SMS sending scenario. Keep in mind that the following code is just a sample.
Let’s start by setting up the interface.
👉 Read article
@webdev_trends
#webdev #jwt #security
JWT at a glance
Many of us heard about JWT and while JWT has become a buzzword in tech circles, it's frequently misunderstood or confused with OAuth 2.0 and OIDC, particularly among those who use it without fully grasping its intricacies. Mixing up JWT with OAuth 2.0 and OIDC is like tossing different fruits into a blender and calling it all "smoothie." It's especially messy when folks treat these tech tools like magic wands, waving them around without peeking under the hood.
What is JWT? By itself is a small piece of data that contains information about someone or something. It's like a small container which is able to keep and transfer information between two different destinations. Or it's like a digital badge that proves who the user is and what this user is authorized to do.
👉 Read article
@webdev_trends
JWT at a glance
Many of us heard about JWT and while JWT has become a buzzword in tech circles, it's frequently misunderstood or confused with OAuth 2.0 and OIDC, particularly among those who use it without fully grasping its intricacies. Mixing up JWT with OAuth 2.0 and OIDC is like tossing different fruits into a blender and calling it all "smoothie." It's especially messy when folks treat these tech tools like magic wands, waving them around without peeking under the hood.
What is JWT? By itself is a small piece of data that contains information about someone or something. It's like a small container which is able to keep and transfer information between two different destinations. Or it's like a digital badge that proves who the user is and what this user is authorized to do.
👉 Read article
@webdev_trends
#webdev #php
State of Generics and Collections
Generics have been on the list of wanted features for a long time by numerous PHP developers. The topic is often brought up in "What's New in PHP?" talks as well during Q&A.
In this article we will be exploring the different approaches, and what their current state is.
👉 Read article
@webdev_trends
State of Generics and Collections
Generics have been on the list of wanted features for a long time by numerous PHP developers. The topic is often brought up in "What's New in PHP?" talks as well during Q&A.
In this article we will be exploring the different approaches, and what their current state is.
👉 Read article
@webdev_trends
#webdev #WordPress #wp #php
Send email from WordPress the right way
Sending emails is a critical feature for many WordPress websites, whether it’s for account confirmations, notifications, or customized alerts. While many developers might default to using PHP’s
👉 Read article
@webdev_trends
Send email from WordPress the right way
Sending emails is a critical feature for many WordPress websites, whether it’s for account confirmations, notifications, or customized alerts. While many developers might default to using PHP’s
mail() function, WordPress offers more robust and reliable alternatives. Let's explore the best practices for sending both plaintext and HTML emails within WordPress.👉 Read article
@webdev_trends
#webdev #php #php84 #feature
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
👉 Read article
@webdev_trends
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.👉 Read article
@webdev_trends
#webdev #laravel #php
Mastering Laravel Artisan Commands: Optimize, Tinker, and More
Laravel's Artisan command-line interface is a powerful tool that can significantly enhance your development workflow. Whether you’re clearing caches, optimizing performance, or creating custom commands, understanding and utilizing these commands effectively can streamline your development process and make it more efficient. 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.
👉 Read article
@webdev_trends
Mastering Laravel Artisan Commands: Optimize, Tinker, and More
Laravel's Artisan command-line interface is a powerful tool that can significantly enhance your development workflow. Whether you’re clearing caches, optimizing performance, or creating custom commands, understanding and utilizing these commands effectively can streamline your development process and make it more efficient. 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.
👉 Read article
@webdev_trends
#webdev #laravel #php
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.
Once you understand that facades are a convenient way to access underlying services in Laravel's service container, you can easily track the service behind ANY facade. Each facade provides a
👉 Read article
@webdev_trends
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.
Once you understand that facades are a convenient way to access underlying services in Laravel's service container, you can easily track the service behind ANY facade. Each facade provides a
getFacadeAccessor() method that points to the registered service name.👉 Read article
@webdev_trends
#webdev #HTML #jQuery #tutorial
How to Convert HTML to Excel File using jQuery
Hello, web developers! In this article, we'll see how to convert HTML to Excel using jQuery. Here, we'll use the jQuery plugin to convert HTML to an Excel file. You can click on the download button and Excel file download from the HTML.
Recently, I needed to convert an HTML table to an Excel file for a project I was working on. After some research and experimentation, I found an easy way to do it using jQuery and a library called SheetJS. Here's a step-by-step guide on how I did it.
SheetJS Community Edition offers battle-tested open-source solutions for extracting useful data from almost any complex spreadsheet and generating new spreadsheets.
👉 Read article
@webdev_trends
How to Convert HTML to Excel File using jQuery
Hello, web developers! In this article, we'll see how to convert HTML to Excel using jQuery. Here, we'll use the jQuery plugin to convert HTML to an Excel file. You can click on the download button and Excel file download from the HTML.
Recently, I needed to convert an HTML table to an Excel file for a project I was working on. After some research and experimentation, I found an easy way to do it using jQuery and a library called SheetJS. Here's a step-by-step guide on how I did it.
SheetJS Community Edition offers battle-tested open-source solutions for extracting useful data from almost any complex spreadsheet and generating new spreadsheets.
👉 Read article
@webdev_trends
#webdev #react #javascript #typescript
How to Build a React Hook That Handles Sequential Requests
When you need to respond quickly to user actions and fetch the latest data from the backend, you might require a React Hook that supports sequential requests. This hook can cancel previous requests if they are still ongoing and only return the most recent data. This not only improves performance but also enhances the user experience.
👉 Read article
@webdev_trends
How to Build a React Hook That Handles Sequential Requests
When you need to respond quickly to user actions and fetch the latest data from the backend, you might require a React Hook that supports sequential requests. This hook can cancel previous requests if they are still ongoing and only return the most recent data. This not only improves performance but also enhances the user experience.
👉 Read article
@webdev_trends
#webdev #javascript
The Differences Between `export default xx` and `export {xx as default}`
A comprehensive guide to understanding the differences between export default and named exports in JavaScript
👉 Read article
@webdev_trends
The Differences Between `export default xx` and `export {xx as default}`
A comprehensive guide to understanding the differences between export default and named exports in JavaScript
👉 Read article
@webdev_trends
#webdev #javascript #tutorial
🌍💻 Unleashing the Power of the Navigator Object in JavaScript
Have you ever wondered how websites know so much about your browser and device? 🤔 Meet the
👉 Read article
@webdev_trends
🌍💻 Unleashing the Power of the Navigator Object in JavaScript
Have you ever wondered how websites know so much about your browser and device? 🤔 Meet the
navigator object in JavaScript—a versatile tool that acts as a bridge between your web application and the user’s environment. Whether you're looking to gather insights about the user's browser or tap into device-specific features, navigator is your go-to resource. In this post, we’ll dive deep into the essential properties and methods of the navigator object, revealing how it can help you build more dynamic, personalized, and interactive web experiences.👉 Read article
@webdev_trends
#webdev #javascript #react #redux #tutorial
The Evolution of React State Management: From Local to Async
This article presents an overview of how State was managed in React Applications thousands of years ago when Class Components dominated the world and functional components were just a bold idea, until recent times, when a new paradigm of State has emerged: Async State.
👉 Read article
@webdev_trends
The Evolution of React State Management: From Local to Async
This article presents an overview of how State was managed in React Applications thousands of years ago when Class Components dominated the world and functional components were just a bold idea, until recent times, when a new paradigm of State has emerged: Async State.
👉 Read article
@webdev_trends
#webdev #javascript #beginners #tutorial
Optional Chaining and Nullish Coalescing
Let’s say you have an object representing a user, and you want to access their address.
👉 Read article
@webdev_trends
Optional Chaining and Nullish Coalescing
Let’s say you have an object representing a user, and you want to access their address.
👉 Read article
@webdev_trends
#webdev #javascript #blockchain #tutorial
Let's Build a Blockchain with JavaScript! A Beginner's Guide
Ever heard of Bitcoin, Ethereum, or NFTs? These are all powered by blockchain technology, a revolutionary way to manage and share information securely and transparently.
But how does it work? It might seem complicated at first, but trust me, it's not as intimidating as it sounds! This guide will make blockchain development feel accessible, even if you're just starting out.
👉 Read article
@webdev_trends
Let's Build a Blockchain with JavaScript! A Beginner's Guide
Ever heard of Bitcoin, Ethereum, or NFTs? These are all powered by blockchain technology, a revolutionary way to manage and share information securely and transparently.
But how does it work? It might seem complicated at first, but trust me, it's not as intimidating as it sounds! This guide will make blockchain development feel accessible, even if you're just starting out.
👉 Read article
@webdev_trends
#webdev #javascript #tutorial
Understanding Tree Shaking in JavaScript: A Quick Guide
As modern web applications grow in complexity, so does the need to optimize their performance. One powerful technique that has gained popularity in recent years is tree shaking. If you’ve heard the term but aren’t quite sure what it means or how it works, this post is for you.
👉 Read article
@webdev_trends
Understanding Tree Shaking in JavaScript: A Quick Guide
As modern web applications grow in complexity, so does the need to optimize their performance. One powerful technique that has gained popularity in recent years is tree shaking. If you’ve heard the term but aren’t quite sure what it means or how it works, this post is for you.
👉 Read article
@webdev_trends