1. Go to this page and download the library: Download cable8mm/view-transformer 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/ */
cable8mm / view-transformer example snippets
use Cable8mm\ViewTransformer\PrettyProfile;
PrettyProfile::getInstance()->nickname(393939)
// get a nickname.
print PrettyProfile::getInstance()->cat(393939);
print PrettyProfile::getInstance()->cat(393939, 'large');
// The second argument can be 'large', 'medium', or 'small'. Null indicates the original size.
print PrettyProfile::getInstance()->dog(393939);
print PrettyProfile::getInstance()->dog(393939, 'large');
print PrettyProfile::getInstance()->cats();
// All cat images
print PrettyProfile::getInstance()->cats('medium');
// All cat images in medium size
print PrettyProfile::getInstance()->dogs();
print PrettyProfile::getInstance()->dogs('medium');
use Cable8mm\ViewTransformer\PrettyProfile;
print PrettyProfile::getInstance()->nickname(1)
//=> 평범한 네벨룽;
use Cable8mm\ViewTransformer\PrettyProfile;
print PrettyProfile::getInstance()->cat(1);
//=> https://cabinet-pets.palgle.com/avatars/cat/1.png;