elfarmawy/vdocipher
Composer 安装命令:
composer require elfarmawy/vdocipher
包简介
Laravel package for VdoCipher video platform integration
README 文档
README
A Laravel package that provides a clean, API-only integration with the VdoCipher video platform. Supports Laravel 10, 11, and 12.
Installation
You can install the package via Composer:
composer require ElFarmawy/vdocipher
Publishing the config file
php artisan vendor:publish --provider="ElFarmawy\VdoCipher\Providers\VdoCipherServiceProvider" --tag=config
This will create a config/vdocipher.php configuration file in your app where you can modify the settings.
Configuration
Update your .env file with your VdoCipher API key:
VDOCIPHER_API_KEY=your-api-key
VDOCIPHER_BASE_URL=https://dev.vdocipher.com/api
VDOCIPHER_OTP_TTL=300
You can also configure default watermarks in the config/vdocipher.php file:
'watermarks' => [ [ 'type' => 'rtext', 'text' => 'Copyright © ' . date('Y'), 'alpha' => '0.6', 'color' => '0xFFFFFF', 'size' => '15', 'interval' => '5000', ], ],
Usage
Basic Example
use ElFarmawy\VdoCipher\Facades\VdoCipher; // Get OTP for video playback $otpInfo = VdoCipher::getOtp('video_id', [ 'userId' => 42, ]); // Get complete video details including OTP $details = VdoCipher::getVideoDetails('video_id', [ 'userId' => 42, ]); // List all videos $videos = VdoCipher::getVideos([ 'page' => 1, 'limit' => 10, ]);
Overriding Default Configuration at Runtime
You can override the default configuration at runtime:
// Override API key VdoCipher::setApiKey('new-api-key'); // Override base URL VdoCipher::setBaseUrl('https://custom-dev.vdocipher.com/api'); // Override default watermarks VdoCipher::setWatermarks([ [ 'type' => 'rtext', 'text' => 'MyCustomText', 'alpha' => '0.2', 'color' => '0x00FF00', 'size' => '40', 'interval' => '100000', ], ]);
Managing Videos
// Get a specific video $video = VdoCipher::getVideo('video_id'); // Delete a video $deleted = VdoCipher::deleteVideo('video_id');
Video Upload
// Get upload credentials $credentials = VdoCipher::getVideoCredentials('My Video Title', '7d52*******'); // folderId Optional // Upload a video file $uploadLink = $credentials['clientPayload']['uploadLink']; $formData = $credentials['clientPayload']; $file = $request->file('video'); // Added custom redirect if needed // $formData['success_action_status'] = 201; // $formData['success_action_redirect'] = ''; $uploadResult = VdoCipher::uploadVideoToApi($uploadLink, $formData, $file);
Full Documentation
For complete documentation and advanced usage, please check the Wiki.
Changelog
Please see CHANGELOG for more information on what has changed recently.
Contributing
Please see CONTRIBUTING for details.
Security
If you discover any security related issues, please email tarekelfarmawy@outlook.com instead of using the issue tracker.
Credits
License
The MIT License (MIT). Please see License File for more information.
elfarmawy/vdocipher 适用场景与选型建议
elfarmawy/vdocipher 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 19 次下载、GitHub Stars 达 4, 最近一次更新时间为 2025 年 06 月 14 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「streaming」 「laravel」 「lms」 「elfarmawy」 「vdocipher」 「vdocipher-api」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 elfarmawy/vdocipher 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 elfarmawy/vdocipher 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 elfarmawy/vdocipher 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
Pumukit Lms Bundle.
Laravel notification channel for Aligo
A laravel bundle for the OpenTok PHP SDK
Laravel Wrapper for the OpenTok PHP SDK
A robust, configuration-driven ETL and data import framework for Laravel. Handles CSV/Excel streaming, queues, validation, and relationships.
H5P Platform Integration Plugin for Neos CMS
统计信息
- 总下载量: 19
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 4
- 点击次数: 17
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2025-06-14