承接 phata/widgetfy 相关项目开发

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

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

phata/widgetfy

最新稳定版本:v3.0

Composer 安装命令:

composer require phata/widgetfy

包简介

Widgetfy is a PHP library to translate URLs of video sites into the embed / widget

README 文档

README

CI Test Status stable-version-badge license-badge download-badge

Widgetfy is a PHP library to translate URLs of video sites into the embed / widget.

Install

First, install composer to your development platform.

Then run this in your project folder:

composer require phata/widgetfy

Example Code


// require the composer autoload script
require_once './vendor/autoload.php';

use Phata\Widgetfy\Core as Widgetfy;

// simple setup
if (($embed = Widgetfy::translate($link)) != NULL) {
    echo $embed['html'];
}

// adjust all video to width 640px, if the source support that
$options = array('width'=>640);
if (($embed = Widgetfy::translate($link, $options)) != NULL) {
    echo $embed['html'];
}

// using the default theme, and inlining the default CSS
// along with the first embed code.
echo Phata\Widgetfy\Theme::toHTML($embed, true);

For more detailed documentation, please visit our Documentation page on GitLab.

Branches

BranchPurposePHP VersionStatus
3.xStable / Default8.1, 8.2, 8.3CI Test Status
2.xMaintenance7.1, 7.2, 7.3, 7.4CI Test Status
1.xMaintenance5.3, 5.4, 5.5, 5.6CI Test Status
mainDevelopment7.1, 7.2, 7.3, 7.4CI Test Status

License

This file is part of Widgetfy.

Widgetfy is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

Widgetfy is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public Licensefor more details.

You should have received a copy of the GNU Lesser General Public License along with Widgetfy. If not, see http://www.gnu.org/licenses/lgpl.html.

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: LGPL-3.0-or-later
  • 更新时间: 2015-06-30

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固