定制 hashandsalt/kirby3-schema 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

hashandsalt/kirby3-schema

Composer 安装命令:

composer require hashandsalt/kirby3-schema

包简介

Kirby 3 - Schema

README 文档

README

This plugin is for easily generating JSON Schema structured data.

Install

Download

Download and copy this repository to /site/plugins/kirby3-schema.

Composer

composer require hashandsalt/kirby3-schema

Commercial Usage

This plugin is free but if you use it in a commercial project please consider to

Usage

It's a wrapper around spatie/schema-org that turns it into a site method, used like this:

<?= $site->schema('LocalBusiness')
  ->name('Hash&Salt')
  ->email('email@example.com')
  ->contactPoint($page->schema('contactPoint')
  ->areaServed('Worldwide')
  ) ?>

You can use the if() method to prevent missing data from breaking the chain.

<?= $site->schema('LocalBusiness')
->name('Hash&Salt')

->if($page->email()->exists(), function ($site) {
  $site->schema('email')->email('email@example.com');
})

->contactPoint($page->schema('contactPoint')
->areaServed('Worldwide')
) ?>

It supports anything thats in the RDFa spec for structured data which is about 600 data points. Refer to schema.org site for details on each bit. Go nuts :)

统计信息

  • 总下载量: 1.69k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 17
  • 点击次数: 0
  • 依赖项目数: 1
  • 推荐数: 0

GitHub 信息

  • Stars: 17
  • Watchers: 1
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2020-01-24

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固