library gsd-generator
Google Structured Data generator
rakshazi/gsd-generator
Google Structured Data generator
- Wednesday, July 20, 2016
- by rakshazi
- Repository
- 0 Watchers
- 0 Stars
- 522 Installations
- PHP
- 0 Dependents
- 0 Suggesters
- 0 Forks
- 0 Open issues
- 2 Versions
- 71 % Grown
Google Structured Data generator
This library has only needed for repo owner functions. If you want something else, feel free to create issue., (*1)
Generates <script type="application/ld+json"></script>
with ld markup of passed data. See comments inside class if you want know more., (*2)
Supported data types:, (*3)
-
Breadcrumbs
$result = \Rakshazi\GsdGenerator::getBreadcrumbs($data);
-
Sitelinks Searchbox
$result = \Rakshazi\GsdGenerator::getSearchbox($url, $search_url);
-
Your Site Name in Results
$result = \Rakshazi\GsdGenerator::getSitename($name, $alt_name, $url);
-
Search Gallery / Product
$result = \Rakshazi\GsdGenerator::getProduct($productData);