PHPackages                             yocto/yoclib-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. [Parsing &amp; Serialization](/categories/parsing)
4. /
5. yocto/yoclib-oembed

ActiveLibrary[Parsing &amp; Serialization](/categories/parsing)

yocto/yoclib-oembed
===================

This yocLibrary enables your project to encode and decode OEmbed data in PHP.

v1.0.1(1y ago)023GPL-3.0-or-laterPHPPHP ^7.1||^8

Since Oct 1Pushed 1y ago1 watchersCompare

[ Source](https://github.com/yocto/yoclib-oembed-php)[ Packagist](https://packagist.org/packages/yocto/yoclib-oembed)[ RSS](/packages/yocto-yoclib-oembed/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (2)Dependencies (1)Versions (3)Used By (0)

yocLib - OEmbed (PHP)
=====================

[](#yoclib---oembed-php)

This yocLibrary enables your project to encode and decode OEmbed data in PHP.

Status
------

[](#status)

[![PHP Composer](https://github.com/yocto/yoclib-oembed-php/actions/workflows/php.yml/badge.svg)](https://github.com/yocto/yoclib-oembed-php/actions/workflows/php.yml)[![codecov](https://camo.githubusercontent.com/3b47cf6e8f14576463365d559d2d4413c2acfa7e64a0d0b966ff4c78a679e2e9/68747470733a2f2f636f6465636f762e696f2f67682f796f63746f2f796f636c69622d6f656d6265642d7068702f67726170682f62616467652e737667)](https://codecov.io/gh/yocto/yoclib-oembed-php)

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

[](#installation)

`composer require yocto/yoclib-oembed`

Usage
-----

[](#usage)

### Encoding

[](#encoding)

```
use YOCLIB\OEmbed\OEmbed;

$data = [
    'version' => '1.0',
];

$json = OEmbed::encode($data,'json');
// or
$xml = OEmbed::encode($data,);
```

### Decoding

[](#decoding)

```
use YOCLIB\OEmbed\OEmbed;

$json = '{"version":"1.0"}';
$data = OEmbed::decode($json,'json');

// or

$xml = '1.0';
$data = OEmbed::decode($xml);
```

###  Health Score

22

—

LowBetter than 22% of packages

Maintenance36

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity35

Early-stage or recently created project

 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

Every ~0 days

Total

2

Last Release

593d ago

### Community

Maintainers

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

---

Top Contributors

[![ben221199](https://avatars.githubusercontent.com/u/12856904?v=4)](https://github.com/ben221199 "ben221199 (6 commits)")

---

Tags

composerjsonoembedphpxmlyoclibyoctophpjsoncomposerxmloembedyoctoyoclib

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

###  Alternatives

[m1/vars

Vars is a simple to use and easily extendable configuration loader with in built loaders for ini, json, PHP, toml, XML and yaml/yml file types. It also comes with in built support for Silex and more frameworks to come soon.

69124.2k1](/packages/m1-vars)[bupy7/xml-constructor

The array-like constructor of XML document structure.

1337.9k](/packages/bupy7-xml-constructor)

PHPackages © 2026

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