#webdev #php #mvc #guide
Building a Minimal MVC Application in Vanilla PHP: A Step-by-Step Guide
Creating a minimal MVC architecture from scratch can be overwhelming. However, it is one of the most effective ways to understand the core concepts of any framework. In this article, we will create a basic and functional bookstore application with some core functionalities. This project is designed to be minimal and focused on helping you grasp the core concepts of MVC architecture without the overhead of complex features.
By following this guide, you will have a straightforward application that facilitates users to add, view, update, and delete books from the application. This tutorial will equip you with the knowledge to create a clean and efficient MVC structure in vanilla PHP. Let’s dive into coding!
👉 Read article
@webdev_trends
Building a Minimal MVC Application in Vanilla PHP: A Step-by-Step Guide
Creating a minimal MVC architecture from scratch can be overwhelming. However, it is one of the most effective ways to understand the core concepts of any framework. In this article, we will create a basic and functional bookstore application with some core functionalities. This project is designed to be minimal and focused on helping you grasp the core concepts of MVC architecture without the overhead of complex features.
By following this guide, you will have a straightforward application that facilitates users to add, view, update, and delete books from the application. This tutorial will equip you with the knowledge to create a clean and efficient MVC structure in vanilla PHP. Let’s dive into coding!
👉 Read article
@webdev_trends
#webdev #php #ddd #guide
Practical Domain Driven Design
Theory can lead to experience by practice. However theory without practice will not give us real understanding of how things are done.
Therefore we need to try things out, we need to get our hands dirty, if we want to understand fully and become confident in what we do.
The same is with Domain Driven Design (DDD), we may read multiple blogs, watch videos, or even go to workshops, yet those, without our own practice will not give us real understanding.
👉 Read article
@webdev_trends
Practical Domain Driven Design
Theory can lead to experience by practice. However theory without practice will not give us real understanding of how things are done.
Therefore we need to try things out, we need to get our hands dirty, if we want to understand fully and become confident in what we do.
The same is with Domain Driven Design (DDD), we may read multiple blogs, watch videos, or even go to workshops, yet those, without our own practice will not give us real understanding.
👉 Read article
@webdev_trends
#webdev #php #ddd #guide
Streamlining Database Queries with Laravel Query Scopes
Theory can lead to experience by practice. However theory without Laravel’s query scopes provide an elegant way to encapsulate common query constraints, making your database queries more readable, reusable, and maintainable. Let’s dive into how you can leverage query scopes in your Laravel applications.
👉 Read article
@webdev_trends
Streamlining Database Queries with Laravel Query Scopes
Theory can lead to experience by practice. However theory without Laravel’s query scopes provide an elegant way to encapsulate common query constraints, making your database queries more readable, reusable, and maintainable. Let’s dive into how you can leverage query scopes in your Laravel applications.
👉 Read article
@webdev_trends
#webdev #php
PHP Design Architectures: Frameworks vs. No Framework
PHP has been a foundational language for web development for over two decades, widely recognized for its simplicity, flexibility, and robust community support. Despite the emergence of newer languages and technologies, PHP remains a dominant choice for web developers due to its adaptability and continuous evolution. One of the critical decisions PHP developers face is whether to use a framework or opt for a framework-less (vanilla PHP) approach.
👉 Read article
@webdev_trends
PHP Design Architectures: Frameworks vs. No Framework
PHP has been a foundational language for web development for over two decades, widely recognized for its simplicity, flexibility, and robust community support. Despite the emergence of newer languages and technologies, PHP remains a dominant choice for web developers due to its adaptability and continuous evolution. One of the critical decisions PHP developers face is whether to use a framework or opt for a framework-less (vanilla PHP) approach.
👉 Read article
@webdev_trends
#webdev #laravel #php #DI
Mastering Dependency Injection with Laravel’s Service Container
Laravel’s service container is a powerful tool for managing class dependencies and performing dependency injection. It’s at the heart of many Laravel features and can significantly improve your application’s flexibility and testability. Let’s explore how to leverage the service container in your Laravel applications.
👉 Read article
@webdev_trends
Mastering Dependency Injection with Laravel’s Service Container
Laravel’s service container is a powerful tool for managing class dependencies and performing dependency injection. It’s at the heart of many Laravel features and can significantly improve your application’s flexibility and testability. Let’s explore how to leverage the service container in your Laravel applications.
👉 Read article
@webdev_trends
#webdev #php #scraping
How to Solve reCAPTCHA with Puppeteer in PHP for Web Scraping
Ever hit a wall with reCAPTCHA while scraping data? I’ve been there too. Those CAPTCHA challenges can turn a simple scraping task into a major hurdle. But don’t worry — I’ve got a solution that’ll help you breeze past those barriers.
In this blog, I’ll lead you through using Puppeteer, a powerful Node.js library, to tackle reCAPTCHA challenges. We’ll then integrate this with PHP to make your web scraping tasks smoother and more efficient. Ready to tackle reCAPTCHA and get your data seamlessly? Let’s get in!
👉 Read article
@webdev_trends
How to Solve reCAPTCHA with Puppeteer in PHP for Web Scraping
Ever hit a wall with reCAPTCHA while scraping data? I’ve been there too. Those CAPTCHA challenges can turn a simple scraping task into a major hurdle. But don’t worry — I’ve got a solution that’ll help you breeze past those barriers.
In this blog, I’ll lead you through using Puppeteer, a powerful Node.js library, to tackle reCAPTCHA challenges. We’ll then integrate this with PHP to make your web scraping tasks smoother and more efficient. Ready to tackle reCAPTCHA and get your data seamlessly? Let’s get in!
👉 Read article
@webdev_trends
#webdev #php
10 PHP Knowledge You Didn’t Know You Needed
Hypertext Preprocessor, or PHP, is one of the most popular web scripting languages. Although many developers know the fundamentals, there are greater levels of PHP knowledge that can greatly improve your productivity and development abilities. We’ll explore ten lesser-known PHP hacks, tidbits, and strategies in this blog post to help you become a better coder.
👉 Read article
@webdev_trends
10 PHP Knowledge You Didn’t Know You Needed
Hypertext Preprocessor, or PHP, is one of the most popular web scripting languages. Although many developers know the fundamentals, there are greater levels of PHP knowledge that can greatly improve your productivity and development abilities. We’ll explore ten lesser-known PHP hacks, tidbits, and strategies in this blog post to help you become a better coder.
👉 Read article
@webdev_trends
#webdev #laravel #laravel11 #php
How to Generate PDF with Chart in Laravel 11
Hello, laravel web developers! In this article, we'll see how to generate a PDF file with the chart in laravel 11. Here, we'll create a PDF file and add the chart to the PDF file in laravel 11. This post focuses on how to display graphs in PDFs using Laravel 11.
We'll explore how to integrate charts with Laravel PDF generation. If you're looking for an example of generating PDFs with graphs in Laravel, you're in the right place.
You can easily create PDF files with images and charts in Laravel 9, 10, and 11.
👉 Read article
@webdev_trends
How to Generate PDF with Chart in Laravel 11
Hello, laravel web developers! In this article, we'll see how to generate a PDF file with the chart in laravel 11. Here, we'll create a PDF file and add the chart to the PDF file in laravel 11. This post focuses on how to display graphs in PDFs using Laravel 11.
We'll explore how to integrate charts with Laravel PDF generation. If you're looking for an example of generating PDFs with graphs in Laravel, you're in the right place.
You can easily create PDF files with images and charts in Laravel 9, 10, and 11.
👉 Read article
@webdev_trends
#webdev #laravel #php
Laracon US 2024: Laravel Cloud, Inertia v2, VS Code and Laravel 11 "Minor" Features
After watching the Laracon US live stream on YouTube last night, I compiled a "quick overview" of 4 BIG things Taylor Otwell introduced on stage, with screenshots and code examples I managed to capture.
So, not in the order Taylor presented them, but in the order of importance, in my opinion, let's go.
👉 Read article
@webdev_trends
Laracon US 2024: Laravel Cloud, Inertia v2, VS Code and Laravel 11 "Minor" Features
After watching the Laracon US live stream on YouTube last night, I compiled a "quick overview" of 4 BIG things Taylor Otwell introduced on stage, with screenshots and code examples I managed to capture.
So, not in the order Taylor presented them, but in the order of importance, in my opinion, let's go.
👉 Read article
@webdev_trends
#webdev #pest3 #php #testing
A Guide to Architecture Testing Presets in Pest 3
If you’re anything like me, you’re always looking for ways to improve your code quality and maintainability (but not at the expense of your ability to ship, right?). Writing architecture tests with Pest 2 is one of the ways to do it. But now, Architecture Testing Presets is Pest 3 will make it effortless.
👉 Read article
@webdev_trends
A Guide to Architecture Testing Presets in Pest 3
If you’re anything like me, you’re always looking for ways to improve your code quality and maintainability (but not at the expense of your ability to ship, right?). Writing architecture tests with Pest 2 is one of the ways to do it. But now, Architecture Testing Presets is Pest 3 will make it effortless.
👉 Read article
@webdev_trends
#webdev #html #css #frontend
The Dialog Element with Entry and Exit Animations
Una Kravets blogged the other day that animating entry effects are now supported in the latest stable version of all major browsers. The new cool way to do it, that is. We’ve long had trickery like applying a
👉 Read article
@webdev_trends
The Dialog Element with Entry and Exit Animations
Una Kravets blogged the other day that animating entry effects are now supported in the latest stable version of all major browsers. The new cool way to do it, that is. We’ve long had trickery like applying a
@ keyframe animation with a to frame that would behave like an “entry effect”, but it was a bit awkward and didn’t work in all situations. Specifically one like using the new and very useful <dialog> element.👉 Read article
@webdev_trends
#webdev #html #css #frontend
What Skills Should You Focus on as Junior Web Developer in 2024?
Let’s say Junior Web Developer means you’re either just starting out learning, you’ve got a job but are early in your career, or somewhere between those. Our goal with this guide is to give you things to learn that we believe will serve you well. That is, they will make you a better developer and ideally a more employable and promotable employee.
👉 Read article
@webdev_trends
What Skills Should You Focus on as Junior Web Developer in 2024?
Let’s say Junior Web Developer means you’re either just starting out learning, you’ve got a job but are early in your career, or somewhere between those. Our goal with this guide is to give you things to learn that we believe will serve you well. That is, they will make you a better developer and ideally a more employable and promotable employee.
👉 Read article
@webdev_trends
#webdev #ci
How I automate electron-to-chromium updates
For the past 6 or so years I’ve been maintaining the electron-to-chromium package and I realise I never wrote a blog post about it. Electron-to-chromium is an NPM package that maps Electron versions to Chromium versions so you can input e.g. Electron 32 and get back Chrome 128.
This is useful because a lot of tools will happily take “Chrome >= 128” as a configuration option for e.g. transpilation and minification, but it’s pretty annoying to look up the chromium version of your electron release each time.
👉 Read article
@webdev_trends
How I automate electron-to-chromium updates
For the past 6 or so years I’ve been maintaining the electron-to-chromium package and I realise I never wrote a blog post about it. Electron-to-chromium is an NPM package that maps Electron versions to Chromium versions so you can input e.g. Electron 32 and get back Chrome 128.
This is useful because a lot of tools will happily take “Chrome >= 128” as a configuration option for e.g. transpilation and minification, but it’s pretty annoying to look up the chromium version of your electron release each time.
👉 Read article
@webdev_trends
#webdev #laravel #php #backend
How to create a scheduled Task in Laravel ?
Hello everyone! Today, I’m going to walk you through the process of creating a scheduled task in Laravel. We’ll take the example of sending a daily marketing email to users.
👉 Read article
@webdev_trends
How to create a scheduled Task in Laravel ?
Hello everyone! Today, I’m going to walk you through the process of creating a scheduled task in Laravel. We’ll take the example of sending a daily marketing email to users.
👉 Read article
@webdev_trends
#webdev #laravel #php #backend #firebase
How to Integrate Firebase with Laravel 11?
Laravel and Firebase are two powerful tools that can significantly enhance the development of modern web applications. Laravel, a popular PHP framework, provides a robust foundation for building scalable and maintainable applications. Firebase, a backend-as-a-service (BaaS) platform, offers a suite of features that simplify common development tasks, such as authentication, real-time database, cloud storage, and more.
By integrating Firebase into a Laravel project, developers can leverage the benefits of both frameworks, resulting in more efficient, scalable, and feature-rich applications. This article will guide you through the process of integrating Firebase into a Laravel 11 application, providing step-by-step instructions and code examples.
👉 Read article
@webdev_trends
How to Integrate Firebase with Laravel 11?
Laravel and Firebase are two powerful tools that can significantly enhance the development of modern web applications. Laravel, a popular PHP framework, provides a robust foundation for building scalable and maintainable applications. Firebase, a backend-as-a-service (BaaS) platform, offers a suite of features that simplify common development tasks, such as authentication, real-time database, cloud storage, and more.
By integrating Firebase into a Laravel project, developers can leverage the benefits of both frameworks, resulting in more efficient, scalable, and feature-rich applications. This article will guide you through the process of integrating Firebase into a Laravel 11 application, providing step-by-step instructions and code examples.
👉 Read article
@webdev_trends
#webdev #php #backend #beginners
Why Some Developers Prefer to Manually Configure PHP Environments Instead of Using Deployment Tools
In modern software development, PHP is a widely used programming language. However, for many developers, setting up a PHP environment is no easy task. Manually configuring a PHP environment often involves multiple complex steps, including installing the PHP interpreter, configuring a web server (such as Apache or Nginx), setting up a database (such as MySQL or PostgreSQL), and managing various extension modules. These steps are not only time-consuming but also prone to errors, making it a nightmare, especially for novice developers.
👉 Read article
@webdev_trends
Why Some Developers Prefer to Manually Configure PHP Environments Instead of Using Deployment Tools
In modern software development, PHP is a widely used programming language. However, for many developers, setting up a PHP environment is no easy task. Manually configuring a PHP environment often involves multiple complex steps, including installing the PHP interpreter, configuring a web server (such as Apache or Nginx), setting up a database (such as MySQL or PostgreSQL), and managing various extension modules. These steps are not only time-consuming but also prone to errors, making it a nightmare, especially for novice developers.
👉 Read article
@webdev_trends
#webdev #php #ai #a11y #beginners
How to auto-generate the image Alt-Text using AI and Transformers PHP
In this article, we’ll walk you through generating alternative text (alt text) from an image using the TransformersPHP library.
👉 Read article
@webdev_trends
How to auto-generate the image Alt-Text using AI and Transformers PHP
In this article, we’ll walk you through generating alternative text (alt text) from an image using the TransformersPHP library.
Alt text is crucial for accessibility and SEO, providing a textual description of images for screen readers and search engines.
👉 Read article
@webdev_trends
#webdev #php #ai #llm
How to auto-generate the image Alt-Text using AI and Transformers PHP Library for Working with LLM, Agents and RAG
I kicked of a small PHP package, with the aim of making it easy to work with LLMs, Agents and RAG in PHP.
It's just got a single method/class just now :) (release fast!?)
Wondering if it is something that sound's interesting to the PHP community. Why should Python guys have all the fun!
👉 Read article
@webdev_trends
How to auto-generate the image Alt-Text using AI and Transformers PHP Library for Working with LLM, Agents and RAG
I kicked of a small PHP package, with the aim of making it easy to work with LLMs, Agents and RAG in PHP.
It's just got a single method/class just now :) (release fast!?)
Wondering if it is something that sound's interesting to the PHP community. Why should Python guys have all the fun!
👉 Read article
@webdev_trends
#webdev #php #composer #backend
Why do you need to run
Dependencies or libraries are essentially code or programs written by someone else that you use in your project to accomplish specific tasks without having to write everything from scratch.
👉 Read article
@webdev_trends
Why do you need to run
composer install?Dependencies or libraries are essentially code or programs written by someone else that you use in your project to accomplish specific tasks without having to write everything from scratch.
👉 Read article
@webdev_trends
#webdev #laravel #php #backend
Streamlining Email Handling with Laravel Mailables
Laravel Mailables provide an expressive, object-oriented approach to composing emails in your applications. This feature simplifies the process of creating and sending emails, making your code more readable and maintainable. Let’s explore how to leverage Mailables effectively in your Laravel projects.
👉 Read article
@webdev_trends
Streamlining Email Handling with Laravel Mailables
Laravel Mailables provide an expressive, object-oriented approach to composing emails in your applications. This feature simplifies the process of creating and sending emails, making your code more readable and maintainable. Let’s explore how to leverage Mailables effectively in your Laravel projects.
👉 Read article
@webdev_trends
#webdev #laravel #php #db #database #backend
Bootstrapping Your Laravel App with Database Seeding
Database seeding is a crucial feature in Laravel that allows developers to populate their database with initial or test data. This process is essential for creating consistent development environments, setting up demo data, and facilitating robust testing. Let’s dive into how you can leverage Laravel’s seeding capabilities effectively.
👉 Read article
@webdev_trends
Bootstrapping Your Laravel App with Database Seeding
Database seeding is a crucial feature in Laravel that allows developers to populate their database with initial or test data. This process is essential for creating consistent development environments, setting up demo data, and facilitating robust testing. Let’s dive into how you can leverage Laravel’s seeding capabilities effectively.
👉 Read article
@webdev_trends