PHPackages                             coldtrick/oembed - 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. coldtrick/oembed

ActiveElgg-plugin[Utility &amp; Helpers](/categories/utility)

coldtrick/oembed
================

Provides oEmbed support for URLs in text

v5.2.1(2mo ago)42.9k2GPL-2.0-onlyPHPCI passing

Since Jun 14Pushed 2mo ago3 watchersCompare

[ Source](https://github.com/ColdTrick/oembed)[ Packagist](https://packagist.org/packages/coldtrick/oembed)[ Docs](https://www.coldtrick.com)[ Fund](https://www.paypal.me/ColdTrick)[ GitHub Sponsors](https://github.com/ColdTrick)[ RSS](/packages/coldtrick-oembed/feed)WikiDiscussions master Synced 1w ago

READMEChangelog (10)Dependencies (2)Versions (24)Used By (0)

oEmbed
======

[](#oembed)

[![Elgg 5.0](https://camo.githubusercontent.com/1160142a7413ff36f67fb8fe533228f299bf1e83851f94158974832f67c91901/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f456c67672d352e302d677265656e2e737667)](https://camo.githubusercontent.com/1160142a7413ff36f67fb8fe533228f299bf1e83851f94158974832f67c91901/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f456c67672d352e302d677265656e2e737667)[![Elgg 6.0](https://camo.githubusercontent.com/5918ffd43fda231dfa42ca4fc4feea1b824d0b5eaf57cb7dd385fc617221c362/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f456c67672d362e302d677265656e2e737667)](https://camo.githubusercontent.com/5918ffd43fda231dfa42ca4fc4feea1b824d0b5eaf57cb7dd385fc617221c362/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f456c67672d362e302d677265656e2e737667)[![Elgg 7.0](https://camo.githubusercontent.com/423f166548449e860ac4466d88666ed84d332bb93d5b6b9caa8c8a75806ad841/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f456c67672d372e302d677265656e2e737667)](https://camo.githubusercontent.com/423f166548449e860ac4466d88666ed84d332bb93d5b6b9caa8c8a75806ad841/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f456c67672d372e302d677265656e2e737667)[![Lint Checks](https://github.com/ColdTrick/oembed/actions/workflows/lint.yml/badge.svg?event=push)](https://github.com/ColdTrick/oembed/actions/workflows/lint.yml/badge.svg?event=push)[![Latest Stable Version](https://camo.githubusercontent.com/e92b98cac608eadb3af7707c5aa79db0a315885526d09ba9c10a0d6dacd780b2/68747470733a2f2f706f7365722e707567782e6f72672f636f6c64747269636b2f6f656d6265642f762f737461626c652e737667)](https://packagist.org/packages/coldtrick/oembed)[![License](https://camo.githubusercontent.com/d2cba13f75fa4f40cc02732e0cc28739f4d844c7a96b3583eb2dced14ae28187/68747470733a2f2f706f7365722e707567782e6f72672f636f6c64747269636b2f6f656d6265642f6c6963656e73652e737667)](https://packagist.org/packages/coldtrick/oembed)

Provides oEmbed support for URLs in text

Features
--------

[](#features)

- This plugin tries to replace URLs in `output/longtext` with embed code. For example if you paste a YouTube URL it will be replaced by the embed code for that URL.
- Nothing is done to the original text, so if the plugin is disabled all original links are still present.
- In order to control which URLs should be replaced there is a plugin setting for a whitelist and a blacklist. If the whitelist is set only those URLs will be replaced and the blacklist is ignored. If only the blacklist is set, every URL except those on the blacklist will be replaced.

Caching
-------

[](#caching)

The results of the oEmbed requests is cached in system cache. This is to increase performance and reusability. If the cache is flushed requests will be made again.

Developers
----------

[](#developers)

### Prevent oEmbed

[](#prevent-oembed)

In order to prevent the use of oEmbed on your use of `output/longtext` set a var `'oembed' => false`.

### Modifying valid URL

[](#modifying-valid-url)

Before an oEmbed adapter is created based on a valid URL an event is triggered. This allows last minute changes to the URL (eg. adding validation tokens). The event is `replace_url`, `oembed`. The return value should be a URL. in the `$params` you get the original url under `url`.

### Output views

[](#output-views)

To change the output of the oEmbed code the different types have their own view `oembed/type/{$oembed_type}`.

###  Health Score

53

—

FairBetter than 96% of packages

Maintenance86

Actively maintained with recent releases

Popularity25

Limited adoption so far

Community12

Small or concentrated contributor base

Maturity73

Established project with proven stability

 Bus Factor1

Top contributor holds 86.4% of commits — single point of failure

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 ~155 days

Recently: every ~133 days

Total

22

Last Release

71d ago

Major Versions

v1.2.1 → v2.02019-03-27

v2.2 → v3.02021-09-27

v3.1 → v4.02022-08-24

v4.0 → v5.02023-06-02

### Community

Maintainers

![](https://www.gravatar.com/avatar/a4ac1d6abe137b2a78bd0527b3c1f085be51c6a8f70e2fd81fcd7fac3d8d59bf?d=identicon)[jeabakker](/maintainers/jeabakker)

---

Top Contributors

[![jeabakker](https://avatars.githubusercontent.com/u/881958?v=4)](https://github.com/jeabakker "jeabakker (70 commits)")[![jdalsem](https://avatars.githubusercontent.com/u/861833?v=4)](https://github.com/jdalsem "jdalsem (11 commits)")

---

Tags

pluginelgg

### Embed Badge

![Health badge](/badges/coldtrick-oembed/health.svg)

```
[![Health](https://phpackages.com/badges/coldtrick-oembed/health.svg)](https://phpackages.com/packages/coldtrick-oembed)
```

###  Alternatives

[verbb/hyper

A user-friendly links field for Craft.

24153.5k14](/packages/verbb-hyper)[coldtrick/group_tools

Combines different group additions into one plugin

315.3k](/packages/coldtrick-group-tools)[coldtrick/profile_manager

Improved management of user and group profile fields

303.9k1](/packages/coldtrick-profile-manager)[coldtrick/widget_manager

Manage your widgets

224.5k](/packages/coldtrick-widget-manager)[coldtrick/wizard

Make a wizard to guide your users through the features of your site

107.4k](/packages/coldtrick-wizard)[coldtrick/thewire_tools

Extend the functionality of The Wire

143.3k](/packages/coldtrick-thewire-tools)

PHPackages © 2026

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