Wednesday, February 17, 2021
Static Code Analysis for Laravel
Today I will show you what type of static code analysis tools I use for Laravel based projects. All of them, with some configuration changes, one could use with any PHP project, such as those using Symfony. Static code analysis is a source code structure analysis and test without running or compiling the code. Although it will not find all potential problems and bugs and is not replacing code review, it could be beneficial, especially in bigger teams.
Sunday, December 13, 2020
The Problem With Nginx Add_header
I often have a problem using nginx’s add_header directive, especially with a complex configuration, including multiple virtual hosts. When I test the configuration, everything seems okay, and the nginx does not complain about any syntax. However, when checking the HTTP headers returned by the web server, it looks like it does not work.
Saturday, March 21, 2020
The Most Useful OpenSSL Commands
OpenSSL is one of the most useful applications available on all major platforms. It is an open-source implementation of SSL and TLS protocols and cryptography algorithms. Useful on enterprise-level and for your personal needs. And this is my list of the most useful OpenSSL commands.
Sunday, February 23, 2020
PHPUnit Code Coverage and SonarQube
SonarQube is a wonderful tool for static code analysis and code review. Of course, it is not an all in one tool which replaces all other tools used in code review toolchain. SonarQube has a whole section dedicated to code coverage, but it analyzes code coverage, not run any tests.
Sunday, January 19, 2020
How to Decrease the Size of Docker Images?
Creating new docker images based on some official Linux distributions or modifying existing ones increase their size. Sometimes, the difference between the new and the old ones dramatically exceeds the size of new packages or modifications. The reason behind that is mostly the way how images structure looks like and how Docker uses images and containers.