{"id":16763716,"url":"https://github.com/nwidart/laravel-videoable","last_synced_at":"2025-06-13T17:02:28.213Z","repository":{"id":57029452,"uuid":"82674865","full_name":"nWidart/laravel-videoable","owner":"nWidart","description":"Attach Videos to your Eloquent Models","archived":false,"fork":false,"pushed_at":"2018-10-01T14:26:38.000Z","size":48,"stargazers_count":19,"open_issues_count":0,"forks_count":10,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-04-10T18:44:31.236Z","etag":null,"topics":["laravel","php","video","videoable"],"latest_commit_sha":null,"homepage":null,"language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/nWidart.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-02-21T12:02:10.000Z","updated_at":"2025-01-06T06:26:45.000Z","dependencies_parsed_at":"2022-08-23T16:20:45.713Z","dependency_job_id":null,"html_url":"https://github.com/nWidart/laravel-videoable","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/nWidart/laravel-videoable","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nWidart%2Flaravel-videoable","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nWidart%2Flaravel-videoable/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nWidart%2Flaravel-videoable/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nWidart%2Flaravel-videoable/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nWidart","download_url":"https://codeload.github.com/nWidart/laravel-videoable/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nWidart%2Flaravel-videoable/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":259685864,"owners_count":22896044,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["laravel","php","video","videoable"],"created_at":"2024-10-13T05:07:20.868Z","updated_at":"2025-06-13T17:02:28.167Z","avatar_url":"https://github.com/nWidart.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# laravel-videoable\n\n[![Latest Version on Packagist][ico-version]][link-packagist]\n[![Software License][ico-license]](LICENSE.md)\n[![Build Status](https://img.shields.io/travis/nWidart/laravel-videoables/master.svg?style=flat-square)](https://travis-ci.org/nWidart/laravel-videoable)\n[![Scrutinizer Coverage](https://img.shields.io/scrutinizer/coverage/g/nWidart/laravel-videoable.svg?style=flat-square)](https://scrutinizer-ci.com/g/nWidart/laravel-videoable/?branch=master)\n[![Quality Score](https://img.shields.io/scrutinizer/g/nWidart/laravel-videoable.svg?style=flat-square)](https://scrutinizer-ci.com/g/nWidart/laravel-videoable)\n[![Total Downloads][ico-downloads]][link-downloads]\n\n| **Laravel**  |  **laravel-videoable** |\n|---|---|\n| \u003c= 5.4  | ^1.0 |\n| 5.5  | ^2.0  |\n| 5.7  | ^3.0  |\n\n**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.\n\n``` php\n$product = Product::create(['product_name' =\u003e 'something']);\n\n$product-\u003eaddVideo([\n   'source' =\u003e 'youtube',\n   'code' =\u003e '123',\n   'title' =\u003e 'my video',\n   'width' =\u003e 50,\n   'height' =\u003e 150,\n]);\n\n// Get the embeddable code\n$product-\u003evideo-\u003egetEmbed();\n\n// Returns\n\u003cdiv\u003e\n    \u003cdiv class=\"video\"\u003e\n        \u003ciframe id=\"ytplayer\" type=\"text/html\" width=\"100%\" height=\"100%\"\n                src=\"https://www.youtube.com/embed/123?rel=0\"\n                frameborder=\"0\" allowfullscreen\u003e\u003c/iframe\u003e\n    \u003c/div\u003e\n\u003c/div\u003e\n```\n\n## Install\n\nVia Composer\n\n``` bash\n$ composer require nwidart/laravel-videoable\n```\n\nNext add the following service provider in `config/app.php`.\n\n``` php\n'providers' =\u003e [\n  Nwidart\\LaravelVideoable\\LaravelVideoableServiceProvider::class,\n],\n```\n\nPublish the package's migrations files by running :\n\n```bash\nphp artisan vendor:publish --provider=\"Nwidart\\LaravelVideoable\\LaravelVideoableServiceProvider\" --tag=migrations\n```\n\nAfter the migrations have been published you can create the `laravel_videoables` table by running the migrations\n\n```bash\nphp artisan migrate\n```\n\n(optional) Publish the package's configuration file by running :\n\n``` bash\nphp artisan vendor:publish --provider=\"Nwidart\\LaravelVideoable\\LaravelVideoableServiceProvider\" --tag=config\n```\n\n(optional) Publish the package's view files by running :\n\n``` bash\nphp artisan vendor:publish --provider=\"Nwidart\\LaravelVideoable\\LaravelVideoableServiceProvider\" --tag=views\n```\n\n\n## Documentation\n\nYou'll find installation instructions and full documentation on https://nwidart.com/laravel-videoable/.\n\n## Change log\n\nPlease see [CHANGELOG](CHANGELOG.md) for more information on what has changed recently.\n\n## Testing\n\n``` bash\n$ composer test\n```\n\n## Contributing\n\nPlease see [CONTRIBUTING](CONTRIBUTING.md) and [CONDUCT](CONDUCT.md) for details.\n\n## Security\n\nIf you discover any security related issues, please email n.widart@gmail.com instead of using the issue tracker.\n\n## Credits\n\n- [Nicolas Widart][link-author]\n- [All Contributors][link-contributors]\n\n## License\n\nThe MIT License (MIT). Please see [License File](LICENSE.md) for more information.\n\n[ico-version]: https://img.shields.io/packagist/v/nwidart/laravel-videoable.svg?style=flat-square\n[ico-license]: https://img.shields.io/badge/license-MIT-brightgreen.svg?style=flat-square\n[ico-travis]: https://img.shields.io/travis/nwidart/laravel-videoable/master.svg?style=flat-square\n[ico-scrutinizer]: https://img.shields.io/scrutinizer/coverage/g/nwidart/laravel-videoable.svg?style=flat-square\n[ico-code-quality]: https://img.shields.io/scrutinizer/g/nwidart/laravel-videoable.svg?style=flat-square\n[ico-downloads]: https://img.shields.io/packagist/dt/nwidart/laravel-videoable.svg?style=flat-square\n\n[link-packagist]: https://packagist.org/packages/nwidart/laravel-videoable\n[link-travis]: https://travis-ci.org/nWidart/laravel-videoable\n[link-scrutinizer]: https://scrutinizer-ci.com/g/nwidart/laravel-videoable/code-structure\n[link-code-quality]: https://scrutinizer-ci.com/g/nwidart/laravel-videoable\n[link-downloads]: https://packagist.org/packages/nwidart/laravel-videoable\n[link-author]: https://github.com/nwidart\n[link-contributors]: ../../contributors\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnwidart%2Flaravel-videoable","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnwidart%2Flaravel-videoable","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnwidart%2Flaravel-videoable/lists"}