From 6a11078b8ab82e870394b2149d9a6bd5a41948ed Mon Sep 17 00:00:00 2001 From: Mark Scherer Date: Tue, 25 Aug 2026 18:21:59 +0200 Subject: [PATCH 1/5] Prototype oEmbed-only provider support --- README.md | 2 +- data/stubs.php | 18 +++++++++++- docs/README.md | 35 ++++++++++++++++++++++-- docs/supported.md | 23 ++++++++-------- src/Docs/Generator.php | 8 +++++- src/MediaEmbed.php | 24 ++++++++++++++-- src/Provider/ProviderCollection.php | 7 +++++ src/Provider/ProviderConfig.php | 29 +++++++++++++++++--- src/Provider/ProviderValidator.php | 5 +++- tests/Fixture/provider_urls.php | 6 ++++ tests/MediaEmbedTest.php | 34 +++++++++++++++++++++-- tests/Provider/ProviderConfigTest.php | 32 ++++++++++++++++++++-- tests/Provider/ProviderValidatorTest.php | 17 +++++++++++- tests/ProviderFixtureTest.php | 7 ++++- 14 files changed, 218 insertions(+), 29 deletions(-) diff --git a/README.md b/README.md index b04c1f4..54e4738 100644 --- a/README.md +++ b/README.md @@ -10,7 +10,7 @@ A utility library that generates HTML embed tags for audio or video located on a given URL. It also parses and validates given media URLs. -It currently works with [~42 services](docs/supported.md), including the most important ones like +It currently works with [40+ services](docs/supported.md), including the most important ones like - YouTube - Vimeo diff --git a/data/stubs.php b/data/stubs.php index eb2d36e..eaa577a 100644 --- a/data/stubs.php +++ b/data/stubs.php @@ -20,7 +20,8 @@ * - "embed-width" (string) Width of the embed (in pixels) * - "embed-height" (string) Height of the embed (in pixels) * - "image-src" (string) For preview thumbnail image - * - "iframe-player" (string) If an