PHP is nothing like compiled languages. If you make a mistake, the program will crash when the line of code with the mistake is executed. When testing a PHP application, whether manually or automatically, developers spend a lot of their time discovering mistakes that wouldn’t even compile in other languages, leaving less time for testing actual business logic.

PHPStan is a popular static analyser focused on finding bugs in your code. By leveraging the strength of PHP type system further enhanced in PHPStan itself, developers can create robust applications and discover bugs early in the development process. The aid the tool provides during refactoring is also indispensable.

In this workshop, I will show the attendees how to install, configure and run PHPStan, and also give tips how to write code so that PHPStan can be as powerful as possible.

Comments

Comments are closed.

I enjoyed the tutorial workshop, he is a very knowledgeable speaker.

Presentation wise, I think the workshop could be improved with a very slight tweak. All of your materials were prepared and you went through them very nicely, it's just a matter of moving examples to start being shown a lot earlier. After attendees have been told how you can install/configure PHPStan, it would be a nice change of pace to show examples of running PHPStan as you go. Instead, all of the examples were done at the very end (last hour) of the workshop. This led to a lot of more complex examples being shown, whereas if you started off showing examples that were relatively simpler, it would allow for better understanding and digestion.

Thank you for your workshop and giving insight into this powerful tool!

Eric Poe at 12:01 on 2 May 2019

I have been using phpstan for a few months on various small projects. This workshop helped me figure my way out of a few problems I was running into.

I also learned the phpstan-shim, which I should be able to run now with my organization's Symfony 2 application. I am looking forward to testing this out at work!

Good job. I could hear you and read almost all of the slides.

Marion Sartor at 15:54 on 2 May 2019

Ondrej did a very good job at starting simple; talked about other existing tools, their limitations, and how PHPStan fills some gaps. The information was presented in an organized manner.

TJ Draper at 09:57 on 3 May 2019

Fantastic information for a tool that I'll now be integrating on every project going forward. I didn't know exactly what PHPStan would do for me before but I think I'm quickly going to wonder how I got along without it. Building a rule bot a little over my head, but I think that's more a function of my attention span and ability to absorb limited amounts of knowledge at one time.

Ben Chrisman at 14:04 on 3 May 2019

Very in-depth talk, was hoping for more application of PhpStan to larger code bases and different frameworks.

Pat Ramsey at 15:33 on 3 May 2019

Excellent talk, with great information and takeaways.

Keith Davis at 14:14 on 4 May 2019

Solid talk and I like the fact that you were not afraid to share your opinions on software design.