2017 © Pedro PelĂĄez
 

library schema-org

Schema.org mapping for JSON-LD generation

image

nilportugues/schema-org

Schema.org mapping for JSON-LD generation

  • Sunday, March 6, 2016
  • by nilportugues
  • Repository
  • 3 Watchers
  • 30 Stars
  • 288 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 2 Forks
  • 0 Open issues
  • 4 Versions
  • 1 % Grown

The README.md

Schema.org Mapping

Build Status Scrutinizer Code Quality SensioLabsInsight Latest Stable Version Total Downloads License Donate, (*1)

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

Installation

Use Composer to install the package:, (*3)

$ 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., (*4)

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!, (*5)

The interface will guide you to sub-schemas or down to property level., (*6)

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., (*7)

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

Contribute

Contributions to the package are always welcome!, (*9)

Support

Get in touch with me using one of the following means:, (*10)

Authors

License

The code base is licensed under the MIT license., (*11)

The Versions

06/03 2016

dev-master

9999999-dev http://nilportugues.com

Schema.org mapping for JSON-LD generation

  Sources   Download

MIT

The Development Requires

25/12 2015

1.0.2

1.0.2.0 http://nilportugues.com

Schema.org mapping for JSON-LD generation

  Sources   Download

MIT

The Development Requires

19/12 2015

1.0.1

1.0.1.0 http://nilportugues.com

Schema.org mapping for JSON-LD generation

  Sources   Download

MIT

The Requires

 

The Development Requires

19/12 2015

1.0.0

1.0.0.0 http://nilportugues.com

Schema.org mapping for JSON-LD generation

  Sources   Download

MIT

The Requires

 

The Development Requires