PHPNews

Slevomat Coding Standard

Written by Stories by Ondřej Mirtes on Medium - Published on Stories by Ondřej Mirtes on Medium
Aggregated on Sunday December 20, 2015 - Permalink

Every developer team should have a good infrastructure providing and enforcing consistent output of each team member at their fingertips. Coding standard is one of many things holding a project together. It should not be obvious from a code snippet who wrote it. The entire team should have common conventions how to write code. Some can be checked automatically (code formatting), others (like …

Continue reading »


PHPStan: Find Bugs In Your Code Without Writing Tests!

Written by Stories by Ondřej Mirtes on Medium - Published on Stories by Ondřej Mirtes on Medium
Aggregated on Sunday December 4, 2016 - Permalink

I really like how much productivity a web developer gains by switching from compiled languages like Java or C# to an interpreted one like PHP. Aside from the dead simple execution model (start, handle one request, and die) and a much shorter feedback loop (no need to wait for the compiler), there’s a healthy ecosystem of open-source frameworks and libraries to help developers with their everyday …

Continue reading »


The Three Pillars of Static Analysis in PHP

Written by Stories by Ondřej Mirtes on Medium - Published on Stories by Ondřej Mirtes on Medium
Aggregated on Sunday December 11, 2016 - Permalink

My credo is that everything that can be automated should be automated. Computers are really good at repeating tedious tasks and they don’t usually make mistakes while us squishy humans are defined by making mistakes everywhere we go. That’s why you should have a build process and continuous integration environment for every project you create. The mistakes we make can be caught there before …

Continue reading »


Glad you asked :) Scrutinizer is the reason why I suspended development of PHPStan about three and…

Written by Stories by Ondřej Mirtes on Medium - Published on Stories by Ondřej Mirtes on Medium
Aggregated on Monday December 12, 2016 - Permalink

Glad you asked :) Scrutinizer is the reason why I suspended development of PHPStan about three and a half years ago (when JMS announced Scrutinizer) and kicked it off again about a year ago. I suspended it because a part of Scrutinizer (PHP Analyzer) was exactly what I was striving to build and I didn't see any point continuing. But later, JMS closed the source of PHP Analyzer and walled it off …

Continue reading »


Asynchronous processing with RabbitMQ

Written by Stories by Ondřej Mirtes on Medium - Published on Stories by Ondřej Mirtes on Medium
Aggregated on Thursday January 12, 2017 - Permalink

Last September I got into my car and drove 600 kilometers from Prague, Czech Republic. PHPCon Poland took place in a secluded compound of a huge hotel near Warsaw, Poland. I was lucky enough to become part of a crammed schedule full of both local and international speakers. My topic of choice was RabbitMQ. I like to do unusual stuff with PHP outside of the traditional LAMP model of start-hand…

Continue reading »


How I Got From 0 to 1 000 Stars on GitHub in Three Months With My Open Source Side Project

Written by Stories by Ondřej Mirtes on Medium - Published on Stories by Ondřej Mirtes on Medium
Aggregated on Monday February 27, 2017 - Permalink

Most developers have side projects. That's how we try out new things or make something that we miss on the market or in our dev stack. But most side projects end up unfinished and never actually see the light of day. And even if a developer builds up the courage to show his work to the public, he quickly finds out that just publishing a repository doesn't actually bring the masses to his …

Continue reading »