PHPackages                             mindkomm/theme-lib-embed - 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. mindkomm/theme-lib-embed

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

mindkomm/theme-lib-embed
========================

Optimizes embeds in WordPress themes.

1.0.0(8y ago)0221MITPHPPHP &gt;=7.0.0

Since Mar 2Pushed 8y ago3 watchersCompare

[ Source](https://github.com/mindkomm/theme-lib-embed)[ Packagist](https://packagist.org/packages/mindkomm/theme-lib-embed)[ RSS](/packages/mindkomm-theme-lib-embed/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (2)Used By (0)

Theme\\Embed
============

[](#themeembed)

Optimizes embeds in WordPress themes.

- Allows you to set default sizes for oEmbed contents.
- Wraps oEmbed content with div tags to easier style them for responsiveness. You need to add the CSS yourself, though.
- Optimizes Youtube playlist embeds where the preview image might lack in quality.

Installation
------------

[](#installation)

You can install the package via Composer:

```
composer require mindkomm/theme-lib-embed
```

Usage
-----

[](#usage)

**functions.php**

```
$embeds = new Theme\Embed\Embed();
$embeds->init();
```

The Embed constructor takes two parameters:

- **$width**
    *(int)* The default width for oEmbed content in pixels. Default 1400.
- **$ratio**
    *(float)* The ratio to use to calculate the height. Default 16/9.

Here’s an example if you wanted your oEmbed contents to have a width of 800px and a height of 400px.

```
$embeds = new Theme\Embed\Embed( 800, 0.5 );
$embeds->init();
```

If you already have an `embed_oembed_html` filter in place that adds divs with classes `responsive-embed` and `keep-aspect-ratio`, you could probably remove it, because this library already adds one, too.

Support
-------

[](#support)

This is a package that we use at MIND to develop WordPress themes. You’re free to use it, but currently, we don’t provide any support.

###  Health Score

27

—

LowBetter than 49% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity11

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity58

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% 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

Unknown

Total

1

Last Release

2989d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/2084481?v=4)[Lukas Gächter](/maintainers/gchtr)[@gchtr](https://github.com/gchtr)

---

Top Contributors

[![gchtr](https://avatars.githubusercontent.com/u/2084481?v=4)](https://github.com/gchtr "gchtr (3 commits)")

### Embed Badge

![Health badge](/badges/mindkomm-theme-lib-embed/health.svg)

```
[![Health](https://phpackages.com/badges/mindkomm-theme-lib-embed/health.svg)](https://phpackages.com/packages/mindkomm-theme-lib-embed)
```

###  Alternatives

[yavin/symfony-form-tree

create select field with indentation for tree structure

1591.1k1](/packages/yavin-symfony-form-tree)[spatie/laravel-help-space

Integrate Helpspace in your Laravel app

2333.7k](/packages/spatie-laravel-help-space)

PHPackages © 2026

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