rakshazi/gsd-generator

Google Structured Data generator

Installs: 4 850

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 0

Forks: 0

Open Issues: 0

pkg:composer/rakshazi/gsd-generator

1.0 2016-07-14 08:29 UTC

This package is auto-updated.

Last update: 2025-10-13 23:19:06 UTC


README

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