定制 syrian-open-source/laravel-youtube-iframe-generator 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

syrian-open-source/laravel-youtube-iframe-generator

最新稳定版本:v1.1.0

Composer 安装命令:

composer require syrian-open-source/laravel-youtube-iframe-generator

包简介

Laravel package allows you to generate an iframe tag with a video player depending on a youtube URL.

README 文档

README

logo

YouTube Frame Generator

Laravel package allows you to generate an iframe tag with a video player depending on a YouTube URL.

1 - Dependency

The first step is using composer to install the package and automatically update your composer.json file, you can do this by running:

composer require syrian-open-source/laravel-youtube-iframe-generator
2 - Copy the package providers to your local config with the publish command, this will publish the config:
php artisan yframe:install

Features

basic usage:

{!! \SOS\LaravelYoutubeFrameGenerator\Facades\YFrameFacade::generate('https://www.youtube.com/watch?v=35JzR2ymxJE')!!}

Or you can use the directive

@yframe('https://www.youtube.com/watch?v=35JzR2ymxJE')

If you want to set your css, attributes, height, width or fullscreen allowed:

{!! \SOS\LaravelYoutubeFrameGenerator\Facades\YFrameFacade::width('100%')
        ->height('400px')
        ->isFullscreen(true)
        ->generate('https://www.youtube.com/watch?v=35JzR2ymxJE'); !!}

Using the directive

@yframe('https://www.youtube.com/watch?v=35JzR2ymxJE', [
    'width'     => '100%',
    'height'    => '400px',
    'isFullscreen'  => true,
])

Changelog

Please see the CHANGELOG for more information about what has changed or updated or added recently.

Security

If you discover any security related issues, please email them first to alali.abdusslam@gmail.com, if we do not fix it within a short period of time please open a new issue describing your problem.

Credits

About Syrian Open Source

The Syrian Open Source platform is the first platform on GitHub dedicated to bringing Syrian developers from different cultures and experiences together, to work on projects in different languages, tasks, and versions, and works to attract Syrian developers to contribute more under one platform to open source software, work on it, and issue it with high quality and advanced engineering features, which It stimulates the dissemination of the open-source concept in the Syrian software community, and also contributes to raising the efficiency of developers by working on distributed systems and teams.

统计信息

  • 总下载量: 4.23k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 18
  • 点击次数: 1
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 18
  • Watchers: 1
  • Forks: 3
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2021-12-29

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固