Create a DateTime from a Timestamp With this New Method Coming to PHP 8.4
Mastering Stateful and Stateless PHP Web Application Architecture; Asserting a JSON Response Structure in Laravel; and An operation-oriented API using PHP and Symfony.
💼 Find your next job as a PHP Developer at jobsphp.com.
A job offer portal specialized in PHP in which all offers have a salary and, whether or not they allow remote working.
Go to jobsphp.com.
PHP
📚 Tagged Singletons
Tempest, the framework Brent Roose is working on, allows you to attach a tag to a singleton definition, which means you can have multiple singletons of the same class, as long as their tags differ.
📚 Create a DateTime from a Timestamp With this New Method Coming to PHP 8.4
Creating a DateTime from a Unix timestamp will be more convenient in PHP 8.4 with the new createFromTimestamp() method. It will support both a typical Unix timestamp as well as timestamps containing microseconds.
📚 Mastering PHP File Paths: Simplifying Your Project's Structure
This article will discuss the absolute and relative paths, directory separators, file functions, including files in PHP, and how to use file paths in PHP.
📚 The evolution of PHP from 5.4 to 8.3, and what has changed
The evolution of PHP from version 5.4 to 8.3 represents a significant transformation in terms of performance, features, and best practices. Here’s an overview of the key changes and improvements across these versions.
📚 Secondary constructors in PHP
The main advantage of using “multiple” constructors is experienced when you need to create a new object in a consistent state depending on certain conditions and want to avoid numerous void arguments for the constructor.
📚 Using PHPMailer: A Comprehensive Guide By CODEMaster
This guide will walk you through the steps to set up and use PHPMailer, sourced from its GitHub repository.
📚 How to Delete Old Revisions for Each Content Type in Drupal 9?
In this guide, we’ll walk through creating a custom Drupal script to delete older revisions for all content types, keeping only the most recent ones automatically.
📚 Mastering Stateful and Stateless PHP Web Application Architecture
Discover the differences between stateful and stateless PHP web application architecture. Learn how to leverage these architectures for high-performance, scalable web applications using insights from “Mastering Swoole PHP.”
Laravel
📚 Asserting a JSON Response Structure in Laravel
When writing tests for API responses in Laravel, it can be useful to validate the structure of the response. Laravel has the fluent assertJson() method, which you can use to verify JSON values in a given test response.
📚 Setting up Vim for PHP and laravel in 2024
I am going to mostly document my own journy of setting up Vim (Not Neovim!) for PHP and laravel. Feel free to follow along.
📚 How To Build an AI-Powered Voice Assistant With Twilio, Laravel, and OpenAI
In this tutorial, you will learn how to build an AI-powered voice assistant that can understand and respond to complex questions using Twilio Programmable Voice and OpenAI.
📚 Profiling PHP (Laravel)Applications with xhprof. Finding bottlenecks!
In today’s guide, we’re diving deep into the realm of PHP application profiling. We’ll explore key techniques to enhance performance and identify what’s slowing down your applications.
📚 Laravel Elasticsearch Integration: From Routing to Search
In this article, we will walk you through the steps on how to set up Elasticsearch integration in your Laravel application.
📚 How to Execute Code Before or After Testing in Laravel
In this article, we will look at two ways to do this: using Laravel events and using PHPUnit events.
📚 Laravel Herd v1.7 is out with updates to the dump UI
Laravel Herd v1.7 is now out and includes a few new features to the dump UI. The MacOS version is out now, and the Windows version will follow shortly.
📚 Neovim Plugin to for Navigating Laravel and Livewire Components
LALI Components is a Neovim plugin for autocompletion of Laravel and Livewire components by community member Ricardo Ramirez. It offers component navigation using gf, prompting you to choose the component when more than one exists, as well as autocompletion using nvim-cmp.
📚 Why I use Doctrine with Laravel
I thought that the future of PHP frameworks would be small assemblies like micro-frameworks, such as Lumen, where you gather all the necessary packages used in the project.
📚 Service Container & Service Providers in Laravel 11: Binding, Resolvers, and Dependency Injection
This blog post will dive deep into Service Container, Service Providers, Binding, Resolvers, and Dependency Injection in Laravel 11.
📚 Using Service Classes in Laravel
Service classes separate business logic from controllers, making the code more organized, readable, and maintainable.
Symfony
📚 An operation-oriented API using PHP and Symfony
When developing an api, we usually tend to organize our api endpoints using the CRUD approach which is the acronym for (CREATE, READ, UPDATE and DELETE). In other words, we create an endpoint for each CRUD operation.