PHPackages                             opencontent/ocembed-ls - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. opencontent/ocembed-ls

ActiveEzpublish-legacy-extension[Utility &amp; Helpers](/categories/utility)

opencontent/ocembed-ls
======================

Opencontent oEmbed operators

1.5.6(2mo ago)06.8k↑120%2GPL-2.0PHP

Since Feb 5Pushed 2mo ago1 watchersCompare

[ Source](https://github.com/OpencontentCoop/ocembed)[ Packagist](https://packagist.org/packages/opencontent/ocembed-ls)[ RSS](/packages/opencontent-ocembed-ls/feed)WikiDiscussions master Synced today

READMEChangelogDependencies (2)Versions (16)Used By (0)

OCEembed - Opencontent oEmbed operators
---------------------------------------

[](#oceembed---opencontent-oembed-operators)

[oEmbed](http://oembed.com/ "oEmbed site") is a format for allowing an embedded representation of a URL on third party sites.

oEmbed 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.

This eZ extension - loosely based on the WordPress oemabed implementation - offers the oEmbed easy embedding feature via some template operator.

### Requirements

[](#requirements)

- eZP &gt;= 4.X or 5.X (when running the Legacy Stack only)

### Installation

[](#installation)

Enable the extension; clear all caches

### Preinstalled embed provider:

[](#preinstalled-embed-provider)

- blip.tv
- DailyMotion
- Flickr
- FunnyOrDie.com
- Hulu
- Photobucklet
- PollDaddy
- Qik
- Revision3
- Scribd
- Sideshare
- SmugMug
- Ustream
- Viddler
- Vimeo
- Wordpress.tv
- YouTube
- Google Video
- Twitter

You can add your own handler by creating a php class which implements oEmbedProviderInterface and adding a oEmbedProviders\[\] in ocembed.ini.

Available template operators
----------------------------

[](#available-template-operators)

#### autoembed( mixed $separator, hash $parameters )

[](#autoembed-mixed-separator-hash-parameters-)

Print the html value of oEmbed response.

The `separator` and `parameters` variables are not required.

The `separator` value can be a string or an array. The default `separator` value is `array( '', '' )`

The `parameters` value must be an array and overrides the default ocembed.ini width and height parameters \[OCEmbedSettings\].EmbedDefaults.

Example:

```
{"http://www.slideshare.net/gggeek/ezpublish-meets-simfony2-phpday2013"|autoembed( array( '', '' ), hash( 'width', '425', 'height', '355' ) )}
```

The example returns (without html comments):

```

```

This operator is used in the eztext.tpl and ezxmltext.tpl override templates include in this extension:

```
{* ocembed/design/standard/templates/content/datatype/view/eztext.tpl *}
{$attribute.content.output.output_text|autoembed()}
```

#### search\_embed()

[](#search_embed)

Return all embeddable links found in passed text.

Example:

```
{def $test = $my_long_text_full_of_links|search_embed()}
```

Returns an array of embeddable urls.

#### get\_oembed\_object( string $url, hash $parameters )

[](#get_oembed_object-string-url-hash-parameters-)

Return the oEmbed response

The `url` parameter is required and must be an "oembeddable" url.

The `parameters` value must be an array and overrides the default ocembed.ini width and height parameters \[OCEmbedSettings\].EmbedDefaults.

Example:

```
{def $test = get_oembed_object("http://www.slideshare.net/gggeek/ezpublish-meets-simfony2-phpday2013")}
```

The $test variable contains an associative array of oembed response object.

### Cache data

[](#cache-data)

If `ocembed.ini [OCEmbedSettings] Cache` is enabled, all ocembed results are stored in ezsite\_data table under the key 'oembed\_cached\_data'. To clear that cache, you can run `php extension/ocembed/bin/php/clear_cache_data.php -s`

###  Health Score

51

—

FairBetter than 95% of packages

Maintenance83

Actively maintained with recent releases

Popularity24

Limited adoption so far

Community13

Small or concentrated contributor base

Maturity71

Established project with proven stability

 Bus Factor2

2 contributors hold 50%+ of commits

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~313 days

Recently: every ~391 days

Total

14

Last Release

88d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/4bb0695337c30a80b955ef72819273442a7dcbcfd69f99b80a28084d170bba0a?d=identicon)[Opencontent](/maintainers/Opencontent)

---

Top Contributors

[![lrealdi](https://avatars.githubusercontent.com/u/14081241?v=4)](https://github.com/lrealdi "lrealdi (9 commits)")[![Opencontent](https://avatars.githubusercontent.com/u/972033?v=4)](https://github.com/Opencontent "Opencontent (8 commits)")[![lorello](https://avatars.githubusercontent.com/u/694058?v=4)](https://github.com/lorello "lorello (4 commits)")[![coppo](https://avatars.githubusercontent.com/u/10260956?v=4)](https://github.com/coppo "coppo (1 commits)")

### Embed Badge

![Health badge](/badges/opencontent-ocembed-ls/health.svg)

```
[![Health](https://phpackages.com/badges/opencontent-ocembed-ls/health.svg)](https://phpackages.com/packages/opencontent-ocembed-ls)
```

###  Alternatives

[ezsystems/eztags-ls

eZ Tags is an extension for eZ Publish, providing more functionality for tagging content objects than ezkeyword datatype included in eZ Publish kernel.

40204.3k3](/packages/ezsystems-eztags-ls)[ezsystems/ezautosave-ls

Content editing autosave extension for eZ Publish legacy

22426.3k3](/packages/ezsystems-ezautosave-ls)[ezsystems/legacy-bridge

eZ Platform bridge to eZ Publish Legacy

17118.9k5](/packages/ezsystems-legacy-bridge)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
