AVATARS IO PHP
THIS IS A VERY EARLY STAGE WRAPPER FOR AVATARS.IO. However, the API will remain stable you can use it and nothing will break in the future., (*1)
The current version is only a fast code to learn the avatars.io API, however it works, coming next :
- tests
- injectable httpclient
- more features (better handling of url generation for example)
- refactoring, (*2)
I have no time to work on this at the moment, ping me or open issue if you need this., (*3)
, (*4)
Setup
composer.json :
``` json
{
"require": {
"jjaffeux/avatars-io-php": ">=1.0.0"
}
}, (*5)
``` php
$avatar = new \AvatarsIo\Avatar(CLIENT ID, SECRET KEY);
General Usage
php
$avatar->upload('filepath', 'identifier'); //identifier is optionnal
$avatar->url('twitter', 'twitter username', 'size') //size is optionnal, can be small, medium, large, (*6)
Bug tracker
Have a bug? Please create an issue here on GitHub!, (*7)
Contributions
- Fork
- Write tests (phpunit in the directory to run the tests)
- Write Code
- Pull request
Thanks for your help., (*8)
Authors
Joffrey Jaffeux, (*9)
- http://twitter.com/joffreyjaffeux
- http://github.com/jjaffeux
License
MIT License, (*10)