Sunday, July 7, 2013

A CSV-to-CSV converter using Symfony Console application skeleton

A common problem when dealing with received CSV files is that often its structure and/or contents need to be converted in order to be fed to some existing application. A real life example is when we have is a list of items to be imported into an online shop (sent by a provider using a predefined CSV structure), and we discover that the import module of our online shop needs another predefined CSV structure and/or contents. We could solve the problem by adapting our import software, but then we will be facing the same problem again when the next provider sends its predefined format...

So instead we will write a generic CSV-to-CSV converter using the our Symfony Console Skeleton to solve the problem.

Sunday, May 5, 2013

A basic skeleton for Symfony Console applications


Symfony provides a great infrastructure for writing console-oriented applications. But, as the lazy person I must confess I am, it feels like a great deal starting from scratch with a of a lot of code just for a "tiny" utility.