refactored cardmaker to use Composer and Silex