PHPackages                             alexwarman/random-cat-image - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Image &amp; Media](/categories/media)
4. /
5. alexwarman/random-cat-image

ActiveLibrary[Image &amp; Media](/categories/media)

alexwarman/random-cat-image
===========================

Random cat image from ai-cats.net with Laravel support

v2.0.0(10mo ago)09MITPHPPHP ^7.4|^8.0

Since Jul 10Pushed 10mo agoCompare

[ Source](https://github.com/alexwarman/random-cat-image)[ Packagist](https://packagist.org/packages/alexwarman/random-cat-image)[ RSS](/packages/alexwarman-random-cat-image/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependencies (1)Versions (3)Used By (0)

Random Cat Image
================

[](#random-cat-image)

A PHP library to fetch random cat images from ai-cats.net with seamless Laravel integration.

Description
-----------

[](#description)

This package provides a simple and easy way to get random cat images in your PHP applications. Returns base64 encoded image data that you can use directly in your web applications or save to files. Perfect for adding some feline fun to your projects!

**Laravel Features:**

- Auto-discovery service provider
- Dependency injection support
- Configuration file for customization
- Built-in caching support
- Environment variable configuration

Installation
------------

[](#installation)

Install via Composer:

```
composer require alexwarman/random-cat-image
```

### Laravel Setup

[](#laravel-setup)

For Laravel 5.5+, the package will be automatically discovered. For older versions, add the service provider manually:

```
// config/app.php
'providers' => [
    // ...
    Alexwarman\RandomCatImage\RandomCatImageServiceProvider::class,
],
```

Optionally, publish the configuration file:

```
php artisan vendor:publish --tag=random-cat-image-config
```

Usage
-----

[](#usage)

### Basic PHP Usage

[](#basic-php-usage)

```
