PHPackages                             nilportugues/schema-org - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [API Development](/categories/api)
4. /
5. nilportugues/schema-org

ActiveLibrary[API Development](/categories/api)

nilportugues/schema-org
=======================

Schema.org mapping for JSON-LD generation

1.0.2(10y ago)314613MITPHP

Since Dec 19Pushed 10y ago2 watchersCompare

[ Source](https://github.com/nilportugues/schema.org-mapping)[ Packagist](https://packagist.org/packages/nilportugues/schema-org)[ Docs](http://nilportugues.com)[ RSS](/packages/nilportugues-schema-org/feed)WikiDiscussions master Synced 3w ago

READMEChangelog (3)Dependencies (3)Versions (4)Used By (0)

Schema.org Mapping
==================

[](#schemaorg-mapping)

[![Build Status](https://camo.githubusercontent.com/9bd8b27bea93e037ce17818d9e6d925797be9d4afb9a6b30814527be66699e03/68747470733a2f2f7472617669732d63692e6f72672f6e696c706f727475677565732f7068702d736368656d612e6f72672d6d617070696e672e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/nilportugues/php-schema.org-mapping)[![Scrutinizer Code Quality](https://camo.githubusercontent.com/d5f15098845970bfaf83415e6784171ef91ece955dda268710a4a006da272ded/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f6e696c706f727475677565732f736368656d612e6f72672d6d617070696e672f6261646765732f7175616c6974792d73636f72652e706e67)](https://scrutinizer-ci.com/g/nilportugues/schema.org-mapping/?branch=master) [![SensioLabsInsight](https://camo.githubusercontent.com/08581252954d45b91feb34873f88be7c3b3c0afe24733076783d992465f0b2d6/68747470733a2f2f696e73696768742e73656e73696f6c6162732e636f6d2f70726f6a656374732f64333261323961632d346635662d346564652d386161632d6361663664356532303232622f6d696e692e706e673f3f)](https://insight.sensiolabs.com/projects/d32a29ac-4f5f-4ede-8aac-caf6d5e2022b)[![Latest Stable Version](https://camo.githubusercontent.com/fb581facf5bd738457e472605d9ae6b228a14e7145221bff796a33206a4ed076/68747470733a2f2f706f7365722e707567782e6f72672f6e696c706f727475677565732f736368656d612d6f72672f762f737461626c65)](https://packagist.org/packages/nilportugues/schema-org)[![Total Downloads](https://camo.githubusercontent.com/41bbb7f8f2b1705af29bf534016cedffb18662916174766f8889df01c52658a9/68747470733a2f2f706f7365722e707567782e6f72672f6e696c706f727475677565732f736368656d612d6f72672f646f776e6c6f616473)](https://packagist.org/packages/nilportugues/schema-org)[![License](https://camo.githubusercontent.com/c595411d3ba31f3a3bfa28b573f8af9383f3d1bdece2cbf6b24dcf704c998f62/68747470733a2f2f706f7365722e707567782e6f72672f6e696c706f727475677565732f736368656d612d6f72672f6c6963656e7365)](https://packagist.org/packages/nilportugues/schema-org)[![Donate](https://camo.githubusercontent.com/7b6de155df30b37b25eb5fec52f9213680c3dbf067dfb7d7e2850ac4096c7d05/68747470733a2f2f7777772e70617970616c6f626a656374732e636f6d2f656e5f55532f692f62746e2f62746e5f646f6e6174655f534d2e676966)](https://paypal.me/nilportugues)

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

Installation
------------

[](#installation)

Use [Composer](https://getcomposer.org) to install the package:

```
$ composer require nilportugues/schema-org

```

Usage
-----

[](#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?
----

[](#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
----------

[](#contribute)

Contributions to the package are always welcome!

- Report any bugs or issues you find on the [issue tracker](https://github.com/nilportugues/schema.org-mapping/issues/new).
- You can grab the source code at the package's [Git repository](https://github.com/nilportugues/schema.org-mapping).

Support
-------

[](#support)

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

- Emailing me at
- Opening an [Issue](https://github.com/nilportugues/schema.org-mapping/issues/new)

Authors
-------

[](#authors)

- [Nil Portugués Calderó](http://nilportugues.com)
- [The Community Contributors](https://github.com/nilportugues/schema.org-mapping/graphs/contributors)

License
-------

[](#license)

The code base is licensed under the [MIT license](LICENSE).

###  Health Score

33

—

LowBetter than 72% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity24

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity65

Established project with proven stability

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~3 days

Total

3

Last Release

3833d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/beba5d66ff48128da92c91850e69b9294768718bcdc12e61cc9ee8453d0d6b69?d=identicon)[nilportugues](/maintainers/nilportugues)

---

Top Contributors

[![nilportugues](https://avatars.githubusercontent.com/u/550948?v=4)](https://github.com/nilportugues "nilportugues (34 commits)")

---

Tags

apibuilderjson-ldmappingmicrodatamicroservicemicroservicesphpphp7schemaschema-org

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/nilportugues-schema-org/health.svg)

```
[![Health](https://phpackages.com/badges/nilportugues-schema-org/health.svg)](https://phpackages.com/packages/nilportugues-schema-org)
```

###  Alternatives

[exsyst/swagger

A php library to manipulate Swagger specifications

35816.3M7](/packages/exsyst-swagger)[hubspot/api-client

Hubspot API client

24015.5M18](/packages/hubspot-api-client)[pocketmine/bedrock-protocol

An implementation of the Minecraft: Bedrock Edition protocol in PHP

172437.8k11](/packages/pocketmine-bedrock-protocol)[botman/driver-telegram

Telegram driver for BotMan

93452.6k6](/packages/botman-driver-telegram)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
