PHPackages                             nwidart/laravel-videoable - 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. nwidart/laravel-videoable

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

nwidart/laravel-videoable
=========================

Attach videos to your models

3.0.0(7y ago)1811710MITPHPPHP &gt;=7.0

Since Mar 13Pushed 7y ago2 watchersCompare

[ Source](https://github.com/nWidart/laravel-videoable)[ Packagist](https://packagist.org/packages/nwidart/laravel-videoable)[ Docs](https://github.com/nwidart/laravel-videoable)[ RSS](/packages/nwidart-laravel-videoable/feed)WikiDiscussions master Synced 4w ago

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

laravel-videoable
=================

[](#laravel-videoable)

[![Latest Version on Packagist](https://camo.githubusercontent.com/84a0a08d41357352ec2b7e913e9780b004b2dbb14fc78b88cb0382a131512e8e/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6e7769646172742f6c61726176656c2d766964656f61626c652e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/nwidart/laravel-videoable)[![Software License](https://camo.githubusercontent.com/55c0218c8f8009f06ad4ddae837ddd05301481fcf0dff8e0ed9dadda8780713e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265)](LICENSE.md)[![Build Status](https://camo.githubusercontent.com/19b3c6179944dc724afe05db3233063a286a7a26d2b76c310d074fcc31abfcbc/68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f6e5769646172742f6c61726176656c2d766964656f61626c65732f6d61737465722e7376673f7374796c653d666c61742d737175617265)](https://travis-ci.org/nWidart/laravel-videoable)[![Scrutinizer Coverage](https://camo.githubusercontent.com/941664e0238be94c2db3de25ae3f9d003c3a55de311f38f1a40b9154d7e622c0/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f636f7665726167652f672f6e5769646172742f6c61726176656c2d766964656f61626c652e7376673f7374796c653d666c61742d737175617265)](https://scrutinizer-ci.com/g/nWidart/laravel-videoable/?branch=master)[![Quality Score](https://camo.githubusercontent.com/64ae3f3337625ad636ed41f12fdd8e661d917088b76fee422dc88dbf2ce5fa45/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f672f6e5769646172742f6c61726176656c2d766964656f61626c652e7376673f7374796c653d666c61742d737175617265)](https://scrutinizer-ci.com/g/nWidart/laravel-videoable)[![Total Downloads](https://camo.githubusercontent.com/4709f6f4fdbadbc2299710fe4eba889b5686cb9698570bb5a1f5de03eaae89cd/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6e7769646172742f6c61726176656c2d766964656f61626c652e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/nwidart/laravel-videoable)

**Laravel****laravel-videoable**&lt;= 5.4^1.05.5^2.05.7^3.0**Laravel Videoable** is a quick and easy way to add a video to your Eloquent Models. It also features a way to generate the embed code directly.

```
$product = Product::create(['product_name' => 'something']);

$product->addVideo([
   'source' => 'youtube',
   'code' => '123',
   'title' => 'my video',
   'width' => 50,
   'height' => 150,
]);

// Get the embeddable code
$product->video->getEmbed();

// Returns

```

Install
-------

[](#install)

Via Composer

```
$ composer require nwidart/laravel-videoable
```

Next add the following service provider in `config/app.php`.

```
'providers' => [
  Nwidart\LaravelVideoable\LaravelVideoableServiceProvider::class,
],
```

Publish the package's migrations files by running :

```
php artisan vendor:publish --provider="Nwidart\LaravelVideoable\LaravelVideoableServiceProvider" --tag=migrations
```

After the migrations have been published you can create the `laravel_videoables` table by running the migrations

```
php artisan migrate
```

(optional) Publish the package's configuration file by running :

```
php artisan vendor:publish --provider="Nwidart\LaravelVideoable\LaravelVideoableServiceProvider" --tag=config
```

(optional) Publish the package's view files by running :

```
php artisan vendor:publish --provider="Nwidart\LaravelVideoable\LaravelVideoableServiceProvider" --tag=views
```

Documentation
-------------

[](#documentation)

You'll find installation instructions and full documentation on .

Change log
----------

[](#change-log)

Please see [CHANGELOG](CHANGELOG.md) for more information on what has changed recently.

Testing
-------

[](#testing)

```
$ composer test
```

Contributing
------------

[](#contributing)

Please see [CONTRIBUTING](CONTRIBUTING.md) and [CONDUCT](CONDUCT.md) for details.

Security
--------

[](#security)

If you discover any security related issues, please email  instead of using the issue tracker.

Credits
-------

[](#credits)

- [Nicolas Widart](https://github.com/nwidart)
- [All Contributors](../../contributors)

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

###  Health Score

32

—

LowBetter than 69% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity21

Limited adoption so far

Community14

Small or concentrated contributor base

Maturity62

Established project with proven stability

 Bus Factor1

Top contributor holds 97.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 ~141 days

Total

5

Last Release

2829d ago

Major Versions

1.0.x-dev → 2.0.02017-09-04

2.0.x-dev → 3.0.02018-10-01

PHP version history (2 changes)1.0.0PHP ~5.6|~7.0

2.0.0PHP &gt;=7.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/565946b8d70f5fa172a21f87b7f0e3abdce0611cc1cd300ec8e7b360bdb0a4bc?d=identicon)[nWidart](/maintainers/nWidart)

---

Top Contributors

[![nWidart](https://avatars.githubusercontent.com/u/882397?v=4)](https://github.com/nWidart "nWidart (39 commits)")[![JulienTant](https://avatars.githubusercontent.com/u/785518?v=4)](https://github.com/JulienTant "JulienTant (1 commits)")

---

Tags

laravelphpvideovideoablelaravelvideoyoutubevimeolaravel-videoable

###  Code Quality

TestsPHPUnit

Code StylePHP CS Fixer

### Embed Badge

![Health badge](/badges/nwidart-laravel-videoable/health.svg)

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

###  Alternatives

[chojnicki/video-platforms-parser

Easy to use SDK with grabber for multiple platforms at once like YouTube, Dailymotion, Facebook and more.

22227.0k](/packages/chojnicki-video-platforms-parser)[mostafaznv/nova-video

Video Field for Laravel Nova

22437.2k2](/packages/mostafaznv-nova-video)[cohensive/oembed

Media embed generation using OEmbed protocol.

3673.8k](/packages/cohensive-oembed)

PHPackages © 2026

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