avatars-io-php
PHP
Latest commit 0b9c610 Aug 13, 2012 @jjaffeux Update README.md
Permalink
Failed to load latest commit information.
fixtures first commit Jun 27, 2012
lib/AvatarsIo cleaning Jun 27, 2012
test first commit Jun 27, 2012
.gitignore first commit Jun 27, 2012
.travis.yml first commit Jun 27, 2012
LICENSE add mit license Jun 27, 2012
README.md Update README.md Aug 13, 2012
composer.json first commit Jun 27, 2012
composer.lock first commit Jun 27, 2012

README.md

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.

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

I have no time to work on this at the moment, ping me or open issue if you need this.

Build Status

Setup

composer.json :

{
    "require": {
        "jjaffeux/avatars-io-php": ">=1.0.0"
    }
}
$avatar = new \AvatarsIo\Avatar(CLIENT ID, SECRET KEY);

General Usage

$avatar->upload('filepath', 'identifier'); //identifier is optionnal
$avatar->url('twitter', 'twitter username', 'size') //size is optionnal, can be small, medium, large

Bug tracker

Have a bug? Please create an issue here on GitHub!

Contributions

  • Fork
  • Write tests (phpunit in the directory to run the tests)
  • Write Code
  • Pull request

Thanks for your help.

Authors

Joffrey Jaffeux

License

MIT License