Skip to content
Merged

v0.4 #12

Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
php-versions: ['8.0', '8.1', '8.2', '8.3', '8.4', '8.5']
php-versions: ['8.2', '8.3', '8.4', '8.5']

steps:
- name: Checkout code
Expand Down Expand Up @@ -36,7 +36,7 @@ jobs:
- name: Install PHP
uses: shivammathur/setup-php@v2
with:
php-version: '8.0'
php-version: '8.2'

- name: Install dependencies
run: composer install --prefer-dist --no-progress
Expand Down
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,13 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [Unreleased]

## [0.4.0] - 2026-05-02
### Changed
* __BREAKING__: Dropped support for PHP 8.0 and 8.1.
* __BREAKING__: Dropped support for usage with symfony/dom-crawler v6.
* Updated types list from spatie/schema-org v4.0.2.
* Support for usage with symfony/dom-crawler v8. Thx to [@chr-hertel](https://github.com/chr-hertel)!

## [0.3.4] - 2025-04-08
### Fixed
* An error when a `@graph` property contains only a single object instead of an array of objects. See issue: https://github.com/crwlrsoft/schema-org/issues/7
Expand Down
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
Copyright (c) 2025 Christian Olear
Copyright (c) 2026 Christian Olear

Permission is hereby granted, free of charge, to any person obtaining
a copy of this software and associated documentation files (the
Expand Down
10 changes: 5 additions & 5 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -42,15 +42,15 @@
}
},
"require": {
"php": "^8.0",
"spatie/schema-org": "~3.23.0",
"symfony/dom-crawler": "^6.0|^7.0|^8.0",
"php": "^8.2",
"spatie/schema-org": "~4.0.2",
"symfony/dom-crawler": "^7.0|^8.0",
"crwlr/utils": "^1.0",
"psr/log": "^2.0|^3.0"
},
"require-dev": {
"pestphp/pest": "^1.22|^2.0|^3.0|^4.0",
"phpstan/phpstan": "^1.8|^2.0",
"pestphp/pest": "^3.0|^4.0",
"phpstan/phpstan": "^2.0",
"friendsofphp/php-cs-fixer": "^3.57"
},
"scripts": {
Expand Down
17 changes: 17 additions & 0 deletions src/TypeList.php
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,8 @@ class TypeList
'CategoryCodeSet' => 'Spatie\SchemaOrg\CategoryCodeSet',
'CatholicChurch' => 'Spatie\SchemaOrg\CatholicChurch',
'Cemetery' => 'Spatie\SchemaOrg\Cemetery',
'Certification' => 'Spatie\SchemaOrg\Certification',
'CertificationStatusEnumeration' => 'Spatie\SchemaOrg\CertificationStatusEnumeration',
'Chapter' => 'Spatie\SchemaOrg\Chapter',
'CheckAction' => 'Spatie\SchemaOrg\CheckAction',
'CheckInAction' => 'Spatie\SchemaOrg\CheckInAction',
Expand Down Expand Up @@ -181,6 +183,7 @@ class TypeList
'ConvenienceStore' => 'Spatie\SchemaOrg\ConvenienceStore',
'Conversation' => 'Spatie\SchemaOrg\Conversation',
'CookAction' => 'Spatie\SchemaOrg\CookAction',
'Cooperative' => 'Spatie\SchemaOrg\Cooperative',
'Corporation' => 'Spatie\SchemaOrg\Corporation',
'CorrectionComment' => 'Spatie\SchemaOrg\CorrectionComment',
'Country' => 'Spatie\SchemaOrg\Country',
Expand Down Expand Up @@ -299,6 +302,7 @@ class TypeList
'FastFoodRestaurant' => 'Spatie\SchemaOrg\FastFoodRestaurant',
'Festival' => 'Spatie\SchemaOrg\Festival',
'FilmAction' => 'Spatie\SchemaOrg\FilmAction',
'FinancialIncentive' => 'Spatie\SchemaOrg\FinancialIncentive',
'FinancialProduct' => 'Spatie\SchemaOrg\FinancialProduct',
'FinancialService' => 'Spatie\SchemaOrg\FinancialService',
'FindAction' => 'Spatie\SchemaOrg\FindAction',
Expand All @@ -312,6 +316,7 @@ class TypeList
'FoodEstablishmentReservation' => 'Spatie\SchemaOrg\FoodEstablishmentReservation',
'FoodEvent' => 'Spatie\SchemaOrg\FoodEvent',
'FoodService' => 'Spatie\SchemaOrg\FoodService',
'FulfillmentTypeEnumeration' => 'Spatie\SchemaOrg\FulfillmentTypeEnumeration',
'FundingAgency' => 'Spatie\SchemaOrg\FundingAgency',
'FundingScheme' => 'Spatie\SchemaOrg\FundingScheme',
'FurnitureStore' => 'Spatie\SchemaOrg\FurnitureStore',
Expand Down Expand Up @@ -381,6 +386,9 @@ class TypeList
'ImageObject' => 'Spatie\SchemaOrg\ImageObject',
'ImageObjectSnapshot' => 'Spatie\SchemaOrg\ImageObjectSnapshot',
'ImagingTest' => 'Spatie\SchemaOrg\ImagingTest',
'IncentiveQualifiedExpenseType' => 'Spatie\SchemaOrg\IncentiveQualifiedExpenseType',
'IncentiveStatus' => 'Spatie\SchemaOrg\IncentiveStatus',
'IncentiveType' => 'Spatie\SchemaOrg\IncentiveType',
'IndividualPhysician' => 'Spatie\SchemaOrg\IndividualPhysician',
'IndividualProduct' => 'Spatie\SchemaOrg\IndividualProduct',
'InfectiousAgentClass' => 'Spatie\SchemaOrg\InfectiousAgentClass',
Expand Down Expand Up @@ -497,6 +505,8 @@ class TypeList
'MedicalWebPage' => 'Spatie\SchemaOrg\MedicalWebPage',
'MedicineSystem' => 'Spatie\SchemaOrg\MedicineSystem',
'MeetingRoom' => 'Spatie\SchemaOrg\MeetingRoom',
'MemberProgram' => 'Spatie\SchemaOrg\MemberProgram',
'MemberProgramTier' => 'Spatie\SchemaOrg\MemberProgramTier',
'MensClothingStore' => 'Spatie\SchemaOrg\MensClothingStore',
'Menu' => 'Spatie\SchemaOrg\Menu',
'MenuItem' => 'Spatie\SchemaOrg\MenuItem',
Expand Down Expand Up @@ -569,6 +579,7 @@ class TypeList
'OfficeEquipmentStore' => 'Spatie\SchemaOrg\OfficeEquipmentStore',
'OnDemandEvent' => 'Spatie\SchemaOrg\OnDemandEvent',
'OnlineBusiness' => 'Spatie\SchemaOrg\OnlineBusiness',
'OnlineMarketplace' => 'Spatie\SchemaOrg\OnlineMarketplace',
'OnlineStore' => 'Spatie\SchemaOrg\OnlineStore',
'OpeningHoursSpecification' => 'Spatie\SchemaOrg\OpeningHoursSpecification',
'OpinionNewsArticle' => 'Spatie\SchemaOrg\OpinionNewsArticle',
Expand Down Expand Up @@ -596,6 +607,7 @@ class TypeList
'PaymentCard' => 'Spatie\SchemaOrg\PaymentCard',
'PaymentChargeSpecification' => 'Spatie\SchemaOrg\PaymentChargeSpecification',
'PaymentMethod' => 'Spatie\SchemaOrg\PaymentMethod',
'PaymentMethodType' => 'Spatie\SchemaOrg\PaymentMethodType',
'PaymentService' => 'Spatie\SchemaOrg\PaymentService',
'PaymentStatusType' => 'Spatie\SchemaOrg\PaymentStatusType',
'PeopleAudience' => 'Spatie\SchemaOrg\PeopleAudience',
Expand Down Expand Up @@ -663,6 +675,7 @@ class TypeList
'PublicationEvent' => 'Spatie\SchemaOrg\PublicationEvent',
'PublicationIssue' => 'Spatie\SchemaOrg\PublicationIssue',
'PublicationVolume' => 'Spatie\SchemaOrg\PublicationVolume',
'PurchaseType' => 'Spatie\SchemaOrg\PurchaseType',
'QAPage' => 'Spatie\SchemaOrg\QAPage',
'QualitativeValue' => 'Spatie\SchemaOrg\QualitativeValue',
'QuantitativeValue' => 'Spatie\SchemaOrg\QuantitativeValue',
Expand Down Expand Up @@ -750,10 +763,13 @@ class TypeList
'Series' => 'Spatie\SchemaOrg\Series',
'Service' => 'Spatie\SchemaOrg\Service',
'ServiceChannel' => 'Spatie\SchemaOrg\ServiceChannel',
'ServicePeriod' => 'Spatie\SchemaOrg\ServicePeriod',
'ShareAction' => 'Spatie\SchemaOrg\ShareAction',
'SheetMusic' => 'Spatie\SchemaOrg\SheetMusic',
'ShippingConditions' => 'Spatie\SchemaOrg\ShippingConditions',
'ShippingDeliveryTime' => 'Spatie\SchemaOrg\ShippingDeliveryTime',
'ShippingRateSettings' => 'Spatie\SchemaOrg\ShippingRateSettings',
'ShippingService' => 'Spatie\SchemaOrg\ShippingService',
'ShoeStore' => 'Spatie\SchemaOrg\ShoeStore',
'ShoppingCenter' => 'Spatie\SchemaOrg\ShoppingCenter',
'ShortStory' => 'Spatie\SchemaOrg\ShortStory',
Expand Down Expand Up @@ -824,6 +840,7 @@ class TypeList
'3DModel' => 'Spatie\SchemaOrg\ThreeDimensionalModel',
'Ticket' => 'Spatie\SchemaOrg\Ticket',
'TieAction' => 'Spatie\SchemaOrg\TieAction',
'TierBenefitEnumeration' => 'Spatie\SchemaOrg\TierBenefitEnumeration',
'TipAction' => 'Spatie\SchemaOrg\TipAction',
'TireShop' => 'Spatie\SchemaOrg\TireShop',
'TouristAttraction' => 'Spatie\SchemaOrg\TouristAttraction',
Expand Down
Loading