Weave Code
Code Weaver
Helps Laravel developers discover, compare, and choose open-source packages. See popularity, security, maintainers, and scores at a glance to make better decisions.
Feedback
Share your thoughts, report bugs, or suggest improvements.
Subject
Message

Schema Org Laravel Package

spatie/schema-org

Fluent PHP builder for Schema.org: generate any type and property from the full core vocabulary and output valid JSON-LD (ld+json) script tags. Generated from the official Schema.org JSON-LD, with documented classes and methods.

View on GitHub
Deep Wiki
Context7
4.0.0

What's Changed

  • Upgrade schema.org definitions to v29.3 (#238 by @Soean)
  • Drop PHP 8.0 and 8.1 support (now requires PHP ^8.2)
  • Add PHP 8.5 support
  • Add JSON_UNESCAPED_SLASHES to toScript() output
  • Upgrade dev dependencies (Pest 2/3, PHPUnit 10, Symfony 6/7)
  • Upgrade phpunit.xml.dist to PHPUnit 10 format
  • Add return type declarations to generator commands
3.23.1

What's Changed

New Contributors

Full Changelog: https://github.com/spatie/schema-org/compare/3.23.0...3.23.1

3.23.0
3.15.0
3.14.0

What's Changed

New Contributors

Full Changelog: https://github.com/spatie/schema-org/compare/3.13.0...3.14.0

3.13.0
3.12.0

What's Changed

New Contributors

Full Changelog: https://github.com/spatie/schema-org/compare/3.11.0...3.12.0

3.11.0
3.10.0
  • Drop PHP 7.4 Support - #174
  • Add PHP 8.1 Support - #174
3.9.0
  • Add support for Laravel 9 - #176
3.8.0
  • Upgrade to schema.org:v13.0 - #167
3.7.0
  • Upgrade to schema.org:v12.0 - #170
3.6.0
  • Upgrade to schema.org:v11.01 - #169
3.5.0
  • Upgrade to schema.org:v10 - #166
  • Drop PHP 7.3 support - #165
  • Add PHP 8.1 support - #165
3.4.0
  • Add custom \Spatie\SchemaOrg\Graph context support - #160
3.3.0
  • Fix [@id](https://github.com/id) and identifier serialization for typed identifiers - #157
3.2.1
  • Add PHP 8.0 support
3.2.0
  • Add \Spatie\SchemaOrg\ReferencedType to reference types in schemas and graphs - #155
3.1.1
  • Fix empty string property values - #153
3.1.0
  • Add Multi-Typed-Entity support \Spatie\SchemaOrg\MultiTypedEntity - #148
3.0.0
  • Upgrade to schema.org:v9 which includes all extensions
2.16.0
  • Upgrade to schema.org:v8
2.15.0

Generated files with new JSON-LD source - some methods have been dropped which aren't part of the corresponding types but were listed in old RDFa - it's not a breaking release because of the same schema.org version and changes only because of schema file inconsistencies.

2.14.1
  • Fix \BadMethodCallException message thrown in \Spatie\SchemaOrg\Graph
  • Fix \Spatie\SchemaOrg\Graph docblock [@method](https://github.com/method) annotations
2.14.0
  • Add identifiers to \Spatie\SchemaOrg\Graph nodes #124
2.13.0
  • RDFa update
2.12.1
2.12.0
  • RDFa update
2.11.1
  • Fix types to implement their own contract
2.11.0
  • Use contracts as type-hints in doc-blocks
2.10.0
  • Add PHP 7.4 support
  • Fix Graph magic call
  • RDFa update
2.9.0
  • Drop PHP 7.2 support
2.8.0
  • Drop PHP 7.1 support
2.7.0
  • Drop PHP 7.0 support
2.6.0
  • Fix identifier serialization
2.5.0
  • Add reflection support
2.4.0
  • RDFa update
2.3.0
  • Fix null values
2.2.1
  • Fix pending Types
2.2.0
  • RDFa update
2.1.0
  • Add Graph support
2.0.3
  • Convert invalid objects that have a __toString method to strings
2.0.2
  • Fix previous release
2.0.1
  • Use https protocol for Schema.org links
2.0.0
  • Supports multiple type inheritance. Types no longer extend each other, they all are a direct extension of BaseType
  • This release probably doesn't contain any breaking changes for most people. It breaks all type checks (e.g. instanceof LocalBusiness), but doesn't change the way types are generated
1.7.0
  • Regenerated types
1.6.0
  • Added: Enumeration child types with constants, e.g. Spatie\Schema\DayOfWeek::Monday.
1.5.0
  • Added: All types are now json serializable and have array access
1.4.2
  • Fixed: Date format in schemas is now ISO8601 (DateTime::ATOM)
1.4.1
  • Fixed: [@param](https://github.com/param) hints for numbers (float|int)
1.4.0
  • Added: BaseType::addProperties method to add multiple properties in one go
  • Fixed: [@param](https://github.com/param) hints now also have array versions of the accepted data types, like string|string[]
1.3.0
  • Added: __call catches unknown methods and calls setProperty under the hood, using the method name as the property name and the first argument as property value
  • Added (by updating generated types): CreativeWork::accessMode, CreativeWork::accessModeSufficient, CreativeWork::accessibilitySummary, Event::audience, FoodEstablishment::hasMenu
  • Removed (by updating generated types, note that this isn't breaking because __call will catch your method calls): Menu::menuAddOn
1.2.1
  • Fixed: New lines are considered and no longer break docs
  • Fixed: HTML line breaks are removed from the docs
1.2.0
  • Added: Objects that implements DateTimeInterface are now formatted to an ISO 8601 compliant string
  • Fixed: Some properties were missing due to some whitespace parsing issues
1.1.0
  • Added: if function to conditionally modify the schema
1.0.1
  • Fixed: Arrays of properties are now correctly serialized when converted to ld+json
1.0.0
  • Initial release
What's
Weaver

How can I help you explore Laravel packages today?

Conversation history is not saved when not logged in.
Prompt
Add packages to context
No packages found.
davejamesmiller/laravel-breadcrumbs
artisanry/parsedown
christhompsontldr/phpsdk
enqueue/dsn
bunny/bunny
enqueue/test
enqueue/null
enqueue/amqp-tools
milesj/emojibase
bower-asset/punycode
bower-asset/inputmask
bower-asset/jquery
bower-asset/yii2-pjax
laravel/nova
spatie/laravel-mailcoach
spatie/laravel-superseeder
laravel/liferaft
nst/json-test-suite
danielmiessler/sec-lists
jackalope/jackalope-transport