PHPackages                             fg/multiplayer - 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. [Image &amp; Media](/categories/media)
4. /
5. fg/multiplayer

ActiveLibrary[Image &amp; Media](/categories/media)

fg/multiplayer
==============

Builds customizable video embed codes from any URL.

1.2.1(9y ago)457.4k4[1 issues](https://github.com/felixgirault/multiplayer/issues)1PHPPHP &gt;=5.4.0

Since Jun 29Pushed 7y ago7 watchersCompare

[ Source](https://github.com/felixgirault/multiplayer)[ Packagist](https://packagist.org/packages/fg/multiplayer)[ Docs](http://github.com/felixgirault/multiplayer)[ RSS](/packages/fg-multiplayer/feed)WikiDiscussions master Synced today

READMEChangelog (2)DependenciesVersions (7)Used By (1)

Multiplayer
===========

[](#multiplayer)

A tiny library to build nice HTML embed codes for videos.

```
composer require fg/multiplayer
```

Example
-------

[](#example)

```
$Multiplayer = new Multiplayer\Multiplayer();
$options = array(
	'autoPlay' => true,
	'foregroundColor' => 'BADA55'
);

echo $Multiplayer->html('http://www.dailymotion.com/video/xzn5qk', $options);
echo $Multiplayer->html('http://vimeo.com/47457051', $options);
echo $Multiplayer->html('http://www.youtube.com/watch?v=3qSMS4c5WAk', $options);
```

This code would produce:

```

```

Templating
----------

[](#templating)

You can customize the generated HTML code by passing a templating function:

```
echo $Multiplayer->html($url, $options, function($playerUrl) {
    return ''
});
```

A default one can also be set on instanciation:

```
new Multiplayer\Multiplayer($services, function($playerUrl) {
    return ''
});
```

###  Health Score

36

—

LowBetter than 79% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity34

Limited adoption so far

Community16

Small or concentrated contributor base

Maturity62

Established project with proven stability

 Bus Factor1

Top contributor holds 97.1% 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 ~304 days

Total

5

Last Release

3532d ago

Major Versions

0.0.1 → 1.0.02013-07-11

PHP version history (2 changes)0.0.1PHP &gt;=5.3.0

1.2.0PHP &gt;=5.4.0

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/2738851?v=4)[Fatih GÜRSOY](/maintainers/fg)[@fg](https://github.com/fg)

---

Top Contributors

[![felixgirault](https://avatars.githubusercontent.com/u/1544510?v=4)](https://github.com/felixgirault "felixgirault (34 commits)")[![BiraCarvalho](https://avatars.githubusercontent.com/u/35813369?v=4)](https://github.com/BiraCarvalho "BiraCarvalho (1 commits)")

---

Tags

htmlvideomediaembedplayer

### Embed Badge

![Health badge](/badges/fg-multiplayer/health.svg)

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

###  Alternatives

[happyworm/jplayer

jPlayer allows you to create a media player with a consistent interface and experience across all browsers.

4.6k114.8k1](/packages/happyworm-jplayer)[s9e/text-formatter

Multi-purpose text formatting and markup library. Plugins offer support for BBCodes, Markdown, emoticons, HTML, embedding third-party media (YouTube, etc...), enhanced typography and more.

2503.3M38](/packages/s9e-text-formatter)[dereuromark/media-embed

A PHP library to deal with all those media services around, parsing their URLs and embedding their audio/video content in websites.

181576.2k17](/packages/dereuromark-media-embed)[essence/essence

Extracts information about medias on the web, like youtube videos, twitter statuses or blog articles.

771594.6k3](/packages/essence-essence)[cohensive/embed

Media Embed (for Laravel or as a standalone).

119386.2k](/packages/cohensive-embed)[nilportugues/sitemap-component

Standalone sitemap builder 100% standards compliant. Build for PHP5.3 and above.

5057.1k1](/packages/nilportugues-sitemap-component)

PHPackages © 2026

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