mediashare / show-content
Detect file type & generate html view for web interface user-friendly. (Image/Video/Audio/Text/Markdown)
Installs: 401
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 2
Forks: 0
Open Issues: 1
Language:JavaScript
Requires
- erusev/parsedown: ^1.7
- twig/twig: ^3.0
Requires (Dev)
- tracy/tracy: ^2.7
This package is auto-updated.
Last update: 2024-11-06 20:40:06 UTC
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();