All Notable changes to schema-org
will be documented in this file.
- add identifiers to
\Spatie\SchemaOrg\Graph
nodes #124
- RDFa update
- fix after malformed RDFa import twitter.com/ScreamingDev
- RDFa update
- Fix types to implement their own contract
- Use contracts as type-hints in doc-blocks
- Add PHP 7.4 support
- Fix
Graph
magic call - RDFa update
- Drop PHP 7.2 support
- Drop PHP 7.1 support
- Drop PHP 7.0 support
- Fix identifier serialization
- Add reflection support
- RDFa update
- Fix null values
- Fix pending Types
- RDFa update
- Add
Graph
support
- Convert invalid objects that have a
__toString
method to strings
- Fix previous release
- Use
https
protocol for Schema.org links
- 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
- Regenerated types
- Added:
Enumeration
child types with constants, e.g.Spatie\Schema\DayOfWeek::Monday
.
- Added: All types are now json serializable and have array access
- Fixed: Date format in schemas is now ISO8601 (
DateTime::ATOM
)
- Fixed:
@param
hints for numbers (float|int
)
- Added:
BaseType::addProperties
method to add multiple properties in one go - Fixed:
@param
hints now also have array versions of the accepted data types, likestring|string[]
- Added:
__call
catches unknown methods and callssetProperty
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
- Fixed: New lines are considered and no longer break docs
- Fixed: HTML line breaks are removed from the docs
- 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
- Added:
if
function to conditionally modify the schema
- Fixed: Arrays of properties are now correctly serialized when converted to ld+json
- Initial release