
schema-org
Generate Schema.org structured data and JSON-LD with a fluent builder for schema types.

About schema-org
spatie/schema-org is a PHP package that provides a fluent builder for Schema.org types and properties. Its classes are generated from Schema.org's JSON-LD standards file to cover the core vocabulary.
Types can be created through the Schema factory or with the new keyword, modified conditionally or with custom properties, and output as an array, JSON-LD script tag, or JSON string. There is no full API documentation, so type and property details must be checked in the source code or on schema.org.
Key features
- Fluent builder for Schema.org types and properties
- Create types via Schema factory or new keyword
- Render output as array, JSON-LD script, or JSON
- Access properties with array notation via ArrayAccess
- Conditionally modify schemas with if method
- Set and retrieve custom properties with methods
- Generated from Schema.org standards file to cover core vocabulary
- Classes and methods include documentation for quick reference
- Supports array, script tag, and JSON output formats
- No full API documentation for types and properties
schema-org at a glance
- Website
- github.com/spatie/schema-org
- Category
- Marketing & SEO › SEO & Web Analytics
- Type
- Open-source project
- Pricing
- Not confirmed. Check the site
- Open source
- Yes · Source code
- Language
- English
- Last checked
- Oct 6, 2026 · Online when checked
- Listed
- Oct 5, 2026
Guides for SEO & Web Analytics

schema-org alternatives
Tools and sites you could use instead, ranked by how closely they match.
Generate XML sitemaps and robots.txt files for static, pre-rendered and server-rendered Next.js sites.
Generate or serve dynamic XML sitemaps for Nuxt 2 projects with this sitemap module.
Growth Lab researches markets, runs campaigns, and reviews results using product data to guide the next growth cycle.
This Laravel package remembers a visitor's original referrer in session data, prioritizing UTM source and referring domain.
Connect Google Search Console to an MCP server and review search performance insights with Claude AI.
The elm-pages framework supports hybrid applications with full-stack and static routes.
Popular in SEO & Web Analytics
Well-known listings from the same topic.
schema-org FAQ
How is the package installed?
How can schema objects be output?
How are custom properties handled?
Tell us and an editor will check it.
Claim the listing and suggest updates yourself. An editor checks every claim first.












