PHP code example of darwin-8 / avataaar
1. Go to this page and download the library: Download darwin-8/avataaar 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/ */
darwin-8 / avataaar example snippets
$avataaar = new \Avataaar\Avataaar(['host' => 'https://avataadfars.io']);
$avataaar->get();
$avataaar = new \Avataaar\Avataaar(['host' => 'https://avataadfars.io']);
$avataaar->only(['topType' => ["ShortHairDreads01", "ShortHairDreads02", "ShortHairFrizzle"]])
->except(['topType' => ["ShortHairDreads02"]])
->get();
$avataaar = new \Avataaar\Avataaar(['host' => 'https://avataadfars.io']);
$avataaar->girl()->only(['skinColor' => ['Brown']])->get();