PHP code example of thallesdella / optimizer

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

    

thallesdella / optimizer example snippets



= 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();


= new \CoffeeCode\Optimizer\Optimizer();

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


= new \CoffeeCode\Optimizer\Optimizer();

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


= new \CoffeeCode\Optimizer\Optimizer();

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