{"id":31847257,"url":"https://github.com/opencontentcoop/ocembed","last_synced_at":"2026-01-20T16:34:48.047Z","repository":{"id":10641682,"uuid":"12868542","full_name":"OpencontentCoop/ocembed","owner":"OpencontentCoop","description":"OCEembed - Opencontent oEmbed operators","archived":false,"fork":false,"pushed_at":"2022-03-03T12:27:16.000Z","size":47,"stargazers_count":0,"open_issues_count":0,"forks_count":2,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-10-02T15:28:33.781Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/OpencontentCoop.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2013-09-16T13:52:42.000Z","updated_at":"2023-10-20T08:00:12.000Z","dependencies_parsed_at":"2022-09-22T20:40:27.383Z","dependency_job_id":null,"html_url":"https://github.com/OpencontentCoop/ocembed","commit_stats":null,"previous_names":[],"tags_count":11,"template":false,"template_full_name":null,"purl":"pkg:github/OpencontentCoop/ocembed","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/OpencontentCoop%2Focembed","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/OpencontentCoop%2Focembed/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/OpencontentCoop%2Focembed/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/OpencontentCoop%2Focembed/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/OpencontentCoop","download_url":"https://codeload.github.com/OpencontentCoop/ocembed/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/OpencontentCoop%2Focembed/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279010942,"owners_count":26084837,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-10-12T02:00:06.719Z","response_time":53,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":[],"created_at":"2025-10-12T09:42:47.472Z","updated_at":"2025-10-12T09:42:49.715Z","avatar_url":"https://github.com/OpencontentCoop.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"## OCEembed - Opencontent oEmbed operators\n\n[oEmbed](http://oembed.com/ \"oEmbed site\") is a format for allowing an embedded representation of a URL on third party sites.\n\noEmbed was designed to avoid having to copy and paste HTML from the site hosting the media you wish to embed. It supports videos, images, text, and more. \n\nThis eZ extension - loosely based on the WordPress oemabed implementation - offers the oEmbed easy embedding feature via some template operator.\n\n### Requirements\n\n* eZP \u003e= 4.X or 5.X (when running the Legacy Stack only)\n\n### Installation\n\nEnable the extension; clear all caches\n\n### Preinstalled embed provider:\n\n* blip.tv\n* DailyMotion\n* Flickr\n* FunnyOrDie.com\n* Hulu\n* Photobucklet\n* PollDaddy\n* Qik\n* Revision3\n* Scribd\n* Sideshare\n* SmugMug\n* Ustream\n* Viddler\n* Vimeo\n* Wordpress.tv\n* YouTube\n* Google Video\n* Twitter\n\nYou can add your own handler by creating a php class which implements oEmbedProviderInterface and adding a oEmbedProviders[] in ocembed.ini.\n\n\n## Available template operators\n\n#### autoembed( mixed $separator, hash $parameters )\n\nPrint the html value of oEmbed response.\n\nThe `separator` and `parameters` variables are not required.\n\nThe `separator` value can be a string or an array.\nThe default `separator` value is `array( '\u003cdiv class=\"text-center\"\u003e', '\u003c/div\u003e' )`\n\nThe `parameters` value must be an array and overrides the default ocembed.ini width and height parameters [OCEmbedSettings].EmbedDefaults.\n\nExample:\n```tpl\n{\"http://www.slideshare.net/gggeek/ezpublish-meets-simfony2-phpday2013\"|autoembed( array( '\u003cdiv class=\"media-embed\"\u003e', '\u003c/div\u003e' ), hash( 'width', '425', 'height', '355' ) )}\n```\n\nThe example returns (without html comments):\n```html\n\u003c!-- separator --\u003e\n\u003cdiv class=\"media-embed\"\u003e\n\u003c!-- start of result of oembed fetch --\u003e\n\u003cobject width=\"425\" height=\"355\" id=\"__sse21389517\"\u003e\n    \u003cparam value=\"http://static.slidesharecdn.com/swf/ssplayer2.swf?doc=sf2ezpphpday2013-130518043919-phpapp01\u0026amp;stripped_title=ezpublish-meets-simfony2-phpday2013\u0026amp;userName=gggeek\" name=\"movie\"\u003e\n    \u003cparam value=\"true\" name=\"allowFullScreen\"\u003e\n    \u003cparam value=\"always\" name=\"allowScriptAccess\"\u003e\n    \u003cparam value=\"transparent\" name=\"wmode\"\u003e\n    \u003cembed width=\"425\" height=\"355\" wmode=\"transparent\" allowfullscreen=\"true\" allowscriptaccess=\"always\" type=\"application/x-shockwave-flash\" src=\"http://static.slidesharecdn.com/swf/ssplayer2.swf?doc=sf2ezpphpday2013-130518043919-phpapp01\u0026amp;stripped_title=ezpublish-meets-simfony2-phpday2013\u0026amp;userName=gggeek\" name=\"__sse21389517\"\u003e\n\u003c/object\u003e \u003c!-- end of result of oembed fetch --\u003e\n\u003c!-- end separator --\u003e\n\u003c/div\u003e\n```\n\nThis operator is used in the eztext.tpl and ezxmltext.tpl override templates include in this extension:\n```tpl\n{* ocembed/design/standard/templates/content/datatype/view/eztext.tpl *}\n{$attribute.content.output.output_text|autoembed()}\n```\n\n#### search_embed()\n\nReturn all embeddable links found in passed text.\n\nExample:\n```tpl\n{def $test = $my_long_text_full_of_links|search_embed()}\n```\nReturns an array of embeddable urls.\n\n\n#### get_oembed_object( string $url, hash $parameters )\n\nReturn the oEmbed response\n\nThe `url` parameter is required and must be an \"oembeddable\" url.\n\nThe `parameters` value must be an array and overrides the default ocembed.ini width and height parameters [OCEmbedSettings].EmbedDefaults.\n\nExample:\n```tpl\n{def $test = get_oembed_object(\"http://www.slideshare.net/gggeek/ezpublish-meets-simfony2-phpday2013\")}\n```\n\nThe $test variable contains an associative array of oembed response object.\n\n### Cache data\n\nIf ```ocembed.ini [OCEmbedSettings] Cache``` is enabled, all ocembed results are stored in ezsite_data table under the key 'oembed_cached_data'.\nTo clear that cache, you can run ```php extension/ocembed/bin/php/clear_cache_data.php -s\u003csiteaccess\u003e```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fopencontentcoop%2Focembed","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fopencontentcoop%2Focembed","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fopencontentcoop%2Focembed/lists"}