Console applications - whether part of a larger (Symfony-)application or standalone-tool - usually are the bash-script of PHP developers. Thereby one often leaves the path of clean code and hacks a very pragmatic solution. Despite the fact that a lot of these fast solutions remain in project and need to be maintained for longer. What to reason about while developing a console application and which simple tricks help to clean up your code, is shown by examples in this talk. How do I decouple my code from CLI runtime, how do I optimize long running processes and so on.
The talk is made for beginners and intermediate developers. A code-centric collection of best practices and small tricks, that ease the daily life of developing and CLI-command. The talk is not meant to present a perfect solution for every problem, but provides code examples that invite to reflect about your own work.