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

ActiveLibrary

dynamikasolucoesweb/laravel-youtube
===================================

Uma biblioteca leve e eficiente para Laravel que facilita a validação de URLs do YouTube e a renderização de componentes de vídeo (Embeds) em suas views Blade.

v1.0.0(2w ago)02↓100%BSD-3-ClausePHPPHP &gt;=8.2

Since Mar 5Pushed 2w agoCompare

[ Source](https://github.com/dynamikaweb/laravel-youtube)[ Packagist](https://packagist.org/packages/dynamikasolucoesweb/laravel-youtube)[ RSS](/packages/dynamikasolucoesweb-laravel-youtube/feed)WikiDiscussions main Synced today

READMEChangelogDependencies (2)Versions (2)Used By (0)

dynamikasolucoesweb/laravel-youtube
===================================

[](#dynamikasolucoesweblaravel-youtube)

[![php version](https://camo.githubusercontent.com/df878ca98bc106e320ecd3c0c09aa73d5083fa767ffd8431015188bbc4438ade/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f7068702d762f64796e616d696b61736f6c75636f65737765622f6c61726176656c2d796f7574756265)](https://camo.githubusercontent.com/df878ca98bc106e320ecd3c0c09aa73d5083fa767ffd8431015188bbc4438ade/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f7068702d762f64796e616d696b61736f6c75636f65737765622f6c61726176656c2d796f7574756265)[![pkg version](https://camo.githubusercontent.com/cf97d10e2fdd5849f0c58eff68bc502ad40b1496cbccce0b0146930fa6b0b9db/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f64796e616d696b61736f6c75636f65737765622f6c61726176656c2d796f7574756265)](https://camo.githubusercontent.com/cf97d10e2fdd5849f0c58eff68bc502ad40b1496cbccce0b0146930fa6b0b9db/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f64796e616d696b61736f6c75636f65737765622f6c61726176656c2d796f7574756265)[![license](https://camo.githubusercontent.com/e8a771445e27f8a9d68cbf988550da730aeb62f2922c853931bf66bf995f88d7/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f64796e616d696b61736f6c75636f65737765622f6c61726176656c2d796f7574756265)](https://camo.githubusercontent.com/e8a771445e27f8a9d68cbf988550da730aeb62f2922c853931bf66bf995f88d7/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f64796e616d696b61736f6c75636f65737765622f6c61726176656c2d796f7574756265)[![quality](https://camo.githubusercontent.com/696f49a967959ef5b4d3adcf1bb4038810a21c2f89db24ec657b378d8df48b62/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f7175616c6974792f672f64796e616d696b617765622f6c61726176656c2d796f7574756265)](https://camo.githubusercontent.com/696f49a967959ef5b4d3adcf1bb4038810a21c2f89db24ec657b378d8df48b62/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f7175616c6974792f672f64796e616d696b617765622f6c61726176656c2d796f7574756265)[![build](https://camo.githubusercontent.com/0a611316b2d1f713a64fc0fa2764d8b852ca59730c48f8357c4a7f2da8fd17ed/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f6275696c642f672f64796e616d696b617765622f6c61726176656c2d796f7574756265)](https://camo.githubusercontent.com/0a611316b2d1f713a64fc0fa2764d8b852ca59730c48f8357c4a7f2da8fd17ed/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f6275696c642f672f64796e616d696b617765622f6c61726176656c2d796f7574756265)

Uma biblioteca leve e eficiente para Laravel 12 que facilita a validação de URLs do YouTube e a renderização de componentes de vídeo (Embeds) em suas views Blade.

Instalação
----------

[](#instalação)

A maneira preferida de instalar esta extensão é através do \[composer\] [composer](http://getcomposer.org/download/).

Ou corre

```
$ composer require dynamikasolucoesweb/laravel-youtube "*"
```

ou adicione

```
"dynamikasolucoesweb/laravel-youtube": "*"
```

à seção `require` do seu arquivo `composer.json`.

Uso
---

[](#uso)

O pacote registra o componente . Ele processa automaticamente URLs curtas (youtu.be), URLs padrão com parâmetros (watch?v=) e URLs de embed, extraindo o ID único do vídeo.

Exemplo Básico:

1. Personalizando Atributos: Você pode passar um array :options para definir atributos HTML customizados (como width, height, class, id, etc).

```

```

2. Validação de URLs Para garantir que os dados recebidos em seus formulários sejam links válidos do YouTube, utilize a regra de validação YoutubeUrl.

```
use dynamikasolucoesweb\Youtube\Rules\YoutubeUrl;

public function rules(): array
{
    return [
        'link_youtube' => ['nullable', 'string', new YoutubeUrl],
    ];
}
```

Features
--------

[](#features)

Auto-Parsing: Detecta e limpa IDs de vídeo de quase qualquer formato de link do YouTube.

Segurança Nativa: Gera embeds com políticas de permissão modernas (accelerometer, autoplay, clipboard-write, etc).

Validação Robusta: Regra de validação via Regex para impedir a entrada de URLs malformadas ou de outros serviços.

Blade Integration: Uso nativo via tags de componente, seguindo o padrão moderno do Laravel.

Authors
-------

[](#authors)

Giordani da Silveira dos Santos -

---

[![dynamika soluções web](https://avatars.githubusercontent.com/dynamikaweb?size=12)](https://dynamika.com.br)This project is under [BSD-3-Clause](https://opensource.org/licenses/BSD-3-Clause) license.

###  Health Score

40

—

FairBetter than 88% of packages

Maintenance96

Actively maintained with recent releases

Popularity3

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity46

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

18d ago

### Community

Maintainers

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

---

Top Contributors

[![GiordaniSantos](https://avatars.githubusercontent.com/u/67431900?v=4)](https://github.com/GiordaniSantos "GiordaniSantos (1 commits)")

---

Tags

laravelyoutubedynamika

### Embed Badge

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

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

PHPackages © 2026

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