PHP 5.4+
Install dependencies using composer
composer install
or
php composer.phar install
Assuming you have installed all dependencies using composer, you can run the unit tests with the following command:
./vendor/bin/phpunit -c ./phpunit.xml.dist
Code coverage report is available in ./build/logs/report/index.html
Check folder ./build/docs/index.html
Available via travis-ci and coverall.io. Just click in the badges above
To use it in the command line:
php public/recipeFinder.php <csv file> <recipes json file>
php public/recipeFinder.php ./data/fridge.csv ./data/recipes.json
The example above will output:
Recommendation for tonight is: grilled cheese on toast
Assuming that you have PHP 5.4+ installed, just use:
php -S localhost:8000 -t public/
and then open http://localhost:8000 in your browser