PHP code example of kitsunecode / optimizer

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

    

kitsunecode / optimizer example snippets



= new \KitsuneCode\Optimizer\Optimizer();

echo $op->optimize(
        title: "Optimizer Happy and @KitsuneCode",
        description: "Is a compact and easy-to-use tag creator to optimize your site",
        url: "https://kitsunewsys.com/kitsunecode/optimizer/example/",
        image: "https://kitsunewsys.com/uploads/images/2021/08/exemplo-de-imagem-carregada-pra-compartilhamento-1511276983.jpg",
        //follow: true, //opcional - lembrando que utilizando os nomes de parametro não precisa ser declarado
        article: true,
                        //optional - remembering that using the parameter names does not need to be declared
        publishedTime: "25-12-2022 13:40:58", //opcional - optional
        modifiedTime: "15-02-2023", //opcional - optional
        // timezone: 'UTC' //padrão America/Sao_paulo
                            //standart America/Sao_paulo
        author: "Jonh Joe",
        organization: 'Kitsune Web System',
        logo: 'https://kitsunewsys.com/uploads/images/2023/02/exemplo-de-logotipo.webp'
)->render();


= new \KitsuneCode\Optimizer\Optimizer();

echo $op->publisher(
  "kitsune",
  "enossantana"
)->render();


= new \KitsuneCode\Optimizer\Optimizer();

echo $op->twitterCard(
  "kitsunews",
  "@enoswmaster",
  "kitsunewsys.com",
  "summary_large_image"
)->render();


= new \CoffeeCode\Optimizer\Optimizer();

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