承接 violetoffice/vimeoassets 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

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

violetoffice/vimeoassets

Composer 安装命令:

composer require violetoffice/vimeoassets

包简介

Kirby Plugin to get Vimeo asset URLs through the Vimeo API

README 文档

README

This requires a paid Vimeo account

Setup app with Vimeo here

Add vimeo credentials to Kirby config:

# /site/config/config.php

<?php

return [
  'violetoffice.vimeoassets.client_id' => 'XXXXX',
  'violetoffice.vimeoassets.client_secrets' => 'XXXXX',
  'violetoffice.vimeoassets.token' => 'XXXXX',
];

Add a video field to a file blueprint:

# /site/blueprints/files/image.yml

title: Example Image/Video        

fields:
  haspostervideo:
    label: Include autoplay poster video?
    type: toggle
    default: false
    text:
       - 'no'
       - 'yes'
  postervimeourl:
    label: Vimeo URL
    type: url
    placeholder: https://vimeo.com/37776933
    when:
      haspostervideo: true

Using the the data your templates:

<?php $item->postervimeo() = $vimeodata ?>

<?php foreach($vimeodata->toStructure() as $file): ?>
  type: <?= $file->type() ?><br />
  quality: <?= $file->quality() ?><br />
  link: <?= $file->link() ?><br />
  <?php e($file->width() != '', 'width:' . $file->width()) ?>
  <hr>
<?php endforeach ?>

TODO

  • make field names a config option
  • error / success notifications

统计信息

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

GitHub 信息

  • Stars: 1
  • Watchers: 0
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2019-11-12

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固