mohammadsalmani28/video
Composer 安装命令:
composer require mohammadsalmani28/video
包简介
Video package is a package for generating online video services like youtube, aparat etc!
README 文档
README
Video Generator is a package for laravel. This package created for generate embed code in your project. thanks for using my package!
Installation
Step 1
Run following command in root directory of your project:
composer require mohammadsalmani28/video
Step 2 : Add Provider
Now you have to add this line in 'app.php' located in 'config' directory of your laravel project in the providers array:
Mohammadsalmani28\Video\VideoServiceProvider::class,
Done :)
Usage:
This package should be used in your view files.
| Code | Description |
|---|---|
@video('service_name', 'video_url') |
Generate and return embed code |
Examples:
@video('aparat', 'https://www.aparat.com/v/8vam2')
@video('youtube', 'https://www.youtube.com/watch?v=ImtZ5yENzgE')
@video('tamasha', 'https://tamasha.com/v/0keJL')
@video('namasha', 'https://www.namasha.com/v/vEePZkl5')
@video('vimeo', 'https://vimeo.com/151390908')
License
The MIT License (MIT). Please see License File for more information.
统计信息
- 总下载量: 12
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 2
- 点击次数: 9
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2020-01-17