A simple web app that fetches random cat images from The Cat API using PHP, Vue.js, and Tailwind CSS. The app displays the images in a two-row layout, with an interactive feature to move the last image to the first position when clicked. It also includes a refresh button to dynamically load new images.
Make sure you have the following installed on your system:
php -S
, XAMPP, MAMP)Clone the repository:
git clone https://github.com/your-username/cat-image-fetcher.git
Navigate to the project folder:
cd catimages
Run the local server:
php -S localhost:8000
Open the app in your browser:
```bash Go to http://localhost:8000
You can adjust the following settings in the PHP config array:
$config = [
'image_count' => 5, // Number of cat images to fetch
'api_url' => "https://api.thecatapi.com/v1/images/search",
'api_key' => 'API_KEY'
];