2017 © Pedro Peláez
 

cli quiz-maker

image

larsemil/quiz-maker

  • Wednesday, May 10, 2017
  • by larsemil
  • Repository
  • 1 Watchers
  • 0 Stars
  • 0 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 0 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

quiz-maker

Quiz-Maker is a small command line tool to convert csv files containing quizes to ready to print pdf files., (*1)

It is rather straightforward to use., (*2)

./quiz-maker.phar generate input.csv output.pdf

This will generate a PDF from the csv., (*3)

CSV format

Use the following format in your csv file., (*4)

Question,Answer1,Answer2,Answer3,Correct,Image
Vad är skalmans viktigaste uppfinning?,Självgående skottkärran,Mat och sovklockan,Sin helikopter,2,
Vad är Dalarna?,Ett län,Ett land,En by,1,http://www.lansstyrelsen.se/dalarna/SiteCollectionImages/Sv/djur-och-natur/skyddad-natur/hela-lanet-400px.gif

Styling

Upcoming version will let you manually choose a css file. For now you need to rebuild the project after changing the question.css file., (*5)

Building

Being lazy i have used phar/composer to generate the executable. So after making changes to the source-code, simply rebuild it like this: ``` phar-composer.phar build /path/to/quiz-maker, (*6)

```, (*7)

Dependencies

You need wkhtmltopdf to use this tool. if not found it will not generate any PDFs., (*8)

Sidenote :)

This tool was easily built using the dalnix/dalnix-cli command-line-tool-builder. And you know what? It was dead easy. Allthough not released as yet as there are some kinks to straighten out., (*9)

The Versions