samcrosoft/uifaces

This is a library that allows you to access the ui faces api

dev-master 2015-11-28 15:24 UTC

This package is not auto-updated.

Last update: 2024-04-27 13:51:33 UTC


README

Latest Version on Packagist Software License Build Status Total Downloads

UIFaces is a well written, lightweight PHP library that helps communicate with the UIFaces API

Create a UIFaces Generator

<?php
$oGenerator = new Samcrosoft\UIFaces\Generators();

To Get UIFaces of a specific user

<?php

$oUserSpecific = $oGenerator->getUser('calebogden');

// To get the Username
echo $oUserSpecific->getUsername();

// To get the Normal Image
echo $oUserSpecific->getNormalImage();

To get UIFaces of a random user

<?php

$oUser = $oGenerator->getRandomUser();

// To get the Username
echo $oUser->getUsername();

// To get the Normal Image
echo $oUser->getNormalImage();

To get UIFaces for multiple random users

<?php

$oUser = $oGenerator->getRandomUser();

// To get the Username
echo $oUser->getUsername();

// To get the Normal Image
echo $oUser->getNormalImage();