{"id":15292261,"url":"https://github.com/wpscholar/wp-structured-video-data","last_synced_at":"2026-02-26T23:01:49.077Z","repository":{"id":57082354,"uuid":"189057574","full_name":"wpscholar/wp-structured-video-data","owner":"wpscholar","description":"Structured data for video embeds in WordPress.","archived":false,"fork":false,"pushed_at":"2019-05-28T15:42:18.000Z","size":2,"stargazers_count":6,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-08-04T07:36:42.731Z","etag":null,"topics":["wordpress","wordpress-development","wordpress-php-library"],"latest_commit_sha":null,"homepage":null,"language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/wpscholar.png","metadata":{"files":{"readme":"readme.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-05-28T15:41:23.000Z","updated_at":"2024-06-07T08:37:11.000Z","dependencies_parsed_at":"2022-08-24T14:58:20.381Z","dependency_job_id":null,"html_url":"https://github.com/wpscholar/wp-structured-video-data","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/wpscholar/wp-structured-video-data","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wpscholar%2Fwp-structured-video-data","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wpscholar%2Fwp-structured-video-data/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wpscholar%2Fwp-structured-video-data/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wpscholar%2Fwp-structured-video-data/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/wpscholar","download_url":"https://codeload.github.com/wpscholar/wp-structured-video-data/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wpscholar%2Fwp-structured-video-data/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29876342,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-26T22:37:10.609Z","status":"ssl_error","status_checked_at":"2026-02-26T22:37:09.019Z","response_time":89,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["wordpress","wordpress-development","wordpress-php-library"],"created_at":"2024-09-30T16:17:08.314Z","updated_at":"2026-02-26T23:01:49.054Z","avatar_url":"https://github.com/wpscholar.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# WP Structured Video Data\n\nStructured data for video embeds in WordPress.\n\nNot familiar with structured data? Take a look at these resources:\n\n- [Google Developers - Structured Video Data Reference](https://developers.google.com/search/docs/data-types/video)\n- [Schema.org - VideoObject Reference](https://schema.org/VideoObject)\n- [Google Structured Data Testing Tool](https://search.google.com/structured-data/testing-tool/u/0/)\n\n## Requirements\n\nPHP 5.6+\nWordPress 4.8+\n\n## Prerequisites\n\nInstall [Composer](https://getcomposer.org/)\n\n## Installation\n\n- Add the module to your WordPress plugin or theme project via Composer:\n\n```bash\ncomposer require wpscholar/wp-structured-video-data\n```\n\n- Make sure you have added the Composer autoloader to your project:\n\n```php\nrequire __DIR__ . '/vendor/autoload.php';\n\n``` \n\n## Usage\n\nBy default, all video embeds in WordPress will automatically have the appropriate structured data injected.\n\n## Advanced Usage\n\nIf you want to use this for specific video URLs that aren't within the WordPress content:\n\n```php\n\u003c?php\n\n$videoUrl = 'https://www.youtube.com/watch?v=V9I1-c9o1LM';\n$embed = wp_oembed_get( $videoUrl );\n$structuredData = new \\wpscholar\\WordPress\\StructuredVideoData( $videoUrl );\necho $structuredData-\u003erender( $embed ); // For JSON-LD format\n\n// OR\n\necho $structuredData-\u003erenderAsMicrodata( $embed ); // For Microdata format\n```\n\nNote that you will be responsible for also rendering the video embed. This can be done using [`wp_oembed_get()`](https://developer.wordpress.org/reference/functions/wp_oembed_get/).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwpscholar%2Fwp-structured-video-data","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwpscholar%2Fwp-structured-video-data","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwpscholar%2Fwp-structured-video-data/lists"}