PHP code example of vladshish / cakephp-gravatar-plugin

1. Go to this page and download the library: Download vladshish/cakephp-gravatar-plugin library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

vladshish / cakephp-gravatar-plugin example snippets


CakePlugin::load('Gravatar');

CakePlugin::loadAll();


class AppController extends Controller {

    public $helpers = array(
        'Gravatar.Gravatar',
        // and any other helpers you need app-wide
    );
}


    echo $this->Gravatar->image('[email protected]', array('size' => 80));