定制 nilportugues/schema-org 二次开发

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

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

nilportugues/schema-org

Composer 安装命令:

composer require nilportugues/schema-org

包简介

Schema.org mapping for JSON-LD generation

README 文档

README

Build Status Scrutinizer Code Quality SensioLabsInsight Latest Stable Version Total Downloads License Donate

A fluent interface to create mappings using Schema.org for Microdata and JSON-LD, supporting Schema.org v2.2 (latest).

Installation

Use Composer to install the package:

$ composer require nilportugues/schema-org

Usage

All you need to do is call the SchemaOrg::schemas() method and a fluent interface will be at your disposal.

Having a fluent interface makes it really easy to use as no previous knowledge of the Schemas is required. Considering how complex are the provided schemas by Schema.org this is really a relieve!

The interface will guide you to sub-schemas or down to property level.

use NilPortugues\SchemaOrg\SchemaOrg;

$mapping = SchemaOrg::schemas()->blogPosting()->articleSection();

echo $mapping->name(); // returns "articleSection"
echo $mapping->url(); // returns "http://schema.org/articleSection"
echo $mapping->usedBy(); // returns "http://schema.org/Article"

Why?

Schema.org vocabularies cover entities, relationships between entities and actions, and can easily be extended through a well-documented extension model.

Over 10 million sites use Schema.org to markup their web pages and email messages, including Google, Microsoft, Pinterest, Yandex and others.

Contribute

Contributions to the package are always welcome!

Support

Get in touch with me using one of the following means:

Authors

License

The code base is licensed under the MIT license.

统计信息

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

GitHub 信息

  • Stars: 31
  • Watchers: 2
  • Forks: 3
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2015-12-19

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固