Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/jjaffeux/avatars-io-php
avatars-io-php
https://github.com/jjaffeux/avatars-io-php
Last synced: 3 months ago
JSON representation
avatars-io-php
- Host: GitHub
- URL: https://github.com/jjaffeux/avatars-io-php
- Owner: jjaffeux
- License: mit
- Created: 2012-06-27T22:47:58.000Z (over 12 years ago)
- Default Branch: master
- Last Pushed: 2012-08-13T08:39:30.000Z (over 12 years ago)
- Last Synced: 2024-05-23T03:20:52.562Z (6 months ago)
- Language: PHP
- Size: 111 KB
- Stars: 44
- Watchers: 6
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
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)
- refactoringI have no time to work on this at the moment, ping me or open issue if you need this.
[![Build Status](https://secure.travis-ci.org/jjaffeux/avatars-io-php.png?branch=master)](http://travis-ci.org/jjaffeux/avatars-io-php)
Setup
-----
composer.json :
``` json
{
"require": {
"jjaffeux/avatars-io-php": ">=1.0.0"
}
}
```
``` 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
```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 requestThanks for your help.
Authors
-------**Joffrey Jaffeux**
+ http://twitter.com/joffreyjaffeux
+ http://github.com/jjaffeuxLicense
---------------------MIT License