Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/ivantcholakov/codeigniter-gravatar
- Owner: ivantcholakov
- License: mit
- Created: 2011-08-12T14:54:02.000Z (over 13 years ago)
- Default Branch: master
- Last Pushed: 2023-12-05T04:36:06.000Z (about 1 year ago)
- Last Synced: 2024-10-14T00:04:26.793Z (3 months ago)
- Topics: codeigniter, gravatar-library, php
- Language: PHP
- Homepage:
- Size: 27.3 KB
- Stars: 57
- Watchers: 9
- Forks: 27
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
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