mediashare/show-content
Composer 安装命令:
composer require mediashare/show-content
包简介
Detect file type & generate html view for web interface user-friendly. (Image/Video/Audio/Text/Markdown)
README 文档
README
Detect file type & generate html view for web interface user-friendly.
File Types Supported
- Image
- Video
- Audio
- Text
- Markdown
Installation
composer require mediashare/show-content
Usages
<?php include 'vendor/autoload.php'; use Mediashare\ShowContent\ShowContent; $file = "files/image.png"; $showContent = new ShowContent($file); $showContent->show(); $file = "files/video.webm"; $showContent = new ShowContent($file); $showContent->show(); $file = "files/audio.mp3"; $showContent = new ShowContent($file); $showContent->show(); $file = "files/text.txt"; $showContent = new ShowContent($file); $showContent->show(); $file = "files/text.md"; $showContent = new ShowContent($file); $showContent->show();
统计信息
- 总下载量: 422
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 1
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2020-04-03