PHPackages                             ishaq/simple-youtube-embed-manager - 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. ishaq/simple-youtube-embed-manager

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

ishaq/simple-youtube-embed-manager
==================================

Easy way to integrate youtube videos in your site

07PHP

Since Aug 14Pushed 10y ago1 watchersCompare

[ Source](https://github.com/ishaqj/simple-youtube-embed-manager)[ Packagist](https://packagist.org/packages/ishaq/simple-youtube-embed-manager)[ RSS](/packages/ishaq-simple-youtube-embed-manager/feed)WikiDiscussions master Synced today

READMEChangelogDependenciesVersions (1)Used By (0)

Simple-Youtube-Embed-Manager
============================

[](#simple-youtube-embed-manager)

Easy way to embed youtube videos in your site. All you have to do is just insert youtube video id with video title and description and voilà! video will be up on your site.

Installation Instructions
=========================

[](#installation-instructions)

Notice: You need to have CForm and CDatabase installed in order to use this module.

- First you need to have a copy of \[Anax-MVC\]\[1\].
- Drag and drop "app" and "src" folder to your Anax-copy.
- Make new frontcontroller in webroot folder and insert the lines:

```
// Create services and inject into the app.
$di = new \Anax\DI\CDIFactoryDefault();

$di->setShared('db', function() {
    $db = new \Mos\Database\CDatabaseBasic();
    $db->setOptions(require ANAX_APP_PATH . 'config/config_mysql.php');
    $db->connect();
    return $db;
});

$di->set('YoutubeController', function() use ($di) {
    $controller = new \Ishaq\Youtube\YoutubeController();
    $controller->setDI($di);
    return $controller;
});

$app = new \Anax\Kernel\CAnax($di);
$di->set('form', '\Mos\HTMLForm\CForm');
$app->session;

// Get navbar
$app->navbar->configure(ANAX_APP_PATH . 'config/navbar_youtube.php');

// Routes
$app->router->add('', function() use ($app) {

    $app->theme->setTitle("Youtube");

    $app->views->add('youtube/page', [
        'content' => "Welcome to the Youtube Videos database!",
    ]);

});

$app->router->add('setup', function() use ($app) {

    $app->theme->setTitle("Setup Videos");

    $app->db->dropTableIfExists('youtube')->execute();

    $app->db->createTable(
        'youtube',
        [
            'id' => ['integer', 'primary key', 'not null', 'auto_increment'],
            'title' => ['varchar(80)','not null'],
            'ytid' => ['varchar(80)','not null'],
            'description' => ['varchar(255)','not null'],
            'created' => ['datetime'],
        ]
    )->execute();

    // insert Two test videos
    $app->db->insert(
        'youtube',
        ['title', 'ytid', 'description','created']
    );

    $now = date("Y-m-d h:i:s");

    $app->db->execute([
        'Zlatan Ibrahimovic - Craziest Skills Ever - Impossible Goals',
        'ln35qLphK4I',
        'Music : What So Not - Touched _Slumberjack Edit',
        $now
    ]);

    $app->db->execute([
        'Avicii - The Nights',
        'UtF6Jej8yb4',
        'The Nights" is a song by Swedish DJ and music producer Avicii.',
        $now
    ]);
    $app->db->execute([
        'Shakira - Waka Waka',
        'pRpeEdMmmQ0',
        '"Waka Waka (This Time for Africa)" (Spanish: "Waka Waka (Esto es África)") is a song by Colombian singer-songwriter Shakira featuring South African band Freshlyground',
        $now
    ]);

    $url = $app->url->create('youtube/videos');

    $app->response->redirect($url);
});
```

That's it! you can access youtube module on [www.yoursite.com/webroot/yourfrontcontroller.php](http://www.yoursite.com/webroot/yourfrontcontroller.php)

DEMO
====

[](#demo)

\[1\]:

###  Health Score

20

—

LowBetter than 14% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity41

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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/49d3ab776a7032dda9496700c561865325ea91d016bd4ee42c15eb1d7137d110?d=identicon)[ishaq](/maintainers/ishaq)

---

Top Contributors

[![ishaqj](https://avatars.githubusercontent.com/u/7143719?v=4)](https://github.com/ishaqj "ishaqj (14 commits)")

### Embed Badge

![Health badge](/badges/ishaq-simple-youtube-embed-manager/health.svg)

```
[![Health](https://phpackages.com/badges/ishaq-simple-youtube-embed-manager/health.svg)](https://phpackages.com/packages/ishaq-simple-youtube-embed-manager)
```

###  Alternatives

[sybrew/the-seo-framework-extension-manager

A WordPress plugin that allows you to manage extensions for The SEO Framework.

8490.3k](/packages/sybrew-the-seo-framework-extension-manager)[adfab/m2-module-gdpr

GDPR compatibility

632.2k](/packages/adfab-m2-module-gdpr)

PHPackages © 2026

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