# spatie/schema-org

A fluent builder Schema.org types and ld+json generator

Repository: https://github.com/spatie/schema-org
Canonical: https://ross.abutalabs.com/products/schema-org
Homepage: https://freek.dev/2016/12/package-fluently-generate-schema-org-markup/
Language: PHP
License: MIT
License Family: permissive
Topics: schedule, php, google, seo, schema
Last push: 2026-08-07T12:04:31+00:00

## Health v2 (maintenance only)
Score: 93/100 (v2, computed 2026-09-02T17:46:02.011165+00:00)
- activity 96, release rhythm 84, longevity 100
- inputs: {"age_days": 3569, "days_push": 26, "days_rel": 26, "gap_med": 65, "n_releases_24m": 6}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1512, forks 145 (observed 2026-08-28T04:04:56.130887+00:00)

## What it is
A PHP library providing a fluent builder for all Schema.org types and their properties, generating JSON-LD (ld+json) structured data markup. Classes are auto-generated from Schema.org's official vocabulary definition, covering the entire core vocabulary with IDE-friendly docblocks.

## Use cases
- generate schema.org ld+json markup in php
- add structured data for google rich results
- build json-ld for local business seo
- generate organization schema markup fluently
- add seo structured data to laravel site
- create schema.org types with code completion

## When to choose
- you need type-safe, IDE-completable Schema.org markup in PHP
- you want to generate valid JSON-LD without hand-writing the vocabulary
- you're adding structured data to a PHP or Laravel web app for SEO

## When to avoid
- you work outside PHP
- you need microdata or RDFa output rather than JSON-LD
- you only need a one-off static snippet

## Facets
- artifact type: library
- maturity: active
- function: templating, serialization, developer-tools
- domain: web-development, apis
- platform: php
- tags: schema-org, ld-json, structured-data, seo, fluent-builder, microdata, web-server

## Member repositories
- spatie/schema-org (main) score 93

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:04:56.130887+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T04:32:21.367883+00:00, confidence not recorded.
  - readme: https://github.com/spatie/schema-org (fetched 2026-08-28T04:04:56.130887+00:00, sha 476f044ddcc9)
  - homepage: https://freek.dev/2016/12/package-fluently-generate-schema-org-markup/ (fetched 2026-08-29T11:36:15.115130+00:00, sha f14181787a2c)
  - site_page: https://freek.dev/about (fetched 2026-08-29T11:36:15.152498+00:00, sha e0ef9dccbb05)
- Data as of 2026-08-30T08:39:29.467469+00:00.
