PHP code example of coffeecode / optimizer

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

    

coffeecode / optimizer example snippets




$op = new \CoffeeCode\Optimizer\Optimizer();

echo $op->optimize(
    "Optimizer Happy and @CoffeeCode",
    "Is a compact and easy-to-use tag creator to optimize your site",
    "https://www.upinside.com.br/coffeecode/optimizer/example/",
    "https://www.upinside.com.br/uploads/images/2017/11/curso-de-html5-preparando-ambiente-de-trabalho-aula-02-1511276983.jpg"
)->render();



$op = new \CoffeeCode\Optimizer\Optimizer();

echo $op->publisher(
  "upinside",
  "robsonvleite"
)->render();



$op = new \CoffeeCode\Optimizer\Optimizer();

echo $op->twitterCard(
  "@robsonvleite",
  "@upinside",
  "upinside.com.br",
  "summary_large_image"
)->render();



$op = new \CoffeeCode\Optimizer\Optimizer();

echo $op->openGraph(
  "upinside",
  "pt_BR",
  "article"
)->render();