PHP code example of spectre33 / fish-content-api-client

1. Go to this page and download the library: Download spectre33/fish-content-api-client 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/ */

    

spectre33 / fish-content-api-client example snippets


use fishContentApiClient\FishContentApiClient;

$fishText = (new FishContentApiClient('api_key'))->getText(3, 2, 600, 2, FishContentApiClient::TEXT_FORMAT_HTML);

var_dump($fishText);

$fishImage = (new FishContentApiClient('api_key'))->getImage(3, 2, FishContentApiClient::IMAGE_SIGE_LARGE, null, null);

var_dump($fishImage);

$fishContent = (new FishContentApiClient('api_key'))->getContent(3, 2, 300, 2, 5, FishContentApiClient::IMAGE_SIGE_LARGE);

var_dump($fishContent);