PHP code example of skylord123 / gravatar-bundle

1. Go to this page and download the library: Download skylord123/gravatar-bundle 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/ */

    

skylord123 / gravatar-bundle example snippets


  // application/ApplicationKernel.php
  public function registerBundles()
  {
      return array(
          // ...
          new Ornicar\GravatarBundle\OrnicarGravatarBundle(),
          // ...
      );
  }
  
html
<img src=" echo $view['gravatar']->getUrl('[email protected]') 
html
<img src=" echo $view['gravatar']->getUrl('[email protected]', '80', 'g', 'defaultimage.png', true)