PHP code example of naymyomhan / hello-cat

1. Go to this page and download the library: Download naymyomhan/hello-cat library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

naymyomhan / hello-cat example snippets


use Naymyomhan\HelloCat\Cat;

$cat = new Cat(); 
$response = $cat->image();

use Naymyomhan\HelloCat\CatGroup;

$catGroup = new CatGroup();
$response = $catGroup->images(5, 'beng'); // Fetch 5 images of 'beng' breed
bash
php artisan vendor:publish --tag=hello-cat