PHPackages                             navarr/youtube - 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. navarr/youtube

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

navarr/youtube
==============

A helper for generating an audio player flash object's HTML

v2.0(10y ago)467217[2 issues](https://github.com/navarr/ytaudio/issues)MITPHPPHP &gt;=5.4

Since Dec 14Pushed 9y ago1 watchersCompare

[ Source](https://github.com/navarr/ytaudio)[ Packagist](https://packagist.org/packages/navarr/youtube)[ RSS](/packages/navarr-youtube/feed)WikiDiscussions master Synced today

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

YouTube Audio Player Generation Library
=======================================

[](#youtube-audio-player-generation-library)

[![Build Status](https://camo.githubusercontent.com/6767995441811aa9e32e7ec98d7df8db427ae16206d66d995b1242e783d31c55/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f6e61766172722f7974617564696f2f6261646765732f6275696c642e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/navarr/ytaudio/build-status/master)[![Code Coverage](https://camo.githubusercontent.com/c7ddc3bae939b3573d700ee77c85a20ae4daccafae4902d43bdc8cb653e5f48a/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f6e61766172722f7974617564696f2f6261646765732f636f7665726167652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/navarr/ytaudio/?branch=master)[![Scrutinizer Code Quality](https://camo.githubusercontent.com/ebf8e36473e54507ebd074b05feadbb796bdcad3343cb1cfe6d391653a1c4d18/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f6e61766172722f7974617564696f2f6261646765732f7175616c6974792d73636f72652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/navarr/ytaudio/?branch=master)[![Latest Stable Version](https://camo.githubusercontent.com/310fdea15e80e363597cd21ca05e6dca22e2777a07c9d6391ec4bed4a65afc50/68747470733a2f2f706f7365722e707567782e6f72672f6e61766172722f796f75747562652f762f737461626c652e737667)](https://packagist.org/packages/navarr/youtube) [![Total Downloads](https://camo.githubusercontent.com/454089cf1d73a9310c5d18f68533c4a8778947d669b945643b33cf83034c20ef/68747470733a2f2f706f7365722e707567782e6f72672f6e61766172722f796f75747562652f646f776e6c6f6164732e737667)](https://packagist.org/packages/navarr/youtube) [![Latest Unstable Version](https://camo.githubusercontent.com/3e1bb53c5479ebbde94a796b2ce2d5a5906b2ecddffbbb72ad4eea8a69167071/68747470733a2f2f706f7365722e707567782e6f72672f6e61766172722f796f75747562652f762f756e737461626c652e737667)](https://packagist.org/packages/navarr/youtube) [![License](https://camo.githubusercontent.com/21c382aa1abf194f428ec71a2027b3042a9608f1504f18708e13d49f33c21b9c/68747470733a2f2f706f7365722e707567782e6f72672f6e61766172722f796f75747562652f6c6963656e73652e737667)](https://packagist.org/packages/navarr/youtube)

YTAudio is a helper designed to help generate a "YouTube audio embeddable" - a version of the YouTube flash player that is small enough that only the audio controls show.

YTAudio does not extract the audio from YouTube videos, nor does it eliminate the overhead of processing YouTube videos when playing the files.

Most of the class allows daisy-chaining, since it is primarily controlled through setters and is intended as a helper class. Below are two examples of rendering a YTAudio object.

```
use Navarr\YouTube\AudioPlayer;

AudioPlayer::create('http://www.youtube.com/watch?v=dvgZkm1xWPE&ob=av2n')
    ->size(AudioPlayer::SIZE_LARGE)
    ->theme(AudioPlayer::THEME_DARK)
    ->hd() // Force HD
    ->loop() // Loop
    ->progressBar() // Show Progress Bar
    ->timeCode() // Show Time Code
    ->autoplay() // Autoplay
    ->render(); // Output XHTML
```

This method uses daisy-chaining for setting. Any daisy-chain function that turns a feature on or off takes a boolean, with the default value being true.

```
use Navarr\YouTube\AudioPlayer;

AudioPlayer::create(
    'http://www.youtube.com/watch?v=dvgZkm1xWPE&ob=av2n',
    [
        'size' => AudioPlayer::SIZE_LARGE,
        'theme' => AudioPlayer::THEME_DARK,
        'hd',
        'loop',
        'autoplay',
        'progressbar',
        'timecode',
    ]
)->render();
```

This method accepts the configuration as an array. You can daisy chain after it, but you probably will not need to.

###  Health Score

31

—

LowBetter than 66% of packages

Maintenance19

Infrequent updates — may be unmaintained

Popularity23

Limited adoption so far

Community11

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

3854d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/24959115e049fb1d71612462e9106b345b3e0e6126439493514018cd440e8937?d=identicon)[navarr](/maintainers/navarr)

---

Top Contributors

[![navarr](https://avatars.githubusercontent.com/u/145128?v=4)](https://github.com/navarr "navarr (13 commits)")

---

Tags

youtubemusicAudio Player

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/navarr-youtube/health.svg)

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

###  Alternatives

[hashids/hashids

Generate short, unique, non-sequential ids (like YouTube and Bitly) from numbers

5.4k52.1M316](/packages/hashids-hashids)[mpratt/embera

Oembed consumer library. Converts urls into their html embed code. Supports 150+ sites, such as Youtube, Twitter, vimeo, Instagram etc.

3636.0M27](/packages/mpratt-embera)[norkunas/youtube-dl-php

youtube-dl / yt-dlp wrapper for php

514354.3k17](/packages/norkunas-youtube-dl-php)[aalaap/faker-youtube

Faker provider for generating fake YouTube video URLs

2292.3k](/packages/aalaap-faker-youtube)[chellem/youtube-downloader

PHP library to download video

686.2k](/packages/chellem-youtube-downloader)[light/hashids

Hashids for Yii2

1120.8k](/packages/light-hashids)

PHPackages © 2026

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