Skip to content

rakshazi/gsd-generator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 

Repository files navigation

Google Structured Data generator

This library has only needed for repo owner functions. If you want something else, feel free to create issue.

Generates <script type="application/ld+json"></script> with ld markup of passed data. See comments inside class if you want know more.

Supported data types:

  1. Breadcrumbs $result = \Rakshazi\GsdGenerator::getBreadcrumbs($data);
  2. Sitelinks Searchbox $result = \Rakshazi\GsdGenerator::getSearchbox($url, $search_url);
  3. Your Site Name in Results $result = \Rakshazi\GsdGenerator::getSitename($name, $alt_name, $url);
  4. Search Gallery / Product $result = \Rakshazi\GsdGenerator::getProduct($productData);