PHP code example of kdaviesnz / seostructuredmarkup

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

    

kdaviesnz / seostructuredmarkup example snippets

 php

       $product = array(
           "title" => "A widget",
           "images" => array(
               "large" => array(
                   "src" => "http://example.com/image.jpg"
               )
           ),
           "description" => "This is a widget",
           "brand" => "Widget Brand",
           "rating" => "8",
           "currency" => "USD",
           "merchant" => "Widget Co",
           "price" => "100.00",
           "organization" => "Widget Org"
       );
        $structuredMarkup = new \kdaviesnz\seostructuredmarkup\SEOStructuredMarkup("product", $product);
        echo $structuredMarkup;