flaviozantut/avatars

avatars.io client
93 2
Install
composer require flaviozantut/avatars
Latest Version:v1.0.0
PHP:>=5.3.0
License:MIT
Last Updated:Feb 17, 2016
Links: GitHub  ·  Packagist
Maintainer: flaviozantut

avatars

Laravel 4 client to avatars.io

Build Status Coverage Status Latest Stable Version Total Downloads

Installation

Installation with php composer

 composer require "flaviozantut/avatars:1.0.*"

add to app.php 'providers':

'Flaviozantut\Avatars\AvatarsServiceProvider',

add to app.php 'aliases':

'Avatars'    => 'Flaviozantut\Avatars\AvatarsFacade',

Register on avatars.io and after receiving the email with the configuration switches run the commands substituting the keys

php artisan avatars:client_id YOURCLIENTID
php artisan avatars:secret_key YOURSECRETKEY
php artisan config:publish flaviozantut/avatars

Usage

//get avatar url
$app['avatars']->url('user@mail.com', 'auto');
//upload avatar
$app['avatars']->upload(base64encodefile, userid);
//get by URL
http://yourapp.dev/avatars/userid/service/size
//POST photo to
http://yourapp.dev/avatars/userid

DOCS

Docs

MIT License

license.txt

Bitdeli Badge

Related Packages

orchestra/avatar

Avatar Component for Orchestra Platform

113,977 7
creativeorange/gravatar

A Laravel Gravatar package for retrieving gravatar image URLs or checking the ex...

8,286,467 546
laravolt/avatar

Turn name, email, and any other string into initial-based avatar or gravatar.

6,038,752 1,982
lianhechx/laravel-gravatar

A Laravel gravatar package for retrieving gravatar image URLs or checking the ex...

68 0