rakshazi/gsd-generator
Composer 安装命令:
composer require rakshazi/gsd-generator
包简介
Google Structured Data generator
README 文档
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:
- 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);
统计信息
- 总下载量: 4.85k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 2
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2016-07-14