PHPackages                             syrian-open-source/laravel-youtube-iframe-generator - 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. syrian-open-source/laravel-youtube-iframe-generator

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

syrian-open-source/laravel-youtube-iframe-generator
===================================================

Laravel package allows you to generate an iframe tag with a video player depending on a youtube URL.

v1.1.0(4y ago)184.2k3MITPHP

Since Dec 29Pushed 4y ago1 watchersCompare

[ Source](https://github.com/Syrian-Open-Source/laravel-youtube-iframe-generator)[ Packagist](https://packagist.org/packages/syrian-open-source/laravel-youtube-iframe-generator)[ RSS](/packages/syrian-open-source-laravel-youtube-iframe-generator/feed)WikiDiscussions main Synced today

READMEChangelog (3)Dependencies (3)Versions (5)Used By (0)

[![logo](assets/logo.png)](assets/logo.png)

YouTube Frame Generator
=======================

[](#youtube-frame-generator)

Laravel package allows you to generate an iframe tag with a video player depending on a YouTube URL.

##### 1 - Dependency

[](#1---dependency)

The first step is using composer to install the package and automatically update your composer.json file, you can do this by running:

```
composer require syrian-open-source/laravel-youtube-iframe-generator
```

##### 2 - Copy the package providers to your local config with the publish command, this will publish the config:

[](#2---copy-the-package-providers-to-your-local-config-with-the-publish-command-this-will-publish-the-config)

```
php artisan yframe:install
```

Features
--------

[](#features)

basic usage:

```
{!! \SOS\LaravelYoutubeFrameGenerator\Facades\YFrameFacade::generate('https://www.youtube.com/watch?v=35JzR2ymxJE')!!}
```

Or you can use the directive

```
@yframe('https://www.youtube.com/watch?v=35JzR2ymxJE')
```

If you want to set your css, attributes, height, width or fullscreen allowed:

```
{!! \SOS\LaravelYoutubeFrameGenerator\Facades\YFrameFacade::width('100%')
        ->height('400px')
        ->isFullscreen(true)
        ->generate('https://www.youtube.com/watch?v=35JzR2ymxJE'); !!}
```

Using the directive

```
@yframe('https://www.youtube.com/watch?v=35JzR2ymxJE', [
    'width'     => '100%',
    'height'    => '400px',
    'isFullscreen'  => true,
])
```

Changelog
---------

[](#changelog)

Please see the [CHANGELOG](https://github.com/syrian-open-source/laravel-youtube-iframe-generator/blob/master/CHANGELOG.md) for more information about what has changed or updated or added recently.

Security
--------

[](#security)

If you discover any security related issues, please email them first to , if we do not fix it within a short period of time please open a new issue describing your problem.

Credits
-------

[](#credits)

- [Abdussalam M. Al-Ali](https://www.linkedin.com/in/abdussalam-alali/)
- [All contributors](https://github.com/syrian-open-source/laravel-youtube-iframe-generator/graphs/contributors)

About Syrian Open Source
------------------------

[](#about-syrian-open-source)

The Syrian Open Source platform is the first platform on GitHub dedicated to bringing Syrian developers from different cultures and experiences together, to work on projects in different languages, tasks, and versions, and works to attract Syrian developers to contribute more under one platform to open source software, work on it, and issue it with high quality and advanced engineering features, which It stimulates the dissemination of the open-source concept in the Syrian software community, and also contributes to raising the efficiency of developers by working on distributed systems and teams.

###  Health Score

31

—

LowBetter than 66% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity27

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity53

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 61.5% 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 ~19 days

Total

3

Last Release

1611d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/56937091?v=4)[karam2mustafa](/maintainers/karam2mustafa)[@karam2mustafa](https://github.com/karam2mustafa)

---

Top Contributors

[![karam-mustafa](https://avatars.githubusercontent.com/u/71431942?v=4)](https://github.com/karam-mustafa "karam-mustafa (24 commits)")[![RoduanKD](https://avatars.githubusercontent.com/u/37983260?v=4)](https://github.com/RoduanKD "RoduanKD (15 commits)")

---

Tags

laravellaravel-youtube-videophpyoutube-playerlaravelsyrian-open-sourcelaravel-iframeyoutube-iframe

### Embed Badge

![Health badge](/badges/syrian-open-source-laravel-youtube-iframe-generator/health.svg)

```
[![Health](https://phpackages.com/badges/syrian-open-source-laravel-youtube-iframe-generator/health.svg)](https://phpackages.com/packages/syrian-open-source-laravel-youtube-iframe-generator)
```

###  Alternatives

[jubeki/laravel-code-style

Combine Custom Fixers with the ruleset of Laravel Pint to fix your code style in Laravel Applications/Packages.

56570.4k8](/packages/jubeki-laravel-code-style)

PHPackages © 2026

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