phata/widgetfy
Composer 安装命令:
composer require phata/widgetfy
包简介
Widgetfy is a PHP library to translate URLs of video sites into the embed / widget
关键字:
README 文档
README
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
| Branch | Purpose | PHP Version | Status |
|---|---|---|---|
| 3.x | Stable / Default | 8.1, 8.2, 8.3 | |
| 2.x | Maintenance | 7.1, 7.2, 7.3, 7.4 | |
| 1.x | Maintenance | 5.3, 5.4, 5.5, 5.6 | |
| main | Development | 7.1, 7.2, 7.3, 7.4 |
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.
phata/widgetfy 适用场景与选型建议
phata/widgetfy 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 284 次下载、GitHub Stars 达 0, 最近一次更新时间为 2015 年 06 月 30 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「embed」 「url translate」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 phata/widgetfy 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 phata/widgetfy 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 phata/widgetfy 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
Easy to use i18n translation PHP class for multi-language websites
Store your language lines in the database, yaml or other sources
An Astrotomic Translatable extension for Laravel Nova.
Embed laravel blade component + validation
Extracts information about medias on the web, like youtube videos, twitter statuses or blog articles.
Easy URL rewrites in your Laravel application
统计信息
- 总下载量: 284
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 16
- 依赖项目数: 1
- 推荐数: 0
其他信息
- 授权协议: LGPL-3.0-or-later
- 更新时间: 2015-06-30