PHP Attributes and MetaprogrammingIntroduction Attributes were introduced in PHP 8 around four years ago. As outlined in the RFC, attributes provide a structured and syntactic way to add metadata to declarations such as classes, properties, functions, methods, parameters, and constan...May 16, 2025
Sending Laravel Logs to Mattermost ChannelsMattermost is an open-source platform for communication and collaboration with integrations with many tools. It is mostly considered as an open-source alternative to Slack and Microsoft Teams. Although Laravel does not have an official log channel dr...Sep 23, 2022
Preventing User Enumeration Attack in Laravel AppsUser enumeration is a brute-force technique that is used to collect or verify valid users' credentials. It belongs to the Identification and Authentication Failures category (AKA broken authentication) which came in 7th place on the Top 10 Web Applic...May 13, 2022
Adding PHPUnit Test Log and Coverage to GitLab CI/CD PipelineIn this tutorial we are going to setup a GitLab CI/CD job that can run your PHPUnit test suite and extract a testing report plus the overall coverage. First, we need to setup our server and install the required tools. DigitalOcean has many useful tut...Apr 22, 2022
Laravel Static Code Analysis with PHPStanCode analysis is the process of testing and evaluating a program either statically or dynamically. Dynamic analysis is the process of testing and evaluating a program — while the software is running. It addresses the diagnosis and correction of bugs,...Feb 26, 2022