An open API service indexing awesome lists of open source software.

https://github.com/rakshazi/gsd-generator

Google Structured Data generator :+1:
https://github.com/rakshazi/gsd-generator

Last synced: 3 months ago
JSON representation

Google Structured Data generator :+1:

Awesome Lists containing this project

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 `` with ld markup of passed data. See comments inside class if you want know more.

**Supported data types**:

1. [Breadcrumbs](https://developers.google.com/search/docs/data-types/breadcrumbs) `$result = \Rakshazi\GsdGenerator::getBreadcrumbs($data);`
2. [Sitelinks Searchbox](https://developers.google.com/search/docs/data-types/sitelinks-searchbox) `$result = \Rakshazi\GsdGenerator::getSearchbox($url, $search_url);`
3. [Your Site Name in Results](https://developers.google.com/search/docs/data-types/sitename) `$result = \Rakshazi\GsdGenerator::getSitename($name, $alt_name, $url);`
4. [Search Gallery / Product](https://developers.google.com/search/docs/guides/search-gallery) `$result = \Rakshazi\GsdGenerator::getProduct($productData);`