Why use declare(strict_types=1) in PHP
Strategy Pattern; Laravel Debugging and Error Handling Techniques; and Building a Polymorphic Translatable Model in Laravel with Autoloaded Translations.
🐙 You can pay $20/mo to ChatGPT and upload a single PDF, or for the same price, you can chat with 100's of documents at once.
Create an agent with as many documents as you want, and get specific, accurate answers. (knowoctopus.com | ad)
PHP
📚 Why use declare(strict_types=1) in PHP – Fast tips
In this tutorial, we'll explore what declare(strict_types=1) means, why PHP developers should use it and why not, and provide examples to illustrate its importance.
📚 How to parse currency in PHP?
I received an array of prices from the front-end and my task was to sum them up. However, the prices were in string format instead of float, so I needed to convert them before performing the calculation.
📚 Why I Like the Strategy Pattern
As a developer, one of the most powerful tools is the ability to write clean, maintainable, and extensible code. Design patterns play an important role in accomplishing this goal; among them, the Strategy pattern is particularly notable.
📚 PHP and Web Application Security: Common Threats and Protection Methods
Applications written in popular languages like PHP can be exposed to serious security vulnerabilities if not properly protected. In this article, we’ll discuss the most common security threats and methods to protect against them.
📚 Please don’t: over complicating array translation in PHP
This code example based on a real case shows an attempt to solve a problem in a way that appears to anticipate a complication that wasn’t really there, and got half way complicating an implementation that could have been simple, although boring.
Laravel
📚 Laravel Debugging and Error Handling Techniques
Debugging and error handling are crucial aspects of web development, ensuring your application runs smoothly and errors are managed effectively.
📚 Building a Polymorphic Translatable Model in Laravel with Autoloaded Translations
When handling multilingual content, it’s often more efficient to store translations in a JSON column rather than individual rows for each attribute. This approach consolidates translations into a single column, simplifying data management and retrieval.
📚 Boosting Laravel Livewire Performance with the #[Isolate] Attribute
Let’s dive into what this attribute does and how it can significantly enhance the efficiency of your Livewire components.
📚 Laravel Log Files Support in PhpStorm
Today I want to look at a new feature in PhpStorm, one that I think many Laravel developers will find very interesting.
📚 A New String Helper, Assert Enums in AssertableJson, and more in Laravel 11.20
The Laravel team released v11.20 this week, including a new collection method, a deduplicate string method, the ability to use Enums with AssertableJson, and more.
📚 The Essential Guide to Laravel’s .htaccess: Why, How, and What It Can Do for Your Application
In this blog post, we'll dive deep into why the .htaccess file is so important, what it does, how it works, and even provide you with a sample .htaccess file, complete with explanations to help you master this powerful tool.
📚 Mastering Real-Time Validation in Laravel Livewire
In this post, we’ll explore how to implement real-time validation in your Livewire components.
📚 Service and DTO pattern with Laravel
In this article, we see how we can use the service and DTO pattern to write more maintainable and loosely coupled code.
Symfony
📚 A Week of Symfony #919 (5-11 August 2024)
This week, the upcoming Symfony 7.2 version improved the hashing of assets in AssetMapper and added support for the RFC4122 format in the Ulid constraint. In addition, Symfony proposed some changes in config resources tracking.
Tools
📦 Oops.js
Add powerful undo/redo capabilities to your app.
📦 Keuss Job Queues
Job Queues for node.js, backed by redis and/or MongoDB.