Skip to content
Open
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
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
"doctrine/dbal": "^3.10.4",
"egulias/email-validator": "^4.0.4",
"firebase/php-jwt": "^7.0",
"fusonic/opengraph": "^3.0.0",
"fusonic/opengraph": "^3.1.0",
"gapple/structured-fields": "^2.3",
"giggsey/libphonenumber-for-php-lite": "^9.0.9",
"guzzlehttp/guzzle": "^7.15.2",
Expand Down
42 changes: 21 additions & 21 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions composer/autoload_classmap.php
Original file line number Diff line number Diff line change
Expand Up @@ -3148,11 +3148,13 @@
'Symfony\\Component\\CssSelector\\Node\\ElementNode' => $vendorDir . '/symfony/css-selector/Node/ElementNode.php',
'Symfony\\Component\\CssSelector\\Node\\FunctionNode' => $vendorDir . '/symfony/css-selector/Node/FunctionNode.php',
'Symfony\\Component\\CssSelector\\Node\\HashNode' => $vendorDir . '/symfony/css-selector/Node/HashNode.php',
'Symfony\\Component\\CssSelector\\Node\\MatchingNode' => $vendorDir . '/symfony/css-selector/Node/MatchingNode.php',
'Symfony\\Component\\CssSelector\\Node\\NegationNode' => $vendorDir . '/symfony/css-selector/Node/NegationNode.php',
'Symfony\\Component\\CssSelector\\Node\\NodeInterface' => $vendorDir . '/symfony/css-selector/Node/NodeInterface.php',
'Symfony\\Component\\CssSelector\\Node\\PseudoNode' => $vendorDir . '/symfony/css-selector/Node/PseudoNode.php',
'Symfony\\Component\\CssSelector\\Node\\SelectorNode' => $vendorDir . '/symfony/css-selector/Node/SelectorNode.php',
'Symfony\\Component\\CssSelector\\Node\\Specificity' => $vendorDir . '/symfony/css-selector/Node/Specificity.php',
'Symfony\\Component\\CssSelector\\Node\\SpecificityAdjustmentNode' => $vendorDir . '/symfony/css-selector/Node/SpecificityAdjustmentNode.php',
'Symfony\\Component\\CssSelector\\Parser\\Handler\\CommentHandler' => $vendorDir . '/symfony/css-selector/Parser/Handler/CommentHandler.php',
'Symfony\\Component\\CssSelector\\Parser\\Handler\\HandlerInterface' => $vendorDir . '/symfony/css-selector/Parser/Handler/HandlerInterface.php',
'Symfony\\Component\\CssSelector\\Parser\\Handler\\HashHandler' => $vendorDir . '/symfony/css-selector/Parser/Handler/HashHandler.php',
Expand Down
2 changes: 2 additions & 0 deletions composer/autoload_static.php
Original file line number Diff line number Diff line change
Expand Up @@ -3703,11 +3703,13 @@ class ComposerStaticInit2f23f73bc0cc116b4b1eee1521aa8652
'Symfony\\Component\\CssSelector\\Node\\ElementNode' => __DIR__ . '/..' . '/symfony/css-selector/Node/ElementNode.php',
'Symfony\\Component\\CssSelector\\Node\\FunctionNode' => __DIR__ . '/..' . '/symfony/css-selector/Node/FunctionNode.php',
'Symfony\\Component\\CssSelector\\Node\\HashNode' => __DIR__ . '/..' . '/symfony/css-selector/Node/HashNode.php',
'Symfony\\Component\\CssSelector\\Node\\MatchingNode' => __DIR__ . '/..' . '/symfony/css-selector/Node/MatchingNode.php',
'Symfony\\Component\\CssSelector\\Node\\NegationNode' => __DIR__ . '/..' . '/symfony/css-selector/Node/NegationNode.php',
'Symfony\\Component\\CssSelector\\Node\\NodeInterface' => __DIR__ . '/..' . '/symfony/css-selector/Node/NodeInterface.php',
'Symfony\\Component\\CssSelector\\Node\\PseudoNode' => __DIR__ . '/..' . '/symfony/css-selector/Node/PseudoNode.php',
'Symfony\\Component\\CssSelector\\Node\\SelectorNode' => __DIR__ . '/..' . '/symfony/css-selector/Node/SelectorNode.php',
'Symfony\\Component\\CssSelector\\Node\\Specificity' => __DIR__ . '/..' . '/symfony/css-selector/Node/Specificity.php',
'Symfony\\Component\\CssSelector\\Node\\SpecificityAdjustmentNode' => __DIR__ . '/..' . '/symfony/css-selector/Node/SpecificityAdjustmentNode.php',
'Symfony\\Component\\CssSelector\\Parser\\Handler\\CommentHandler' => __DIR__ . '/..' . '/symfony/css-selector/Parser/Handler/CommentHandler.php',
'Symfony\\Component\\CssSelector\\Parser\\Handler\\HandlerInterface' => __DIR__ . '/..' . '/symfony/css-selector/Parser/Handler/HandlerInterface.php',
'Symfony\\Component\\CssSelector\\Parser\\Handler\\HashHandler' => __DIR__ . '/..' . '/symfony/css-selector/Parser/Handler/HashHandler.php',
Expand Down
46 changes: 23 additions & 23 deletions composer/installed.json
Original file line number Diff line number Diff line change
Expand Up @@ -928,17 +928,17 @@
},
{
"name": "fusonic/opengraph",
"version": "v3.0.0",
"version_normalized": "3.0.0.0",
"version": "v3.1.0",
"version_normalized": "3.1.0.0",
"source": {
"type": "git",
"url": "https://github.com/fusonic/opengraph.git",
"reference": "2daa6dce84f23b1bb6d66bf03b3e9371c39cd378"
"reference": "199fc2fb33a4b519e512fe33a0d2cb53455ae63c"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/fusonic/opengraph/zipball/2daa6dce84f23b1bb6d66bf03b3e9371c39cd378",
"reference": "2daa6dce84f23b1bb6d66bf03b3e9371c39cd378",
"url": "https://api.github.com/repos/fusonic/opengraph/zipball/199fc2fb33a4b519e512fe33a0d2cb53455ae63c",
"reference": "199fc2fb33a4b519e512fe33a0d2cb53455ae63c",
"shasum": ""
},
"require": {
Expand All @@ -963,7 +963,7 @@
"nyholm/psr7": "^1.8",
"symfony/http-client": "^5.4 || ^6.4 || ^7.1"
},
"time": "2025-01-13T07:23:24+00:00",
"time": "2026-05-11T17:33:04+00:00",
"type": "library",
"installation-source": "dist",
"autoload": {
Expand All @@ -988,7 +988,7 @@
],
"support": {
"issues": "https://github.com/fusonic/opengraph/issues",
"source": "https://github.com/fusonic/opengraph/tree/v3.0.0"
"source": "https://github.com/fusonic/opengraph/tree/v3.1.0"
},
"install-path": "../fusonic/opengraph"
},
Expand Down Expand Up @@ -2053,27 +2053,27 @@
},
{
"name": "masterminds/html5",
"version": "2.10.0",
"version_normalized": "2.10.0.0",
"version": "2.10.1",
"version_normalized": "2.10.1.0",
"source": {
"type": "git",
"url": "https://github.com/Masterminds/html5-php.git",
"reference": "fcf91eb64359852f00d921887b219479b4f21251"
"reference": "fd5018f6815fff903946d0564977b44ce8010e29"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/Masterminds/html5-php/zipball/fcf91eb64359852f00d921887b219479b4f21251",
"reference": "fcf91eb64359852f00d921887b219479b4f21251",
"url": "https://api.github.com/repos/Masterminds/html5-php/zipball/fd5018f6815fff903946d0564977b44ce8010e29",
"reference": "fd5018f6815fff903946d0564977b44ce8010e29",
"shasum": ""
},
"require": {
"ext-dom": "*",
"php": ">=5.3.0"
},
"require-dev": {
"phpunit/phpunit": "^4.8.35 || ^5.7.21 || ^6 || ^7 || ^8 || ^9"
"phpunit/phpunit": "^4.8.35 || ^5.7.21 || ^6 || ^7 || ^8 || ^9 || ^10"
},
"time": "2025-07-25T09:04:22+00:00",
"time": "2026-06-23T18:43:15+00:00",
"type": "library",
"extra": {
"branch-alias": {
Expand Down Expand Up @@ -2117,7 +2117,7 @@
],
"support": {
"issues": "https://github.com/Masterminds/html5-php/issues",
"source": "https://github.com/Masterminds/html5-php/tree/2.10.0"
"source": "https://github.com/Masterminds/html5-php/tree/2.10.1"
},
"install-path": "../masterminds/html5"
},
Expand Down Expand Up @@ -4697,23 +4697,23 @@
},
{
"name": "symfony/css-selector",
"version": "v6.4.24",
"version_normalized": "6.4.24.0",
"version": "v7.4.9",
"version_normalized": "7.4.9.0",
"source": {
"type": "git",
"url": "https://github.com/symfony/css-selector.git",
"reference": "9b784413143701aa3c94ac1869a159a9e53e8761"
"reference": "b75663ed96cf4756e28e3105476f220f92886cc4"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/symfony/css-selector/zipball/9b784413143701aa3c94ac1869a159a9e53e8761",
"reference": "9b784413143701aa3c94ac1869a159a9e53e8761",
"url": "https://api.github.com/repos/symfony/css-selector/zipball/b75663ed96cf4756e28e3105476f220f92886cc4",
"reference": "b75663ed96cf4756e28e3105476f220f92886cc4",
"shasum": ""
},
"require": {
"php": ">=8.1"
"php": ">=8.2"
},
"time": "2025-07-10T08:14:14+00:00",
"time": "2026-04-18T13:18:21+00:00",
"type": "library",
"installation-source": "dist",
"autoload": {
Expand Down Expand Up @@ -4745,7 +4745,7 @@
"description": "Converts CSS selectors to XPath expressions",
"homepage": "https://symfony.com",
"support": {
"source": "https://github.com/symfony/css-selector/tree/v6.4.24"
"source": "https://github.com/symfony/css-selector/tree/v7.4.9"
},
"funding": [
{
Expand Down
18 changes: 9 additions & 9 deletions composer/installed.php
Original file line number Diff line number Diff line change
Expand Up @@ -128,9 +128,9 @@
'dev_requirement' => false,
),
'fusonic/opengraph' => array(
'pretty_version' => 'v3.0.0',
'version' => '3.0.0.0',
'reference' => '2daa6dce84f23b1bb6d66bf03b3e9371c39cd378',
'pretty_version' => 'v3.1.0',
'version' => '3.1.0.0',
'reference' => '199fc2fb33a4b519e512fe33a0d2cb53455ae63c',
'type' => 'library',
'install_path' => __DIR__ . '/../fusonic/opengraph',
'aliases' => array(),
Expand Down Expand Up @@ -263,9 +263,9 @@
'dev_requirement' => false,
),
'masterminds/html5' => array(
'pretty_version' => '2.10.0',
'version' => '2.10.0.0',
'reference' => 'fcf91eb64359852f00d921887b219479b4f21251',
'pretty_version' => '2.10.1',
'version' => '2.10.1.0',
'reference' => 'fd5018f6815fff903946d0564977b44ce8010e29',
'type' => 'library',
'install_path' => __DIR__ . '/../masterminds/html5',
'aliases' => array(),
Expand Down Expand Up @@ -695,9 +695,9 @@
'dev_requirement' => false,
),
'symfony/css-selector' => array(
'pretty_version' => 'v6.4.24',
'version' => '6.4.24.0',
'reference' => '9b784413143701aa3c94ac1869a159a9e53e8761',
'pretty_version' => 'v7.4.9',
'version' => '7.4.9.0',
'reference' => 'b75663ed96cf4756e28e3105476f220f92886cc4',
'type' => 'library',
'install_path' => __DIR__ . '/../symfony/css-selector',
'aliases' => array(),
Expand Down
9 changes: 9 additions & 0 deletions fusonic/opengraph/src/Elements/Image.php
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,11 @@ class Image extends ElementBase
*/
public ?bool $userGenerated = null;

/**
* Alternative text for the image.
*/
public ?string $alt = null;

/**
* @param string $url URL to the image file
*/
Expand Down Expand Up @@ -84,6 +89,10 @@ public function getProperties(): array
$properties[] = new Property(Property::IMAGE_WIDTH, $this->width);
}

if (null !== $this->alt) {
$properties[] = new Property(Property::IMAGE_ALT, $this->alt);
}

if (null !== $this->userGenerated) {
$properties[] = new Property(Property::IMAGE_USER_GENERATED, $this->userGenerated);
}
Expand Down
4 changes: 4 additions & 0 deletions fusonic/opengraph/src/Objects/ObjectBase.php
Original file line number Diff line number Diff line change
Expand Up @@ -148,6 +148,7 @@ public function assignProperties(array $properties, bool $debug = false): void
case Property::IMAGE_SECURE_URL:
case Property::IMAGE_TYPE:
case Property::IMAGE_WIDTH:
case Property::IMAGE_ALT:
case Property::IMAGE_USER_GENERATED:
if (\count($this->images) > 0) {
$this->handleImageAttribute($this->images[\count($this->images) - 1], $name, $value);
Expand Down Expand Up @@ -223,6 +224,9 @@ private function handleImageAttribute(Image $element, string $name, string $valu
case Property::IMAGE_WIDTH:
$element->width = (int) $value;
break;
case Property::IMAGE_ALT:
$element->alt = $value;
break;
case Property::IMAGE_TYPE:
$element->type = $value;
break;
Expand Down
1 change: 1 addition & 0 deletions fusonic/opengraph/src/Property.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ class Property
public const IMAGE_TYPE = 'og:image:type';
public const IMAGE_URL = 'og:image:url';
public const IMAGE_WIDTH = 'og:image:width';
public const IMAGE_ALT = 'og:image:alt';
public const IMAGE_USER_GENERATED = 'og:image:user_generated';
public const LOCALE = 'og:locale';
public const LOCALE_ALTERNATE = 'og:locale:alternate';
Expand Down
4 changes: 4 additions & 0 deletions masterminds/html5/src/HTML5/Parser/Tokenizer.php
Original file line number Diff line number Diff line change
Expand Up @@ -1208,6 +1208,10 @@ protected function decodeCharacterReference($inAttribute = false)
*/
protected function is_alpha($input)
{
if (!is_string($input) || 1 !== strlen($input)) {
return false;
}

$code = ord($input);

return ($code >= 97 && $code <= 122) || ($code >= 65 && $code <= 90);
Expand Down
2 changes: 1 addition & 1 deletion masterminds/html5/src/HTML5/Serializer/OutputRules.php
Original file line number Diff line number Diff line change
Expand Up @@ -454,7 +454,7 @@ protected function closeTag($ele)
*/
protected function wr($text)
{
fwrite($this->out, $text);
fwrite($this->out, (string) $text);

return $this;
}
Expand Down
Loading