Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/ivantcholakov/codeigniter-gravatar

Gravatar Library for Codeigniter
https://github.com/ivantcholakov/codeigniter-gravatar

codeigniter gravatar-library php

Last synced: 3 months ago
JSON representation

Gravatar Library for Codeigniter

Awesome Lists containing this project

README

        

Gravatar Library for Codeigniter
================================

Usage
-----

Before usage simply load the library as usual in your controller or other context.

```php
$this->load->library('gravatar');
```

After that you can call its public methods:

```php
echo '
';
echo '
';

$email = '[email protected]';

$gravatar_url = $this->gravatar->get($email);

var_dump($gravatar_url);

echo '
';
echo '
';

echo '';

echo '
';
echo '
';

$gravatar_profile = $this->gravatar->get_profile_data($email);

echo '

';

echo print_r($gravatar_profile, true);
echo '
';

echo '
';
echo '
';

$last_error = $this->gravatar->last_error();

echo '

';

echo print_r($last_error, true);
echo '
';

echo '
';
echo '
';
```

This library has been documented inside its source. For overall information about accessing gravatars see https://en.gravatar.com/site/implement/

Requirements
------------

CodeIgniter 2.x or CodeIgniter 3.x

License Information
-------------------

Copyright (c) 2015 - 2023 Ivan Tcholakov, [email protected]
Copyright (c) 2011 - 2015 Ryan Marshall, http://irealms.co.uk
License: The MIT License (MIT), http://opensource.org/licenses/MIT