A small web app that will show you pictures of cats!
A command-line utility for creating the database for the Top Cat app.
- Makes API requests to get:
- A list of cat breeds
- Image URLs for cats from each breed
To use:
$ php scrape.php
- DB class contains a PDO that connects to the database
- Contains query to generate cat database for the app.
- The database contains two tables - breed, img
To run tests use PHPUnit.
This is included as a development dependency. Run
$ composer install
to make sure you have all of the development dependencies in your project.
Test files are found alongside the files they test, so run
$ vendor/bin/phpunit src
to catch them all.