PHPackages                             irabbi360/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. [File &amp; Storage](/categories/file-storage)
4. /
5. irabbi360/laravel-videoable

ActivePackage[File &amp; Storage](/categories/file-storage)

irabbi360/laravel-videoable
===========================

Attach Videos to your Eloquent Models

11PHP

Since Mar 25Pushed 4y ago1 watchersCompare

[ Source](https://github.com/irabbi360/laravel-videoable)[ Packagist](https://packagist.org/packages/irabbi360/laravel-videoable)[ RSS](/packages/irabbi360-laravel-videoable/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

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

[](#laravel-videoable)

[![Latest Version on Packagist](https://camo.githubusercontent.com/6473cd7f17d68633f16a62ccd7d925cae5111a37494a0e057a1e4aa4d3d00393/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6972616262693336302f6c61726176656c2d766964656f61626c652e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/irabbi360/laravel-videoable)[![Software License](https://camo.githubusercontent.com/55c0218c8f8009f06ad4ddae837ddd05301481fcf0dff8e0ed9dadda8780713e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265)](LICENSE.md)[![Build Status](https://camo.githubusercontent.com/e9a7f13028f558a75b2386ce11a267a2e2e7befb1f98fa2655fe87f44314cc76/68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f6972616262693336302f6c61726176656c2d766964656f61626c65732f6d61737465722e7376673f7374796c653d666c61742d737175617265)](https://travis-ci.org/irabbi360/laravel-videoable)[![Scrutinizer Coverage](https://camo.githubusercontent.com/6825978e5fc6ea3078084aaf1b2d3cc68ef5d770f99fa917a9d03b079e3493fe/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f636f7665726167652f672f6972616262693336302f6c61726176656c2d766964656f61626c652e7376673f7374796c653d666c61742d737175617265)](https://scrutinizer-ci.com/g/irabbi360/laravel-videoable/?branch=master)[![Quality Score](https://camo.githubusercontent.com/efaa83ce868d2a69296a8006e7225fb7e8181151f5f3b8476cc5b01f5852da2d/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f672f6972616262693336302f6c61726176656c2d766964656f61626c652e7376673f7374796c653d666c61742d737175617265)](https://scrutinizer-ci.com/g/irabbi360/laravel-videoable)[![Total Downloads](https://camo.githubusercontent.com/f5bcdc820a6be191138994d640fe9e415f776dcced5e1119fa6ff26ecc284751/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6972616262693336302f6c61726176656c2d766964656f61626c652e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/irabbi360/irabbi360/laravel-videoable)

**Laravel****laravel-videoable**8.x**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.

Use HasVideos Trait in Product Model.

```
    use HasVideos;
```

```
$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 irabbi360/laravel-videoable
```

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

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

Publish the package's migrations files by running :

```
php artisan vendor:publish --provider="Irabbi360\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="Irabbi360\LaravelVideoable\LaravelVideoableServiceProvider" --tag=config
```

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

```
php artisan vendor:publish --provider="Irabbi360\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/irabbi360)
- [All Contributors](../../contributors)

License
-------

[](#license)

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

###  Health Score

15

—

LowBetter than 3% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity3

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity26

Early-stage or recently created project

 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/3550a7f53f819e536401ac2a5357c930d6316a6c129f65b220332b0d0b42ad87?d=identicon)[irabbi360](/maintainers/irabbi360)

---

Top Contributors

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

### Embed Badge

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

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

###  Alternatives

[knplabs/gaufrette

PHP library that provides a filesystem abstraction layer

2.5k39.8M123](/packages/knplabs-gaufrette)[google/cloud-storage

Cloud Storage Client for PHP

34390.8M125](/packages/google-cloud-storage)[illuminate/filesystem

The Illuminate Filesystem package.

15261.6M2.6k](/packages/illuminate-filesystem)[superbalist/flysystem-google-storage

Flysystem adapter for Google Cloud Storage

26320.6M30](/packages/superbalist-flysystem-google-storage)[creocoder/yii2-flysystem

The flysystem extension for the Yii framework

2931.7M62](/packages/creocoder-yii2-flysystem)[flowjs/flow-php-server

PHP library for handling chunk uploads. Works with flow.js html5 file uploads.

2451.6M15](/packages/flowjs-flow-php-server)

PHPackages © 2026

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